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 Apps / Expression is of type ...
Power Apps
Unanswered

Expression is of type string. The result must be a valid array

(0) ShareShare
ReportReport
Posted on by 2

Hello,

anyone knows how to change the code to avoid the error below? Thanks. 

I did scroll through several answers already on this topic but nothing seems to work. On previous designs the "grant access" was within the for each (which makes more sense I guess) but the expression of the for each does not validate and that is the basic problem. Screenshot 2024-03-18 144103.png

Categories:
I have the same question (0)
  • pavanmanideep Profile Picture
    576 Power Up Champ - 2025 on at

    Hi,

     

    You can select right from Power Automate designer itself, make sure you choose an array instead as an input to the Foreach loop.

     

    Hope this helps..

     

    If I have answered your question, please mark your post as Solved.

    If you like my response or got a direction forward to proceed, please give it a Thumbs Up. Appreciate your Kudos. You can accept more than one post as a solution.

     

    Blog:https://ecellorscrm.com

     

    Cheers,

    PMDY

  • WimWillems Profile Picture
    2 on at

    Thanks for your answer. Not really sure what you mean though. 

    I did use the power automate designer. But it does not show what type of input I select. 

     

    Purpose is that after inserting a new line of a list I need to give access to some people for that specific line (and as such no access to others). So the idea was to look at a certain field to be equal to 'OBE' but ... well it fails. 

    I don't understand what kind of input should be an 'array'. It does not make sense to me. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard