cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hew702
New Member

"Apply to Each" Error but No Actions Within Marked as Failed

My flow "succeeded" but failed with error "Action 'List_Contacts_with_Matching_Names' failed." However, the "Next/Previous failed" buttons are grayed out. Since this applied to 30k+ records, it seems almost impossible to figure out which one failed. Is there any way I can determine which record has the failed action?

 

hew702_0-1642981323833.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mister_Shaik
Solution Sage
Solution Sage

Hi @hew702 ,

 

If your requirement is just to capture the record number, where the action failed. Then you can add a new variable and append the record id to the variable on failure of "List_Contacts_with_Matching_Names" Action. (This can be configured using the Run after settings, once you click on the ellipses of append action)

 

1. Capture errored item to array.PNG 

 

Configure run after settings for the append action and it's next action:

2. Configure run after for append variable.PNG3. configure next action on skipped.PNG

 

This way, the variable will keep collecting the failed records data and view them after flow run.

 

Hope you find this helpful!

 

Kind Regards,

Shaik Sha
________________________________________________________________________

If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Mister_Shaik
Solution Sage
Solution Sage

Hi @hew702 ,

 

If your requirement is just to capture the record number, where the action failed. Then you can add a new variable and append the record id to the variable on failure of "List_Contacts_with_Matching_Names" Action. (This can be configured using the Run after settings, once you click on the ellipses of append action)

 

1. Capture errored item to array.PNG 

 

Configure run after settings for the append action and it's next action:

2. Configure run after for append variable.PNG3. configure next action on skipped.PNG

 

This way, the variable will keep collecting the failed records data and view them after flow run.

 

Hope you find this helpful!

 

Kind Regards,

Shaik Sha
________________________________________________________________________

If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Great solution, thank you very much!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,012)