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 Automate
Unanswered

Error JSON format

(0) ShareShare
ReportReport
Posted on 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 😞

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    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.

     

     

  • Surendran Ravindran Profile Picture
    212 on at

    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

  • sintijar Profile Picture
    9 on at

    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.

  • sintijar Profile Picture
    9 on at

    2 mistakes were reported:

    sintijar_0-1678651772965.png

     

  • Rhiassuring Profile Picture
    8,692 Moderator on at

    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 at

    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,692 Moderator on at

    I think it is based on your connection. 

    Rhiassuring_0-1678741111949.png

    I could be wrong...

     

  • sintijar Profile Picture
    9 on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard