Action in a subflow not executing, but status showing as 'Completed'

sd2097
Tera Guru

Hello devs,

 

I have come across a strange issue in flow designer. So, I have created subflow, and there is a custom action being called in the subflow, for each of the records being looked up. Suppose there are 3 records in the lookup action, the subflow will be executed 3 times.

I am executing the flow with a script. Even though the flow is executing, and the look up record action is also returning 1 record (as expected), the action is not executing at all.

One of the reasons that I could think of, is the error that I am getting when I am loading the steps of the subflow execution (please see the screenshot attached).

For context, I am looking up attachment records with Sys_Ids.

 

PS- Also, when I am running a test execution for the subflow, the result is the same.

 

This is turning out to be a major blocker, so any help would be appreciated.

 

Thanks

6 REPLIES 6

PruthveshV
Tera Contributor

Hi @sd2097 

It seems like the issue might be related to permission restrictions or missing inputs in the flow. Please check if the user has necessary rights to access the records, and verify all required fields correctly passes to the custom action.

Regards,

Pruthvesh

If my response helped, please mark it as the accepted solution so others can benefit as well.

Bhuvan
Kilo Patron

@sd2097 

 

If you are running the flow as 'User who initiated the session' make sure the user has necessary ACLs and try to change the flow to run as system and try it.

 

If you are already running the flow as System and getting the error, try below knowledge article

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0856507

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan