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

Transaction ID mismatch error occurs on clicking button twice



On the Pega application, error occurs on clicking the out-of-the-box Custom buttons more than once.

Error Messages

Action is not allowed as it is outside of current transaction.

Steps to Reproduce

Configure a button to navigate to the next screen or step.

Root Cause

An issue in the custom application code or rules.

When the button is clicked, the next screen takes time to load. If the button is clicked twice, the request is sent twice to the server. For each request, a new transaction ID is generated. When the server is invoked with the new transaction ID, error occurred since the server expected the previous ID.


 Perform either of the the following local-changes:

To prevent the user from clicking the button twice, implement the Busy Indicator or disable the button after the first click.
  • Implement the Busy Indicator as below:
  1. Configure the first action as a Run script.
  2. Invoke the setBusyIndicatorCustom function according to the below code on the button.


    function setBusyIndicatorCustom(){
    pega.u.d.busyIndInterval = 110;
    function resetBusyIndicatorCustom(){
    pega.u.d.busyIndInterval = 2000;

  3. Configure the last action on the button as a Run script with the resetBusyIndicatorCustom function.
  • Perform the below steps to disable the button after the first click:
  1. Create a non-auto generated section.
  2. Include the below code in the section.

    function disableBtn(){

  3. Include the non-auto generated section in the section where the button is present.
  4. Open the Button configuration.
  5. Click the Presentation tab.
  6. In the Cell read-write classes, include btnSendEmail.

Published April 14, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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