Support Article
pzPega_ui_roboticAutomation pzFromFrame transaction JSON error
SA-84027
Summary
A JSON parsing error occurs on opening a Case or a Claim from the Recent Items sidebar. This occurs at Line 28 of the pzPega_ui_roboticAutomation.js JavaScript file where the response.responseText is not a JSON string and an error message displays instead.
Error Messages
Unexpected token T in JSON at position 0.
Error message: This action is not allowed as it is outside the current transaction”.
Steps to Reproduce
Invoke the pega.ui.roboticAutomation.runAutomation with pzFromFrame including a value.
Root Cause
An issue in the custom application code or rules.
The customized JavaScript launched two requests in parallel. The first request is submitModalFlowAction:InvokeEmulator and the second request (which fails) attempted to execute the pzGetRDAURLWithToken activity. The first request changed the pzTransactionID because of a commit. However, the second request still used the old pzTransactionID and it failed. The application originally launched an actual modal window which required a user input and this sequence is successful. At the request of the user, the modal popup is suppressed with the custom JavaScript.
Resolution
Perform the following local-change:
Modify the customized JavaScript such that the requests are not launched in parallel.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.