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

Activity called from post flow action JS is executed twice

SA-36924

Summary



In an offline mobile application, an activity is configured to be called from the postFlowAction JS using the launchBox API. At runtime, that activity is executed twice on the server.

Error Messages



Not Applicable

Steps to Reproduce

  1. Create an offline enabled application and case
  2. Add a postFlowAction JS for one of the flow actions
  3. Use launchbox API to call an activity
  4. Trace the requestor when trying to execute the flow on the device.
  5. Notice that the activity called via the API runs twice

Root Cause



A defect in Pegasystems’ code or rules

Resolution



Two Hotfixes are required to address this issue
  1. HFix-29035 updates the Pega mobile build version to 7.22 (This is necessary for the issue to be addressed)
  2. HFix-33260 implements a deduplication mechanism responsible for preventing the processing of the same action twice on the server.
Rebuild your mobile application after applying these.

Published April 25, 2017 - 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