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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Parse JSON Error

(0) ShareShare
ReportReport
Posted on by 15

Hi,

 

I really appreciate this forum. It often helped me out by just reading posts and solutions.

 

Unfortunately not this time.

 

I try to parse a json from the output of an http request, but I get this error:
""

Here my input

input.png

 

The following schema I inserted from output of step HTTP request:

 

{
 "type": "object",
 "properties": {
 "@@odata.context": {
 "type": "string"
 },
 "value": {
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "@@odata.etag": {
 "type": "string"
 },
 "id": {
 "type": "string"
 },
 "createdDateTime": {
 "type": "string"
 },
 "lastModifiedDateTime": {
 "type": "string"
 },
 "changeKey": {
 "type": "string"
 },
 "categories": {
 "type": "array"
 },
 "transactionId": {
 "type": "string"
 },
 "originalStartTimeZone": {
 "type": "string"
 },
 "originalEndTimeZone": {
 "type": "string"
 },
 "iCalUId": {
 "type": "string"
 },
 "reminderMinutesBeforeStart": {
 "type": "integer"
 },
 "isReminderOn": {
 "type": "boolean"
 },
 "hasAttachments": {
 "type": "boolean"
 },
 "subject": {
 "type": "string"
 },
 "bodyPreview": {
 "type": "string"
 },
 "importance": {
 "type": "string"
 },
 "sensitivity": {
 "type": "string"
 },
 "isAllDay": {
 "type": "boolean"
 },
 "isCancelled": {
 "type": "boolean"
 },
 "isOrganizer": {
 "type": "boolean"
 },
 "responseRequested": {
 "type": "boolean"
 },
 "seriesMasterId": {},
 "showAs": {
 "type": "string"
 },
 "type": {
 "type": "string"
 },
 "webLink": {
 "type": "string"
 },
 "onlineMeetingUrl": {},
 "isOnlineMeeting": {
 "type": "boolean"
 },
 "onlineMeetingProvider": {
 "type": "string"
 },
 "allowNewTimeProposals": {
 "type": "boolean"
 },
 "occurrenceId": {},
 "isDraft": {
 "type": "boolean"
 },
 "hideAttendees": {
 "type": "boolean"
 },
 "responseStatus": {
 "type": "object",
 "properties": {
 "response": {
 "type": "string"
 },
 "time": {
 "type": "string"
 }
 }
 },
 "body": {
 "type": "object",
 "properties": {
 "contentType": {
 "type": "string"
 },
 "content": {
 "type": "string"
 }
 }
 },
 "start": {
 "type": "object",
 "properties": {
 "dateTime": {
 "type": "string"
 },
 "timeZone": {
 "type": "string"
 }
 }
 },
 "end": {
 "type": "object",
 "properties": {
 "dateTime": {
 "type": "string"
 },
 "timeZone": {
 "type": "string"
 }
 }
 },
 "location": {
 "type": "object",
 "properties": {
 "displayName": {
 "type": "string"
 },
 "locationType": {
 "type": "string"
 },
 "uniqueIdType": {
 "type": "string"
 },
 "address": {
 "type": "object",
 "properties": {}
 },
 "coordinates": {
 "type": "object",
 "properties": {}
 }
 }
 },
 "locations": {
 "type": "array"
 },
 "recurrence": {},
 "attendees": {
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "type": {
 "type": "string"
 },
 "status": {
 "type": "object",
 "properties": {
 "response": {
 "type": "string"
 },
 "time": {
 "type": "string"
 }
 }
 },
 "emailAddress": {
 "type": "object",
 "properties": {
 "name": {
 "type": "string"
 },
 "address": {
 "type": "string"
 }
 }
 }
 },
 "required": [
 "type",
 "status",
 "emailAddress"
 ]
 }
 },
 "organizer": {
 "type": "object",
 "properties": {
 "emailAddress": {
 "type": "object",
 "properties": {
 "name": {
 "type": "string"
 },
 "address": {
 "type": "string"
 }
 }
 }
 }
 },
 "onlineMeeting": {},
 "calendar@odata.associationLink": {
 "type": "string"
 },
 "calendar@odata.navigationLink": {
 "type": "string"
 }
 },
 "required": [
 "@@odata.etag",
 "id",
 "createdDateTime",
 "lastModifiedDateTime",
 "changeKey",
 "categories",
 "transactionId",
 "originalStartTimeZone",
 "originalEndTimeZone",
 "iCalUId",
 "reminderMinutesBeforeStart",
 "isReminderOn",
 "hasAttachments",
 "subject",
 "bodyPreview",
 "importance",
 "sensitivity",
 "isAllDay",
 "isCancelled",
 "isOrganizer",
 "responseRequested",
 "seriesMasterId",
 "showAs",
 "type",
 "webLink",
 "onlineMeetingUrl",
 "isOnlineMeeting",
 "onlineMeetingProvider",
 "allowNewTimeProposals",
 "occurrenceId",
 "isDraft",
 "hideAttendees",
 "responseStatus",
 "body",
 "start",
 "end",
 "location",
 "locations",
 "recurrence",
 "attendees",
 "organizer",
 "onlineMeeting",
 "calendar@odata.associationLink",
 "calendar@odata.navigationLink"
 ]
 }
 }
 }
}

 

 

Output1.png

 

Output2_.jpg

 

[
  {
    "message""Invalid type. Expected String but got Null.",
    "lineNumber"0,
    "linePosition"0,
    "path""value[1].transactionId",
    "schemaId""#/properties/value/items/properties/transactionId",
    "errorType""type",
    "childErrors": []
  }
]
 
 
I can't see why the output of the http request ist Null... Or what to do if this error message is just misleading.


May anyone help me to fix this?
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Diana1,

     

    I see you are using the Body of the Send an HTTP request in the parse json Content field.

     

    Can you try and use the value field instead. That is nested within the body. Try an expression like below:

    body('Send_an_HTTP_request')['value']
  • Diana1 Profile Picture
    15 on at

    Hi @Expiscornovus ,

    excellent. It works. Thx.

     
  • Diana1 Profile Picture
    15 on at

     

    Additionally, I needed to make some further adjustments. I just like to give this info to the community, too.

    When I changed just 

     

    body('Send_an_HTTP_request')


    to

     

    body('Send_an_HTTP_request')['value']

     

    I got an error that an object is expected.

     

    [
      {
        "message": "Invalid type. Expected Object but got Array.",
        "lineNumber": 0,
        "linePosition": 0,
        "path": "",
        "schemaId": "#",
        "errorType": "type",
        "childErrors": []
      }
    ]


    So, I deleted the object part from the "Parse JSON" scheme


    Additionally, I needed to change in "apply to each" to 

    body('Parse_JSON')

     

    and secondly, to access the information 'start':

    item('Apply_to_each_3')?['start']​

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard