Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Last activity: 30 Jun 2016 6:07 EDT
Getting Error message "This action is not allowed as it is outside the current transaction"
Hi,
End users are getting following error "This action is not allowed as it is outside the current transaction" on click of button on model window. It is inconsistent.
I am not getting this error.
On click of button, we have following actions
Query:
1 Why users are getting "This action is not allowed as it is outside the current transaction" error.
2 On click event, 3 Actions, i.e. "Run data transform", "Close" and "Finish Assignment" will execute sequential or Parallel or random.
Thanks & Regards
U Rajasekhar
-
Like (0)
Usama ilyas -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
Hi Rajasekhar, Good afternoon!
sorry for the late response...
from my learning's...
- at times - Cancel event worked instead of close event. so requested for an attempt.
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- to suppress this window - we need to disable the dirty flag [pxDisableClientDirtyDetection]
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- Close event from activity is a wrapper action on browser
- and requested to attempt from SCRIPT
- transactionID mismatch - *mostly* comes when there is a series of commits
- to handle - requested to attempt a similar logic applied in OOTB activity
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to manage TransactionStarted statements
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to handle - requested to attempt a similar logic applied in OOTB activity
-
again - can we switch the event configurations?
-
to DT, FinishAssignment, Close? and
- did the suggested actions made any difference at least in error messages?
-
to DT, FinishAssignment, Close? and
-
or A click of a button in parent screen
- pops-up the local action model dialog
- hide the default flow action buttons and
- configure just the DT & finishAssignment??
Please share the test observations/thoughts, Thank you!
Hi Rajasekhar, Good afternoon!
sorry for the late response...
from my learning's...
- at times - Cancel event worked instead of close event. so requested for an attempt.
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- to suppress this window - we need to disable the dirty flag [pxDisableClientDirtyDetection]
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- Close event from activity is a wrapper action on browser
- and requested to attempt from SCRIPT
- transactionID mismatch - *mostly* comes when there is a series of commits
- to handle - requested to attempt a similar logic applied in OOTB activity
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to manage TransactionStarted statements
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to handle - requested to attempt a similar logic applied in OOTB activity
-
again - can we switch the event configurations?
-
to DT, FinishAssignment, Close? and
- did the suggested actions made any difference at least in error messages?
-
to DT, FinishAssignment, Close? and
-
or A click of a button in parent screen
- pops-up the local action model dialog
- hide the default flow action buttons and
- configure just the DT & finishAssignment??
Please share the test observations/thoughts, Thank you!
psahukaru
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
Hi Rajashekar,
As far as i know, Close local action closes that particular container and finish assignment submits the current assignment.
- The error that you are seeing usually occurs when any extra sequential commits happening. I believe the issue at your end is happening due to the finish assignment being configured after close button.
What are you trying to achieve by setting finish assignment after close. Are you trying to submit the assignment which launched the modal dialogue?
- The click events that you have configured will execute sequentially one after the other.
--Raviteja
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Hi Raviteja,
What are you trying to achieve by setting finish assignment after close. Are you trying to submit the assignment which launched the modal dialogue?
Yes we are close the Modal window and submit the assignment which launched the modal dialogue.
I know Finish Assignment perform commit. Do Close action perform commit?
Note: Issue is not consistent. Currently it is happening with some end user only
Thanks & Regards
U Rajasekhar
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
If possible can you try finish assignment after the launch modal dialogue local action?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Hi Raviteja,
I know Finish Assignment perform commit. Do Close action perform commit?
Thanks & Regards
U Rajasekhar
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Hi Rajasekhar,
#1. There is a different thread @ This action is not allowed as it is outside the current transaction . Can you please check if it is related to the same problem.
#2. All the actions will be executed in sequential manner.
Shan
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems
US
Yes, in that different thread, please see my "May 17, 2016 2:18 PM" note. Thanks. /Eric
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
I know Finish Assignment perform commit. Do Close action perform commit?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Can someone response to above query.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689967000/70287e74-7144-4d29-bf20-81d9968980cf.jpg?itok=nq0LKkBy)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689967000/70287e74-7144-4d29-bf20-81d9968980cf.jpg?itok=nq0LKkBy)
Pegasystems Inc.
IN
Hi Rajasekhar,
I understand from the below link that doclose does not perform commit but just closes the work item and releases the lock.
Work-.DoClose Final | Executed when the operator clicks the close button on a user form. Calls Work-.CloseWorkItem. |
Work-.CloseWorkItem Final | Closes the work item, releases the lock and sends back HTML code that closes the work iframe. |
https://community.pega.com/sites/default/files/help_v72/procomhelpmain.htm
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
Hi Rajasekhar, Good morning!
- could you please replace Close with Cancel click event? OR
- please note: dirty flag read should be disabled for good UX interaction.
- configure the Close event via Run script doClose
- for transactionID mismatch please refer...
- RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to manage TransactionStarted statements
- RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
Please share your observations/comments, Thank you!
psahukaru
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Hi Phani,
following queries to your reply
- could you please replace Close with Cancel click event? OR - What is the reason for change from close to cancel?
- please note: dirty flag read should be disabled for good UX interaction. - Please elborate the dirty flag read.
- configure the Close event via Run script doClose - What is defference between cloase action and Script doClose?
- for transactionID mismatch please refer... - Please elborate transaction mismatch?
Thanks in Advance!
Best Regards
U Rajasekhar
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Hi Phani,
following queries to your reply
- could you please replace Close with Cancel click event? OR - What is the reason for change from close to cancel?
- please note: dirty flag read should be disabled for good UX interaction. - Please elborate the dirty flag read.
- configure the Close event via Run script doClose - What is defference between cloase action and Script doClose?
- for transactionID mismatch please refer... - Please elborate transaction mismatch?
Thanks in Advance!
Best Regards
U Rajasekhar
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
Hi Rajasekhar, Good afternoon!
sorry for the late response...
from my learning's...
- at times - Cancel event worked instead of close event. so requested for an attempt.
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- to suppress this window - we need to disable the dirty flag [pxDisableClientDirtyDetection]
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- Close event from activity is a wrapper action on browser
- and requested to attempt from SCRIPT
- transactionID mismatch - *mostly* comes when there is a series of commits
- to handle - requested to attempt a similar logic applied in OOTB activity
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to manage TransactionStarted statements
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to handle - requested to attempt a similar logic applied in OOTB activity
-
again - can we switch the event configurations?
-
to DT, FinishAssignment, Close? and
- did the suggested actions made any difference at least in error messages?
-
to DT, FinishAssignment, Close? and
-
or A click of a button in parent screen
- pops-up the local action model dialog
- hide the default flow action buttons and
- configure just the DT & finishAssignment??
Please share the test observations/thoughts, Thank you!
Hi Rajasekhar, Good afternoon!
sorry for the late response...
from my learning's...
- at times - Cancel event worked instead of close event. so requested for an attempt.
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- to suppress this window - we need to disable the dirty flag [pxDisableClientDirtyDetection]
- when cancel event is configured - a little popup comes up - requesting the user either to save or discard changes
- Close event from activity is a wrapper action on browser
- and requested to attempt from SCRIPT
- transactionID mismatch - *mostly* comes when there is a series of commits
- to handle - requested to attempt a similar logic applied in OOTB activity
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to manage TransactionStarted statements
-
RULE-OBJ-ACTIVITY WORK- PYUPDATEWORKPARTIESAFTER
- to handle - requested to attempt a similar logic applied in OOTB activity
-
again - can we switch the event configurations?
-
to DT, FinishAssignment, Close? and
- did the suggested actions made any difference at least in error messages?
-
to DT, FinishAssignment, Close? and
-
or A click of a button in parent screen
- pops-up the local action model dialog
- hide the default flow action buttons and
- configure just the DT & finishAssignment??
Please share the test observations/thoughts, Thank you!
psahukaru
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689875000/cb80d47d-e4e8-47b8-bedb-9b3c42f08e0e.jpg?itok=rnR8AszO)
CGI
IN
Thanks Phani.