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

I created an approval flow and the "Action 'Apply_to_each' failed"

So I created my own flow template for an approval process but the flow failed and this is what it said:

 

"The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array."

 

Does anyone know how to fix this issue?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
MattMarcilio
Microsoft
Microsoft

Hi there,

 

The reason for that error message is because the input in the "Apply to each" action is not a valid array. Here's similar thread that might help you address this issue:
Solved: Re: Action 'Apply_to_each' failed - Power Platform Community (microsoft.com)

If issue still persists and you would like to create a ticket with Microsoft Customer Support, here is a link on how to do so: 
https://docs.microsoft.com/en-us/power-platform/admin/get-help-support


Regards,

 

Matt

 

-------

 

Community Support Team _ Matt Marcilio

If this post helps, then please consider "Accept it" as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
MattMarcilio
Microsoft
Microsoft

Hi there,

 

The reason for that error message is because the input in the "Apply to each" action is not a valid array. Here's similar thread that might help you address this issue:
Solved: Re: Action 'Apply_to_each' failed - Power Platform Community (microsoft.com)

If issue still persists and you would like to create a ticket with Microsoft Customer Support, here is a link on how to do so: 
https://docs.microsoft.com/en-us/power-platform/admin/get-help-support


Regards,

 

Matt

 

-------

 

Community Support Team _ Matt Marcilio

If this post helps, then please consider "Accept it" as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Users online (38,968)