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

Action is not allowed as it is outside the current transaction

SA-23347

Summary



An error occurs on submitting a form.

Error Messages



This action is not allowed as it is outside the current transaction

Steps to Reproduce



1. Configure a section with some properties and button with run script event.
2. In run script, submit the form by using doFormSubmit API.

Root Cause



A software use or operation error: 
After clicking button, button was not disabled and multiple clicks were carried out. So multiple requests were sent to server for single action, resulting transaction mismatch error.

Resolution



Perform the following local-change: 

On button click, a busy indicator is displayed which will mask the applicable section. Now user can not perform multiple clicks and it will appear to user that some action is processing at server side.

<script>
function show()
{
pega.u.d.busyIndInterval = 0;
pega.u.d.setBusyIndicator();
}

function hide()
{
pega.u.d.busyIndInterval = 2000;
if(pega.u.d.gBusyInd){
pega.u.d.gBusyInd.hide();
}
}
</script>

Published May 21, 2016 - Updated October 8, 2020

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?

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