cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Error message on a flow

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

5 REPLIES 5
FrostedFlake
Resolver I
Resolver I

Hi JRCQ,

a foreach loop needs an array of multiple records to iterate an action, it seems you only pass a single object (i.e. of type "String" or type "Integer"), not an array.

Please post a screenshot of your flow so i can show you how to get it to work!

Have a nice day.

 

Anonymous
Not applicable

Hi, at least I couldn't, now a colleague is looking at this issue hoping he can solve it. But I will be updating the information in case someone else finds the problem.

abm
Super User III
Super User III

Hi @Anonymous 

Looks like you are mapping the wrong dynamic value under the Apply to Each loop. Apply to each loop need a valid array for iteration.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Anonymous
Not applicable

 

 

hi there , 

 

here is the screenshot i appreciate your help 

 

Screen Shot 2020-12-13 at 11.21.36 PM.png

 

 

abm
Super User III
Super User III

Hi @Anonymous 

 

You have two list of response which I can see. Not sure what's the logic behind that.

 

Try this

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
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!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (32,682)