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
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,687)