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 / PARSE JSON content inv...
Power Automate
Unanswered

PARSE JSON content invalid

(0) ShareShare
ReportReport
Posted on by

Im trying to make a cloud flow that splits a pdf based on its content. I have found up to this point that best way to do this is to Parse JSON to identify the text in the file, and then split it. However I am getting an error whenever it Parse's  no matter the content I use, "The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value: e. Path '', line 0, position 0.'."

Any ideas to fix this problem or alternate ways to split the pdf without costly connectors would be greatly appreciated.

full flow with error codefull flow with error codeParse JSON and is sourceParse JSON and is source

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Anonymous 

     

    Instead of passing Body in the content action of extract pdf action, can you add the content you are getting from get file content action. I think that will do it for you.

  • Community Power Platform Member Profile Picture
    on at

    It usually is set to the content, however if usually reverts to body on its own for a reason I do not know. Nonetheless, when it is set to content, the error still remains

  • Sundeep_Malik Profile Picture
    6,484 on at

    @Anonymous 

     

    Yea it happens sometimes. One more thing I am seeing is in schema you have directly pasted your data. Instead you should click on generate from sample and paste it there. Then power automate automatically will make your schema.

    Am I correct you directly pasted in the schema rather than pasting it in generate from sample?

  • Community Power Platform Member Profile Picture
    on at

    That is correct, I extracted it into a JSON format then pasted it directly, I have generated it before(from multiple sources) but that gives the same error code.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    The solution to this issue lies in the parse JSON content selection. Instead of selecting 'extracted content file', choose the body of the extracted pdf. this change solves this particular issue.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard