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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.