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

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

Hey Guys,

I am trying to create a flow that will allow me to update a list in Sharepoint using an excel file stored also on Sharepoint.

 

I have followed some tutorials from youtube, but I get a following error that brakes my flow during checking condition: (

if value is not = 0:

* update the Sharepoint list item,

else:

* create a new item

 
ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression 'value@{outputs('List_rows_present_in_a_table')?['body/value']}' is of type 'String'. The result must be a valid array.
3 REPLIES 3
abm
Super User
Super User

Hi @booshooy 

 

Could you post a screenshot of your flow? Believe your mapping is not quite right. It is expecting an array and your dynamic current mapping is returning a string hence the error.

 

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 blog
Power Automate Video Tutorials

Hi Abm,

this is the first time I am doing this, so I am pretty confused :'( , here's the screenshot:

booshooy_0-1649245264859.png

 

Hi

 

Why you have two apply to each

 

image.png

 

I want to see the full flow to determine what's wrong here.



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 blog
Power Automate Video Tutorials

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,190)