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 message that my ...
Power Automate
Answered

Error message that my array keeps coming back as a string

(0) ShareShare
ReportReport
Posted on by 6

I am trying to use an MS form to track completed buildings inspected. The assessors will add multiple buildings in one row in the form. They will separate the building numbers by a comma. I want PowerAutomate to add the numbers to my spreadsheet but separate the numbers out into separate cells by creating rows. I keep getting the following error - The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@outputs('Compose_3')' is of type 'String'. The result must be a valid array.

Screenshot 2023-11-11 164337.png
Screenshot 2023-11-11 164457.png
Categories:
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    In your Compose 3, you've just typed the expression in. Instead, you need to click into the field, then choose the expression tab, add the expression there, and click OK. 

     

    You'll see it entered as a purple rectangle, and then you should be good.

  • laqutus9 Profile Picture
    6 on at

    Thank you for your response. I am just learning how to use Power Automate.

  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    No worries, I think we've all done this particular thing...

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard