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 / Issue with using @spli...
Power Automate
Answered

Issue with using @split function to create an array

(0) ShareShare
ReportReport
Posted on by 55

Hi,

I'm having issues with passing a collection of images from PowerApps to Flow and splitting a large string into an array. I receive the following error:

ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('ProcessImages')' is of type 'String'. The result must be a valid array.
 
Here are images of my Flow:
Screen Shot 2019-12-16 at 7.12.48 AM.pngScreen Shot 2019-12-16 at 7.14.49 AM.pngScreen Shot 2019-12-16 at 7.15.55 AM.png
Categories:
I have the same question (0)
  • Verified answer
    manuelstgomes Profile Picture
    6,625 on at

    Hey @deltaformtech 

     

    Your formula is correct but you're putting it as a string and not an actual formula. Hence the message. Power Automation gets the string of the formula instead of the result of it. You don't need the " in the formula.

     

    Please include it here:

    2019-12-16 14_25_39-Create your flow _ Microsoft Power Automate.png

     

    Makes sense?

     

    If you need further assistance please let me know

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • deltaformtech Profile Picture
    55 on at

    Hi Manuel,

     

    You're response makes sense, however, I am still experiencing an issue.

     

    When I attempt to input the formula: @split(triggerBody()['ProcessImages_Inputs'],#) into the Expression box, I see the following:

    Screen Shot 2019-12-16 at 7.35.34 AM.png

    Am I still missing something?


    Greg

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @deltaformtech 

     

    In the formula put "#" instead of just #

     

    It will work with that.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @manuelstgomes 

    Did you mean to say to put single quotes around the # :

    '#'

     

     

     

     

  • manuelstgomes Profile Picture
    6,625 on at

    Yep single quotes indeed!!!!! Thanks @ScottShearer 

    @deltaformtech  does it work for you?

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • deltaformtech Profile Picture
    55 on at

    Hi @manuelstgomes , @ScottShearer ,

     

    I enter @split(triggerBody()['ProcessImages_Inputs'],'#')

    into the expression box and still receive the "The expression is invalid" message.  Thoughts?

  • manuelstgomes Profile Picture
    6,625 on at

    HI @deltaformtech 

     

    When inserting in the formula remove the @.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • deltaformtech Profile Picture
    55 on at

    Hi @manuelstgomes ,

     

    😅Thank you!! That did the trick!

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @deltaformtech 

     

    AWESOME!!!!!!!!!! Glad to hear it.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard