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 Automate
Suggested Answer

Flow failed to run

(0) ShareShare
ReportReport
Posted on by
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['Network']?['Value']' is of type 'String'. The result must be a valid array.
Categories:
I have the same question (0)
  • Suggested answer
    rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at
     
    According to the error message, the property Network/Value is a string (text value). In an Apply to each, you can only pass arrays (lists of elements) as inputs. So this is a data type issue - please double check if the Network/Value is the actual input that you wanted to provide to the loop.
     
    For further learning about it, refer to these blogs:
    - Using loops and accessing array elements in Power Automate: https://digitalmill.net/2023/07/12/using-loops-and-accessing-array-elements-in-power-automate/
     
     
    Also, feel free to share more details about what you're trying to achieve, maybe including some images of your current flow design.
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn
  • eliotcole Profile Picture
    4,390 Moderator on at
    Hi, @CU21012031-0, if you could embed (not attach, as many users cannot access attachments) one or two images of your flow that would really assist ... you can blank out anything sensitive 🙂 :
    1. Design - An image of your flow in the design screen showing at least the trigger and the action (use the 'pin' function on one) ... what is key for us to understand is how your flow is triggered, here, so that we can assuredly address this 'array' issue
    2. Run + Error - The run screen where you see the error, with the error action pinned and the trigger also open
    Finally, you can POSSIBLY work around this by detecting whether the value is a string or not ... but ... it will not be perfect, and may take a hot second for any one of us to plot that out for you in an expression.

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
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard