Support Article

Flow gets in infinite loop with two tickets



A flow with two tickets gets in an infinite loop when the second ticket attempts to transfer to the end of the flow

Error Messages

A stack overflow error occurs.

Steps to Reproduce

1) Use a SetTicket call to transfer back to the beginning of aflow.
2) Use a fork shape to proceed to 
a second SetTicket.
3) The new SetTicket attempts to transfer to end of flow.

Root Cause

The prpc developer help warns that when doing a subsequent SetTicket call, it should explicitly cancel the first ticket.  When this warning is followed, the flow performs correctly.


Clear the first flow ticket before calling the second SetTicket.

Published July 12, 2014 — Updated February 15, 2016

100% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.