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

FlowAction ActionAutoSubmit - Not working

SA-19949

Summary



The flowaction ActionAutoSubmit is not working in Pega 7.1.9.


Error Messages



This action is not allowed outside the current transaction.


Steps to Reproduce

  1. In a flow introduce the Pega-provided flowaction GoBack, where the connector connects back to same or different assignment.
  2. On selection of the flowaction, the ActionAutoSubmit action is triggered. But instead of going to the assignment screen, the system displays the error.


Root Cause



A defect in Pegasystems’ code or rules
ActionAutoSubmit HTML has code to call doSubmit on load('attachOnload' with true parameter). It gets called on every refresh section on the harness and results in the old transaction ID being used at an incorrect time.

Resolution



Perform the following local-change:

Replace ActionAutoSubmit with a custom rule containing the following code 


<SCRIPT> 
var doActionAutoSubmit = function(){ 
doSubmit(); 
pega.u.d.detachOnload(doActionAutoSubmit); 

<% 
String strMessages = tools.getPrimaryPage().getMessagesAll(); 
if(strMessages.length() == 0) 

tools.appendString("if(window.name != null && typeof(window.name) != \"undefined\" && window.name == \"actionIFrame\" ){"); 
tools.appendString("pega.util.Event.addListener(window,\"load\",doSubmit);"); 
tools.appendString("}else{"); 
/*BUG-168564: Updated doSubmit to call after loading all files. */ 
tools.appendString("pega.u.d.attachOnload(doActionAutoSubmit, true);}"); 

%> 
</SCRIPT> 


​This issue was resolved in both Pega 7.1.7 and Pega 7.2.

For Pega 7.2, find Resolved Issue 218041
https://pdn.pega.com/resolved-issues?field_product_version_tid=All&field_sr_value=&field_issue_value=218041&title=&body_value=&field_product_topic_category_tid=All

See the Release Note for the Resolved Issue
Corrected model flow submitted by ActionAutoSubmit
https://pdn.pega.com/node/1051691

The issue was previously reported in Pega 7.1.7 and resolved for that release with HFix-24145.
If you are using Pega 7.1.7 and do not wish to update to Pega 7.2, go to My Support Portal and create a Support Request (Type = Existing Hotfix Request).
Ask for Pega 7.1.7 HFix-24145.

HFix-24145 was developed to address the problem whereby ActionAutoSubmit did not work correctly with modal windows. In addition, the Pega ActionAutoSubmit HTML rule incorrectly submitted the flow action from which the modal is invoked. HFix-24145 creates a wrapper function doActionAutoSubmit API and removes attachOnLoad after a doSubmit function call.

Published May 18, 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?

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