Support Article

Activity called from post flow action JS is executed twice



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


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

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.