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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,982)