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 : LN+pEkvAiWSJpBnUrmTURe
Power Apps - Error Handling
Unanswered

Error message setting up flow - Foreach failed

Like (0) ShareShare
ReportReport
Posted on 30 Nov 2023 18:01:41 by

Hi everyone, 

 

I'm new to Power Automate and my colleague is helping me set up a work flow so that when our staff fills out a form it populates into a spreadsheet, sends a confirmation email, and a calendar reminder. 

 

I'm getting this error: The execution of template action 'Foreach' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/value']' is of type 'Null'. The result must be a valid array.

 

The Foreach seems to be the problem. I've tried to completely rebuild the process, but I keep getting the same error. 

Categories:
I have the same question (0)
  • MikeBeman Profile Picture
    28 on 15 Jan 2024 at 10:56:24
    Re: Error message setting up flow - Foreach failed

    Hi Rachel, what form is being used to trigger the flow?

    Mike

  • MikeBeman Profile Picture
    28 on 15 Jan 2024 at 12:38:05
    Re: Error message setting up flow - Foreach failed

    Hi Rachel, I have just built a test flow in my environment (see below) basing this on a MS Form response and the flow runs successfully. Happy to share with you if you wish?

    I created the form, created the excel spreadsheet with matching column headers in a table, mapped the responses to those columns and used that data to populate the email and calendar event.

    Thanks

    Mike

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard

Featured topics

Loading complete