Skip to main content

Notifications

Power Automate - Using Flows
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
  • california2007 Profile Picture
    california2007 2 on at
    Re: The response is not in a JSON format.

    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
  • Murcus finn Profile Picture
    Murcus finn 2 on at
    Re: The response is not in a JSON format.

    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)

  • CFernandes Profile Picture
    CFernandes 8,146 on at
    Re: The response is not in a JSON format.

    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.

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics

Restore a deleted flow