Skip to main content

Notifications

Community site session details

Community site session details

Session Id : bma/hBDHklhGUhDxocY3wV
Power Automate - General Discussion
Unanswered

Error JSON format

Like (0) ShareShare
ReportReport
Posted on 12 Mar 2023 13:53:29 by 9

I'm trying to get data from PDF document. 

Got an error:

{
"statusCode": 401,
"headers": {
"Request-Context": "appId=cid-v1:0dacbed6-da67-4d12-94b4-2378f6427ff0",
"x-azure-ref": "20230312T133841Z-7k073azf1x37pcuwhbdq01fm8000000003s000000001wt3d",
"X-Cache": "CONFIG_NOCACHE",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Sun, 12 Mar 2023 13:38:43 GMT",
"X-Powered-By": "ASP.NET",
"Content-Length": "286",
"Content-Type": "application/json"
},
"body": {
"error": {
"code": 401,
"source": "flow-apim-europe-001-northeurope-01.azure-apim.net",
"clientRequestId": "22434333-0bb6-48c4-83f8-1928ac74e8ae",
"message": "The response is not in a JSON format.",
"innerError": "The API Key provided is not valid"
}
}
}

sintijar_0-1678629033802.png

sintijar_1-1678629104207.png

Please support me, I'm already without ideas 😞

  • sintijar Profile Picture
    9 on 20 Mar 2023 at 06:41:16
    Re: Error JSON format

    Yes, thank you. I managed to connect finally :). Everything works now.

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on 13 Mar 2023 at 20:58:44
    Re: Error JSON format

    I think it is based on your connection. 

    Rhiassuring_0-1678741111949.png

    I could be wrong...

     

  • sintijar Profile Picture
    9 on 13 Mar 2023 at 19:59:11
    Re: Error JSON format

    I realized that I'm not able to connect to encodian first time. I do have API , but it is not possible to enter it and connect. No such window if encodian action is chosen 

    sintijar_0-1678737536732.png

     

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on 13 Mar 2023 at 16:30:07
    Re: Error JSON format

    Hi @sintijar 

     

    "The API key provided is not valid" - it sounds like maybe you have an account with Encodian and it has run out of capacity. The free key, I think, only allows 50 runs a month. Something like that. Have you been trying this a lot? Are you using a free license?

  • sintijar Profile Picture
    9 on 12 Mar 2023 at 20:09:43
    Re: Error JSON format

    2 mistakes were reported:

    sintijar_0-1678651772965.png

     

  • sintijar Profile Picture
    9 on 12 Mar 2023 at 18:51:54
    Re: Error JSON format

    Thanks @Rhiassuring the form can be fulfilled. Tried ones again, the same problem 

    sintijar_0-1678647023563.png

    About action Parse JSON. Tryed, but I'm not sure what I should remove. Scheema also is not generating.

  • Surendran Ravindran Profile Picture
    212 on 12 Mar 2023 at 17:09:51
    Re: Error JSON format

    Hi @sintijar ,

     

    The JSON will contain ‘\’ escape characters which we need to remove. This can either be done with a text or code editor using ‘Find and Replace’ or online service.

     

    After that use Parse Json action for proper managing and formatting of Json

    Surendran_R_0-1678640949465.png

     

     

    Refference : https://www.encodian.com/blog/extracting-pdf-form-data-using-microsoft-flow/

     

    Regards

    Surendran R

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on 12 Mar 2023 at 16:52:44
    Re: Error JSON format

    Hi there, 

     

    Is the PDF that you're pointing to a fillable form? 

     

    I tried this in a slightly different way, but had success. Here's what I did:

     

    Rhiassuring_0-1678639875013.png

     

     

    Rhiassuring_1-1678639891048.png

     

    This makes me wonder if maybe PowerApps isn't 100% finished (in yours) when it fires, or something - that or it's not a fillable form.

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard