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 / Testing returns an Arr...
Power Automate
Answered

Testing returns an Array Failure

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Initialized 2 array variables in a Power Automate:

GregMc_0-1687966289407.png

When I run the workflow I receive the following results:

GregMc_1-1687966383818.png

That actual error being thrown is:

GregMc_2-1687966418751.png

Why does the first array fail and how to correct?

 

In the future I will be replacing the text entries with the actual contents from a string being brought in from a SharePoint Column.

 

Thanks for the help!

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    UPDATE: It appears the '\' character in the PIN is causing the problem. If I replace the '\' with '\\' then my array is accepted but the string now has a double '\':

    GregMc_0-1687972019536.png

    How do I prevent this as I simply desire to have a single slash as part of the PIN value?

     

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    '\\' means '\' , it's a kind of JSON escaping .When you invoke this value, it will display as '\' normally.

    vbofengmsft_0-1688003814105.png

    vbofengmsft_1-1688003840422.png

     

    JSON escaping is a method of converting special characters into a readable form so that computers can parse and process them correctly. In JSON, if the string contains special characters, such as quotes, backslashes, and line breaks, it needs to be escaped.

     

    Special characters are handled by prefixing them with a '\', such as escaping double quotes (") to (\"), backslashes (\) to (\\), newline characters (\n) to (\\n), and so on.

     

    Best Regards,

    Bof

     

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