Troubleshoot SharePoint Approval Workflows Suspended by a DynamicJsonPrimitive Error
Question details
Investigate why multiple SharePoint approval workflows are suspended with a DynamicJsonPrimitive lookup error.

- Product
- Microsoft SharePoint workflows
- Device & OS
- not provided
- Scenario
- Approval workflows are running on SharePoint sites and need to complete their approval processes.
- Observed behavior
- Multiple workflows are suspended with an unhandled exception stating that lookup by key is unsupported on a Microsoft.Activities.Dynamic.DynamicJsonPrimitive instance.
Collect the full error message and identify the affected workflow instances and their SharePoint sites. Confirm that you have permission to view workflow status and configuration, or ask a SharePoint administrator for assistance.
Compare affected workflows and inspect their status
Use workflow history and shared configuration details to narrow down where the suspension occurs.
The error indicates that a workflow attempted a key-based lookup on a primitive value rather than an object that supports that lookup. The message alone does not identify the underlying cause.
Open the affected list or library, select an item with a suspended workflow, and open its workflow status or history. Record the error, the time it occurred, and the last action or stage shown.
Open each affected workflow in its workflow designer or settings and record its site, workflow platform version, configuration, and actions. Check whether the affected workflows share a site, data source, or action.
In the workflow designer, examine lookup or response-processing actions near the reported failure. Check whether an action expects a key-value object but could receive a single text, number, or other primitive value.
Create and run a simple test workflow in the same site using the same platform, then compare its status with the suspended instances. Add relevant actions in a test workflow to help isolate any shared trigger.

Check the workflow platform and involve an administrator
Use this approach when the status page does not provide enough detail or several sites are affected.
Edit approval documents with WPS Office
WPS Office is a free, lightweight alternative for editing the documents and spreadsheets used in approval processes. Its familiar interface and Microsoft Office format compatibility help teams move between office suites. It does not troubleshoot or run SharePoint workflows.

Frequently Asked Questions
What does the DynamicJsonPrimitive lookup error mean?
It indicates that the workflow attempted to look up a key on a primitive value, such as a single string or number. Inspect dynamic lookup and response-processing actions near the failure in the workflow designer to identify the value involved.
How can I tell whether affected workflows share a cause?
Compare their SharePoint sites, platform versions, configurations, data sources, and last recorded actions. Then run a simple new workflow on the same site and platform to see whether it also suspends.
Where can I find details about a suspended workflow?
Open the affected item in its SharePoint list or library and view its workflow status or history. Record the exception, timestamp, last action or stage, and any available instance or correlation ID.
Does WPS Office fix a suspended SharePoint workflow?
No. WPS Office can edit compatible approval documents and spreadsheets, but the SharePoint workflow error must be investigated in SharePoint and its workflow platform.




