Support Article
Err:Action isn't allowed as it's outside the current transaction
SA-43272
Summary
There are post-value and refresh-section events assigned to a checkbox.
When clicking the checkbox, an error occurs on the Safari browser. This is not happening in the Chrome, Internet Explorer or Firefox browsers.
Error Messages
This action is not allowed as it is outside the current transaction
Steps to Reproduce
- Create an activity that updates an external database with an obj-save following by a commit.
- Configure a checkbox that refers to the activity.
- Run the application and click on the checkbox.
- Observe the error.
Root Cause
In activity rules, obj-saves without the "write now" checkbox enabled were being used for staging records to an external database, and then a commit was being used to update the database.
The commit changed the transaction id, is causing the browser's next attempt to communicate with the Pega server to fail due to the wrong transaction Id being passed.
Resolution
Here's the explanation for the issue:
The obj-save is for an external database and not for the current work object itself, it is safe to use the "write now" checkbox on the obj-save, and to therefore avoid using the commit entirely.
This means the transaction id does not change, thus avoiding the error.
Published December 15, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.