Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Whatever I change the catalog task state it first updates to closed complete then closed incomplete

Prasun Sarkar7
Tera Expert

Hi facing an issue whenever the catalog task is updated the ritm updates are first closed complete then closed incomplete.

PrasunSarkar7_0-1761229064115.png

PrasunSarkar7_2-1761229084988.png

 

 

9 REPLIES 9

Hanna_G
Kilo Sage
Kilo Sage

From your screenshots, it looks like the flow logic is the root cause.

 

In your Flow Designer flow, the “If Check catalog task state” condition ends the flow when Completed, but the Else path always updates the RITM to Closed Incomplete. Because the flow runs on every task update, the “Else” branch still executes briefly even for completed tasks — updating the RITM to Closed Incomplete immediately after it was set to Closed Complete.

To fix this:

  1. Add an explicit condition before updating the RITM to Closed Incomplete — only run that update if the task state truly equals Closed Incomplete.

  2. Or, move the Closed Incomplete update into a separate flow/subflow triggered only when the task is set to Closed Incomplete.

  3. Also, ensure that no legacy Workflow or Business Rule is updating the same RITM state field at the same time.

Hi Hanna I checked the execution I am checking if the catalog task is closed complete or incomplete when I am incompleting but the state is first completed then incompleted for ritm in the above ss

 

PrasunSarkar7_0-1761229891997.png

 

Hi @Prasun Sarkar7 - it is being set as incomplete by the stage you have between 15& 16 - it looks like there is something in your flow that is not accurately identifying it as closed complete - could be in your step 13, but its hard to tell with not much detail about what each stage is doing. 

Id check your steps and stages being set - and make sure they are accurate. Try removing them and re-adding as you walk it through to ensure correct. 

So basically Hanna I checked when I manually updated the stage of RITM it sets default state of RITM to complete in the ticket. I think there is a br why is causing this any idea i am not able to find out