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 Platform Community / Forums / Power Automate / Help with Action 'Pars...
Power Automate
Answered

Help with Action 'Parse_JSON' failed error

(0) ShareShare
ReportReport
Posted on by 49

My flow is failing at the Switch.

Flow1.png

FlowSection.png

The schema is below

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "ItemInternalId": {
        "type": "string"
      },
      "Billing Account Number": {
        "type": "string"
      },
      "Product Family": {
        "type": "string"
      },
      "Tax_x003a_ Federal": {
        "type": "string"
      },
      "Tax_x003a_ State": {
        "type": "string"
      },
      "Tax_x003a_ City": {
        "type": "string"
      },
      "Tax_x003a_ County": {
        "type": "string"
      },
      "Tax_x003a_ Other": {
        "type": "string"
      },
      "Tax_x003a_ VAT": {
        "type": "string"
      },
      "@odata.etag": {
        "type": "string"
      }
    },
    "required": [
      "@odata.etag",
      "ItemInternalId",
      "Billing Account Number",
      "Product Family",
      "Tax_x003a_ Federal",
      "Tax_x003a_ State",
      "Tax_x003a_ City",
      "Tax_x003a_ County",
      "Tax_x003a_ Other",
      "Tax_x003a_ VAT"
    ]
  }
}

 

And the error - which is listed 3x's.

[
{
"message": "Required properties are missing from object: Tax_x003a_ Federal, Tax_x003a_ State, Tax_x003a_ City, Tax_x003a_ County, Tax_x003a_ Other, Tax_x003a_ VAT.",
"lineNumber": 0,
"linePosition": 0,
"path": "[0]",
"value": [
"Tax_x003a_ Federal",
"Tax_x003a_ State",
"Tax_x003a_ City",
"Tax_x003a_ County",
"Tax_x003a_ Other",
"Tax_x003a_ VAT"
],
"schemaId": "#/items",
"errorType": "required",
"childErrors": []
},

 

Since the error shows the required field three times, do I also need to add required objects 3'xs? 

Categories:
I have the same question (0)
  • AWorley Profile Picture
    414 Super User 2024 Season 1 on at

    So the error " An action failed. No dependent actions succeeded" is a result of the Switch's argument execute but failing in the case block of the switch. 

     

    Are you able to provide a screenshot of the Lumen case block in your switch? Or did it go to "Default"? 

  • cswanson22 Profile Picture
    49 on at

    cswanson22_0-1685627153218.png

    variables("Vendor_Name")

  • cswanson22 Profile Picture
    49 on at

    cswanson22_0-1685627781793.png

     

    The Apply action

    cswanson22_1-1685627880525.png

     

  • AWorley Profile Picture
    414 Super User 2024 Season 1 on at

    Okay, the case argument for Vendor name should be Lumen in your example. 

     

    If you tunnel to the ran flow and find that case block in the switch there should be an errored out action that you need to look at. If there is no error in the case blocks then it is likely a string mismatch. I would validate the output that you get when you assign the vendor variable. 

  • cswanson22 Profile Picture
    49 on at

    cswanson22_0-1685628437211.png

     

    The output errors
    [
    {
    "message": "Required properties are missing from object: Tax_x003a_ Federal, Tax_x003a_ State, Tax_x003a_ City, Tax_x003a_ County, Tax_x003a_ Other, Tax_x003a_ VAT.",
    "lineNumber": 0,
    "linePosition": 0,
    "path": "[0]",
    "value": [
    "Tax_x003a_ Federal",
    "Tax_x003a_ State",
    "Tax_x003a_ City",
    "Tax_x003a_ County",
    "Tax_x003a_ Other",
    "Tax_x003a_ VAT"
    ],
    "schemaId": "#/items",
    "errorType": "required",
    "childErrors": []
    },

  • AWorley Profile Picture
    414 Super User 2024 Season 1 on at

    In your schema change the  "type": "object", to  "type": "Array".

     

     

  • cswanson22 Profile Picture
    49 on at

    Do I keep the second "type": "object"?

    {
        "type""array",
        "items": {
            "type""object",
            "properties": {
                "@@odata.etag": {
                    "type""string"
  • AWorley Profile Picture
    414 Super User 2024 Season 1 on at

    To test your JSON schema I reccommend you pop your JSON and Schema into Newtonsofts' validator. https://www.jsonschemavalidator.net/

     

    {
    "type": "object",
    "items": {
    "type": "array",
    "properties": {
    "ItemInternalId": {
    "type": "string"
    },
    "Billing Account Number": {
    "type": "string"
    },
    "Product Family": {
    "type": "string"
    },
    "Tax_x003a_ Federal": {
    "type": "string"
    },
    "Tax_x003a_ State": {
    "type": "string"
    },
    "Tax_x003a_ City": {
    "type": "string"
    },
    "Tax_x003a_ County": {
    "type": "string"
    },
    "Tax_x003a_ Other": {
    "type": "string"
    },
    "Tax_x003a_ VAT": {
    "type": "string"
    },
    "@odata.etag": {
    "type": "string"
    }
    },
    "required": [
    "@odata.etag",
    "ItemInternalId",
    "Billing Account Number",
    "Product Family",
    "Tax_x003a_ Federal",
    "Tax_x003a_ State",
    "Tax_x003a_ City",
    "Tax_x003a_ County",
    "Tax_x003a_ Other",
    "Tax_x003a_ VAT"
    ]
    }
    }

  • cswanson22 Profile Picture
    49 on at

    I get the following error now:

     

    [
      {
        "message": "Invalid type. Expected Object but got Array.",
        "lineNumber": 0,
        "linePosition": 0,
        "path": "",
        "schemaId": "#",
        "errorType": "type",
        "childErrors": []
      },
  • AWorley Profile Picture
    414 Super User 2024 Season 1 on at

    Okay. I used your original Schema and JSON input. 

     

    Just swap the two types and try again. 

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard