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

@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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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 (1,497)