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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error: Action 'Apply_t...
Power Automate
Answered

Error: Action 'Apply_to_each' failed

(2) ShareShare
ReportReport
Posted on by 98

Dear community: 

 

i get this error, do you know why?

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['{Identifier}']' is of type 'String'. The result must be a valid array.

 

bebo987_0-1645446751681.png

bebo987_1-1645446768044.pngbebo987_2-1645446801160.png

 

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @bebo987 ,

     

    The input in the expression needs to be valid array whereas what you have specified is string so it is failing. You need to put an array in foreach . 

     

    Thanks

  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @bebo987 

    Can you explain what you are trying to do in your loop? 

    Usually, you don't need to add the loop yourself.  My suggestion is to remove the loop and re-add your condition.  If a loop is required, Power Automate will automatically add it for you.

     

  • bebo987 Profile Picture
    98 on at

    hi guys, 

     

    I modified a parametres in the field so now works. 

     

    thanks for your inputs

  • MillerTime23 Profile Picture
    2 on at

    I am having same issue.  Can you expand on what you changed.  My input is a list where I am filtering on items that a date column only matches "today's" date.  That part works but when I go downstream of the condition to send the email it fails for the exact same reason.

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @MillerTime23 

    It would be best if you would create a new post for your issue.  Please include screen shots of your Flow as well as the error.  If you @ mention me, I'll try to assist.

     

  • RobertYancey Profile Picture
    2 on at

    This is a terrible answer. Why not just answer it if you know?
    Was on the thread looking for help, now I need to go find it somewhere else.
    Thumbs down.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard