Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Create an activity that updates an external database with an obj-save following by a commit.
  2. Configure a checkbox that refers to the activity.
  3. Run the application and click on the checkbox.
  4. 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.
Suggest Edit

Published December 15, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us