errors / orchestrate / orchestrate-restoutputendpoint-classcast-error
Orchestrate Starter App Throws ClassCastException on RestOutputEndPoint
The error Internal Server Error. (id: F5S|EA8A761C|6053AACD) com.workday.vps.pmd.tag.RestOutputEndPoint cannot be cast to com.workday.ui.widgets.api.Widget
What it means
The Orchestrate starter app tries to submit a request through a workflow step that references an outbound REST endpoint object where the app is instead expecting a UI widget, so the platform throws a ClassCastException when it tries to render the response.
Troubleshooting
- Check whether the app was set up through the tutorial's Download option versus its Deploy to Tenant option, the starter app packages for these two paths are not guaranteed to match at every point in the tutorial.
- Confirm the app is running against a proper GMS development tenant rather than a generic sandbox, since the starter app's Orchestrate configuration step assumes GMS-specific setup.
- Re-check the Configure the Orchestration section for a step (for example Change outboundEndPoint) that may only be present once in your app when the tutorial document describes two, a missing or duplicated step here is what surfaces as this cast exception at submit time.
- Reproduce on a freshly deployed app before troubleshooting further, since a stale or partially-applied change from manual edits can also produce this exact class-cast pattern.
⚡ Quick fix
Rebuild the app using the tutorial's Deploy to Tenant option instead of Download, and confirm you are on a GMS development tenant before re-submitting the request.
✓ Permanent fix
Keep the orchestration app's step configuration in sync with the current tutorial/template version rather than hand-editing bindings, and re-verify against a fresh Deploy to Tenant build whenever Workday ships an updated starter app or tutorial.
Was this helpful?