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:
  • 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

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard