web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / JSON Error in "Select"...
Power Automate
Answered

JSON Error in "Select" Data Operation

(1) ShareShare
ReportReport
Posted on by 8

Hello everyone! I have a Power Automate Flow that I use to get the properties of newly posted files from a SharePoint Library, then create hyperlinks for each of them by combining some of those file properties (e.g.: link to item, file name, and summary), and then share those hyperlinks via email to a distribution list.

 

For the creation of the hyperlink, I use a Select Data Operation action:

 

  • The ‘From’ field contains the “value” from a preceding Get files (properties only) action.
  • The ‘Map’ field was switched to text mode, and it contains a hyperlink expression. Below is what the Select Data Operation action card looks like, as well as the expression from the ‘Map’ field:

 

YuriLassiter_1-1715702137499.png

 

"<a href=\"@{item()?['{Link}']}\">@{item()?['{Name}']}</a><br>@{item()?['Summary']}"

 

The flow has been working well. In fact, it’s been running for years now. However, every time I open the flow, certain characters disappear from the ‘Map’ expression, and I get a json error. So, I need to re-enter those characters before I can save any other update to the flow. The image below shows what the Select card looks like every time I open the flow. The overlapping image highlights the characters that always disappear, and which I need to re-enter every time.

 

Can someone help me understand why this happens? Is there a way to make those characters stick and not disappear? Or is there a better way to create the hyperlink from the file properties?

 

YuriLassiter_2-1715702137504.png

 

 

Thank you!

YL

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @YuriLassiter ,

     

    Please try to add a 'Compose' action before 'Select' action.

    Then we can save the text in the compose action and use the outputs of compose action in Select action.

     

    Best Regards,

    Wearsky

  • Verified answer
    sandeepstw Profile Picture
    312 Moderator on at

    Hi @YuriLassiter ,

     

    The issue occurs due to the special characters in the HTML string being escaped or modified. To prevent this, you can use the 'cancat' function in Power Automate to construct your hyperlink dynamically.

     

    Here is code 

    concat('<a href="', item()?['{Link}'], '">', item()?['{Name}'], '</a><br>', item()?['{Summary}'])
    

     

    In Data Operation, change the 'Map' field to text mode. And use the function as shown above.

     

    Mark as solution if it helps. 

     

    Thanks,

    Sandeep Mishra

  • YuriLassiter Profile Picture
    8 on at

    Thanks, @v-xiaochen-msft ! I'll try that and post an update here!

  • YuriLassiter Profile Picture
    8 on at

    Thanks, @sandeepstw ! I'll test that and post an update here!

  • YuriLassiter Profile Picture
    8 on at

    Thank you so much! This solution worked for 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard