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

Community site session details

Session Id : e92q9i/ykMH1JG8WLwFHRZ
Power Automate - General Discussion
Unanswered

New Unknown Error

Like (0) ShareShare
ReportReport
Posted on 5 Jun 2023 13:25:04 by 14

This is the error I'm getting with my flow. I've copied a flow from a previously answered post to assist with creating a flow which uses conditional formulas to send emails to different people based on the multiple-choice topic. See below:

 

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

  • CU-18081211-6 Profile Picture
    9,266 Moderator on 06 Jun 2023 at 08:52:24
    Re: New Unknown Error

    @Siyasanda ,

    I don't know the entire process, but can you check if isn't more suitable to use a switch control there to check the values and execute action based on adequate branch. 

    For sure, the provided solution will execute actions (conditions) that can be avoided.

  • CU-18081211-6 Profile Picture
    9,266 Moderator on 06 Jun 2023 at 08:45:51
    Re: New Unknown Error

     There is no need to use Apply_to_each in order to read the Forms response details as the trigger-outputs/body/resourceData is an object. You can give up to Apply to each (there is no reason to use it) and use directly Forms - Get response details action.

    But if you insist to use Apply_to_each, actually yes my solution ... 

    [@triggerOutputs()?['body/resourceData']]

    gabibalaban_0-1686041064398.png

    will make your flow runs successfully.

    Hope it helps !

     

  • Siyasanda Profile Picture
    14 on 06 Jun 2023 at 08:17:36
    Re: New Unknown Error

    Here is another screen shot. Was I correct to include all these conditions under the same "Apple to each" step?

  • Siyasanda Profile Picture
    14 on 06 Jun 2023 at 08:13:12
    Re: New Unknown Error

    Here is a screenshot of the flow. The part with the "Gte responses" and "Conditional" functions are both under "apply to each". Do you need anything more?

  • CU-18081211-6 Profile Picture
    9,266 Moderator on 05 Jun 2023 at 17:19:51
    Re: New Unknown Error

    @Siyasanda 

    As the error says:

    @triggerOutputs()?['body/resourceData']

    is an object, not an array to be used in Apply_to_each. 

    You can force that object to be considered an array using in apply_to_each

    [@triggerOutputs()?['body/resourceData']]

     but I don't think that will solve the problem.

    Can you give more details about your flow ?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete