Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

 

  • mohd1978 Profile Picture
    84 on at
    Re: How to fix Run fail

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

  • Verified answer
    David_MA Profile Picture
    11,755 Super User 2025 Season 1 on at
    Re: How to fix Run fail

    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
    Re: How to fix Run fail

     

    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.

  • David_MA Profile Picture
    11,755 Super User 2025 Season 1 on at
    Re: How to fix Run fail

    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
    Re: How to fix Run fail

    Multichoice column like this 

     

     

    mohd1978_0-1719582321457.png

     

  • StretchFredrik Profile Picture
    3,085 Super User 2025 Season 1 on at
    Re: How to fix Run fail

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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1