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

Expression EvaluationFailed

Hi,

In the help topic it's says that this is a new problem, is there someone her to solve this?

 

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

4 REPLIES 4
Mira_Ghaly
Dual Super User
Dual Super User

@toneas 

Can you please share a screenshot of your flow steps?

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
v-pancpr
Microsoft
Microsoft

May be the variable where you are trying store value is of type array!!
Can guide you more appropriately  if you can share your flow steps

toneas_0-1618576986331.png

 

v-pancpr
Microsoft
Microsoft

@toneas The value/input you are passing to 2nd "apply to each loop" should an array or list.
From this(@{triggerOutputs()?['body/value']}@{items('Apply_to_each_2')?['resourceData/responseId']}) it seems you are just passing an id as a string as input for apply to each loop.


Talking about this input of foreach loop.

v-pancpr_0-1618577464531.png

 

Check the input and let me know if this solves your issue!!

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,899)