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 / For each action Action...
Power Automate
Answered

For each action ActionFailed. Fehler bei einer Aktion. Abhängige Aktionen wurden nicht erfolgreich durchgeführt.

(0) ShareShare
ReportReport
Posted on by 30

Hi, my flow should read out for all my enciroments the flows created and existing. Result should be mailed to myself.

For Each Array as added by PowerAutomate while proofing the flow, test result shows Error:

Fehler beim Ausführen der Vorlagenaktion "Auf_alle_anwenden_2". Das Ergebnis der Auswertung des foreach-Ausdrucks "@items('Auf_alle_anwenden')" weist den Typ "Object" auf. Das Ergebnis muss ein gültiges Array sein.

NajukHusky_0-1622468478051.png

Any Idea what to change?

KR Carsten

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Take a look at the dynamic content you are using on the Apply to Each loop.  You are passing it an object, not an array.  I think you just picked the wrong dynamic content.  Usually there is a Body and Value.  You want Value, not Body.

  • NajukHusky Profile Picture
    30 on at

    I have selected value

    NajukHusky_0-1622471058997.png

    Not clear for me where I can change from value to body her

  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Can you post a screenshot of a recent run showing the output?  Value should be the correct dynamic content, but the error suggests that what you are submitting is an object not an array.  If its not an array then you don't need the Apply to each loop.

  • NajukHusky Profile Picture
    30 on at

    NajukHusky_0-1622474235553.png

     

  • NajukHusky Profile Picture
    30 on at

    NajukHusky_1-1622474267525.png

     

    NajukHusky_2-1622474294253.png

    interesting cascading here, I am unfortunately not able to checkif that is what is expected or may be wrongly formatted in the file.

     

  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Sorry, I took another look at the screenshot and the error.  You have two loops.  The screenshot shows that the outer loop is using Value.  What is the inner loop (loop 2) using?  That's where the error is coming from.

  • NajukHusky Profile Picture
    30 on at

    Good hint, I was also looking on the first loop. The inner loops using the actual element. Idea was take always the actual element from the array. 

    NajukHusky_0-1622530478502.png

     

  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Unless the elements are arrays you don't need Apply to Each loops at those points.

  • NajukHusky Profile Picture
    30 on at

    I've delete now all lopps and I have a loop free flow saved succesfully. Flow is in testing and is running since six minutes. Unfortunately I am getting now one email per found array element, in my cas approximately 346. My aim was to get only one mail, with 356 line entries. Any hint how to get the elements of the array in only one mail?

  • Verified answer
    Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    If you want only one email replace the email action inside the loop with something that aggregates the content you want in the email.  Then once you exit the loop you can send the email with the aggregated content.  One common way to do that is with an array variable which you later convert to an HTML table to put into the email.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard