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 / The response is not in...
Power Automate
Unanswered

The response is not in a JSON format.

(0) ShareShare
ReportReport
Posted on by 2
The response is not in a JSON format
I am trying to post a pdf file to PowerApps however I get this error : "The response is not in a JSON format."
Is there something wrong with the configuration? Tried to use encodeuricomponent but still does not work.
 
err1.PNGerr2.PNG
Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey Mate @kanathi 

     

    I assume you are using "Get File Content" SharePoint Action and passing ID parameter from Power APPS -

     

    The Formula I assume looks something like this in Power Apps-

     

    'YouFlow'.Run(Gallery2.Selected.Identifier)

     

    If yes, I do not see any problems with your Power Automate - Please remove the Flow in your PowerAPPs are re-associate it. 

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

     

  • Murcus finn Profile Picture
    2 on at

    still getting the same error on flow.

    This is how the formula looks like in powerapps :

     

    UpdateContext({varPDF:RenderPdfFiles.Run(Substitute(Substitute(Gallery1.Selected.'Link to item',"%20",""),Gallery1.Selected.'Full Path',Blank()),Gallery1.Selected.'Full Path')});Navigate(Imprest_attached_Files_1,ScreenTransition.Fade)

  • california2007 Profile Picture
    2 on at

    Hi CFernandes,

     

    I had a similar problem with the "Get File Content" SharePoint action but with an error code of "401":

    {
        "statusCode"401,
        "headers": {
            "Pragma""no-cache",
            "Request-Context""appId=cid-v1:feebd6ed-c7bc-44d1-ae51-1954a8c54093",
            "Access-Control-Expose-Headers""Request-Context",
            "Timing-Allow-Origin""*",
            "x-ms-apihub-cached-response""true",
            "x-ms-apihub-obo""true",
            "Cache-Control""no-cache",
            "Date""Tue, 26 Apr 2022 18:21:58 GMT",
            "X-Powered-By""ARR/3.0,Cloudmersive",
            "Content-Length""262",
            "Content-Type""application/json",
            "Expires""-1"
        },
        "body": {
            "error": {
                "code"401,
                "source""unitedstates-002.azure-apim.net",
                "clientRequestId""71c874a3-0dc5-4d80-9bf9-7639d67aa3b9",
                "message""The response is not in a JSON format.",
                "innerError""Cannot read server response."
            }
        }
    }
     
    I tried to post my flow, but not work:
    1. Manually trigger a flow
    2. Get File Content
     
    Any help would be appreciated. Thanks in advance. 
    Chuck

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
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard