All Task not created after Request Item approval

User687957
Tera Contributor

Dear all,

I am learning the service now platform by exploring the Administration training course.

I have created a catalog Request which create Request Item and need to be validated by the reporter manager.

When approved by manager, it is suppose to create 3 catalog task but only the first one is created and I do not understand why

The first task is flag as completed

The second is flag as Waiting

The third is flag as Not run

 

Here is below the screen capture of the flow

User687957_2-1768212624928.png

 

 

And here is the flow config

User687957_1-1768212538956.png

Any idea why not all task gets created from the flow ?

regards

1 ACCEPTED SOLUTION

vaishali231
Giga Guru

Hi @User687957 

 

This is expected behavior in Flow Designer and nothing is wrong with your flow.

 

In Flow Designer, actions run one after another, not in parallel.

 

When you use Create Catalog Task, the flow waits until that task is completed (closed) before moving to the next step.

That is why you are seeing this:

 

First task – Completed
The task was created and then closed, so the flow moved forward.

Second task – Waiting
The task is created but still open, so the flow is paused here.

Third task – Not Run
This step has not been reached yet because the second task is still open.

So the flow is behaving exactly as designed.

If your requirement is sequential tasks then your current design is correct.
You just need to close the second task to allow the third one to be created.

If you want all three catalog tasks to be created at the same time, then you should not use sequential “Create Catalog Task” actions. In that case, you can:

Use Create Record instead , or

Create the tasks using a different approach (like parallel logic or a subflow).

 

*************************************************************************************************************
If this response helps, please mark it as Accept as Solution and Helpful.
Doing so helps others in the community and encourages me to keep contributing.

Regards
Vaishali Singh

View solution in original post

7 REPLIES 7

Just uncheck the 'wait for completion' checkbox on the 'create catalog item' action and add logic to update the RITM only if all 3 tasks are completed.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Sanjay191
Kilo Patron

Hello @User687957 

I can see that the second task has been created, but it has not been completed, which is why it is still in the Waiting state.
Please check the sc_task table for more details, or review the Flow Context. When you expand the flow context, you will be able to see the Catalog Task that was created along with its task number.
if anything else please let me know

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You

Ankur Bawiskar
Tera Patron

@User687957 

the 2nd task is not created and is waiting since this Wait for completion checkbox must be true on 1st Catalog task flow step

if that checkbox is true catalog tasks will be created sequentially

If you want 2nd task to directly create then uncheck that checkbox

AnkurBawiskar_0-1768213784975.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader