Why is this message displayed at end of the workflow "1 Workflow for RITM0010210 has been cancelled"?

jamesjurden
Giga Guru

I am not sure why this message appears when the workflow for Request item completes. The request is completed successfully without error, all activities transition just fine, but for some reason this message magically appears at the top of the form when it reaches the workflow end. "1 Workflow for RITM????? has been cancelled". Any ideas? Thanks

4 REPLIES 4

davidmcdonald
Kilo Guru

Hi James,



We've had that problem before when we've had multiple workflows trigger on the one record.



There's a business rule that when a task's Active gets set to False, it terminates any running workflow contexts that are still running.



I'd suspect that either that;


  1. The workflow is prematurely terminating itself. I'd make sure that nothing is changing the RITM's Active to False before the workflow can read the End activity.
  2. There's multiple workflows running, and during the execution of those workflows, one of them beats the other to the end, closes the RITM, and that business rule kills off the other workflow. I'd grab that RITM's sys_id and query the wf_context table (has all the instances of executed / executing workflows) and filter where ID = That RITM's sys_id. If there's more than 1 of them, there's your culprit.


Hope that helps!


i am facing same issue could you please explain me how can i avoid this with script or something?

Mihir Mohanta
Kilo Sage

Are you setting the RITM state to closed incomplete before workflow completes ?



"Cancel Workflows Upon Cancellation" business rule written in Task table is responsible for this message.



It runs for :



If task state changes to closed incomplete (4), cancel related workflows so we don't keep tasks active




Thanks,


Mihir


Will this cause any issue with other Snow workflows directly/indirectly? Are we still good to move on with this info message? Please guide.