Extend PMD Endpoints Never Register Because the Key Is Lowercase
The error Unknown Variable found: scorecards
What does "Extend PMD Endpoints Never Register Because the Key Is Lowercase" mean in Workday Extend?
A PMD page fails on load with an unknown variable error that names one of your endpoints. The endpoint block was never registered because the key is spelled with a lowercase p, so nothing on the page can see the variable that endpoint would have created.
Quick fix
Change the endpoints key to endPoints in the PMD and reload the page.
Permanent fix
Copy endpoint blocks from a known-good PMD instead of retyping them, and treat any unknown variable error that names an endpoint as a registration or casing problem first, before assuming the underlying data call failed.
Troubleshooting
- Read the variable name in the error. It matches the name of one of the endpoints you declared, which is the tell that the endpoint itself never loaded rather than that the call failed.
- Open the PMD and check the exact spelling of the endpoints key. Workday expects endPoints with a capital P, and a lowercase endpoints is silently ignored rather than rejected.
- Check the same casing in every component that declares its own endpoint block, since a page and each of its child components carry their own.
- If the casing is already correct, confirm every endpoint entry has a name, a baseUrlType and a url, because an incomplete entry is skipped just as quietly.
- Reload the page after each change rather than trusting the editor, since this class of error only surfaces at runtime.
Was this helpful?