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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,502)