Err:Action isn't allowed as it's outside the current transaction
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.
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.
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.
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.