web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Facing Issues with Parsing JSON information using Custom Connector

(1) ShareShare
ReportReport
Posted on by 2
Action 'Get_Records' failed: Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: E. Path '', line 0, position 0.'
 
I am trying to fetch information from my Custom connector, which takes in content type as application/json. It is being triggered by a manual triigger, which does provide the output in the form of application/json, yet I am getting the error above.
 
I have looked at the raw output of the trigger, and it looks like a JSON format.
 
How do I resolve this?
Screenshot 2025-05-12 093752.png
Screenshot 2025-05-12 093842.png
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
    The error indicates your custom connector is returning a non-JSON response, likely starting with an unexpected character like 'E' — often seen with HTML error pages (e.g., Error 403, Error 500, etc.).
    1. Check Raw Response from the custom connector (not just the trigger input).
    2. Verify the API endpoint is:
      • Returning proper application/json response.
      • Not returning an HTML error or plain text (e.g., "Error occurred").
    3. Add error handling (e.g., Configure Run After) to inspect failed responses.
    4. Use Postman or curl to test the connector endpoint independently and confirm it returns valid JSON.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans