Question
Last activity: 14 Aug 2020 14:30 EDT
"This action is not allowed as it is outside the current transaction" when i create a new case
I am getting this error "This action is not allowed as it is outside the current transaction" when i create a case (sometimes, not always--so diffcult to trace).
Please help me to find the root cause for this issue.
Thanks
Kowshik J Jain
Hi Sonir,
Yes, i am facing this issue intermittently,(not always).and it occurs only when i create a new case.
And we are using all the OOTB flow pyStartCase, pxStartCaseType and activity pzInitializeStage.
Don't know where thsi issue is coming from
Thanks
Hi Kowshik , Is there any exception in log file , if yes then please revert back with the same so will check for more details about an issue. Thanks
I am also facing same issue. Please provide resolution.
Hi @NehaT791
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write Post button here. Once created, please reply here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.
Hi,
Kindly refer the below link,
https://pdn.pega.com/support-articles/action-not-allowed-it-outside-current-transaction-2
Thanks,
The site says that content has been removed.
Is there another link to meaningful content ?


Pegasystems Inc.
IN
Hi Kowshik,
This generally happens when we tend to interact with Pega with the stale transactions.
A transaction gets stale when a commit has already been performed for that transaction.
Trace the scenario and check if there are any unnecessary commit.
Thanks,
Siddharth
Try this function:
function handleDraftPopupStaleTransactionIssue(){ var newurl = SafeURL_createFromURL(pega.u.d.url); newurl.put('pzFromFrame',''); pega.u.d.url = newurl.toURL(); var url = document.forms[0].action; var formURL = SafeURL_createFromURL(url); formURL.put('pzFromFrame',''); document.forms[0].action= formURL.toURL(); }
Perform the following changes mentioned below.
if still you are facing same issue then please check when exactly you are facing an issue as its not always and may be on specific data/flow you are facing an issue.