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

I broke my flow

Hi everyone,

 

I am new to this but having a blast building flows for my company, that is until today!

 

I tried to add something to a flow yesterday and ended up breaking it. Not sure what I did wrong but here is a snap shot of the error.

 

 
Action 'Apply_to_each' failed
Error Details
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')' is of type 'Object'. The result must be a valid array.
 
thanks for your help
Dave
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Hardesh15
Super User II
Super User II

@davegui 

It is similar like foreach loop. Apply to each needs item collections. Array is one of the such example. When you use Apply to each action it needs value to iterate. you need to pass item collection values.

Share your Flow Screen shot for accurate solution.

Thanks

Hardesh

View solution in original post

2 REPLIES 2
abm
Super User III
Super User III

Hi @davegui 

 

Most likely you are mapping a wrong value under Apply to each. Could you please post a screenshot of  your flow?

 

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
Hardesh15
Super User II
Super User II

@davegui 

It is similar like foreach loop. Apply to each needs item collections. Array is one of the such example. When you use Apply to each action it needs value to iterate. you need to pass item collection values.

Share your Flow Screen shot for accurate solution.

Thanks

Hardesh

View solution in original post

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

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (70,366)