web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

How to fix Run fail

(0) ShareShare
ReportReport
Posted on by 84

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/Status/Value']' is of type 'String'. The result must be a valid array.

 

mohd1978_0-1719579595495.png

this is the error

 

mohd1978_1-1719579638854.png

 

Categories:
I have the same question (0)
  • StretchFredrik Profile Picture
    3,395 Super User 2025 Season 2 on at

    What is the Status? Is that a multichoice column? Or a single choice?

  • mohd1978 Profile Picture
    84 on at

    Multichoice column like this 

     

     

    mohd1978_0-1719582321457.png

     

  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at

    In the apply to each, you need to use your Status field without the one with Value afterward. The one without Value is the array, which is required by an Apply to each action.

  • mohd1978 Profile Picture
    84 on at

     

    it didn't work either 

    The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/Status']' is of type 'Object'. The result must be a valid array.

  • Verified answer
    David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at

    In that case, it sounds like your choice field accepts just one option. If so, I don't think you need an apply to each. Is the status also being used to control the switch? If so, move the switch outside of the apply to each and delete the apply to each. What is the reason for the apply to each when you have a switch?

  • mohd1978 Profile Picture
    84 on at

    Thank you fro your help. I took the loop out and it did work. thanks again 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard