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 Platform Community / Forums / Power Automate / Invalid type. Expected...
Power Automate
Unanswered

Invalid type. Expected Object but got Array

(0) ShareShare
ReportReport
Posted on by 49

My flow is failing with an Action 'Parse_JSON' failed error; the schema and the JSON code validate. 

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "ItemInternalId": {
        "type": "string"
      },
      "Billing Account Number": {
        "type": "string"
      },
  "Bill Date": {
        "type": "string"
            },
  "Invoice Number": {
        "type": "string"
      },
      "Product Family": {
        "type": "string"
      },
      "Annotation": {
        "type": "string"
      },
      "Charge Level": {
        "type": "string"
      },
      "Charge Type Description": {
        "type": "string"
      },
      "Service Line (Customer Service)": {
        "type": "string"
      },
      "Product Line": {
        "type": "string"
      },
      "Location A City": {
        "type": "string"
      },
      "Location A State": {
        "type": "string"
      },
      "Location A Country": {
        "type": "string"
      },
      "Location Z City": {
        "type": "string"
      },
      "Location Z State": {
        "type": "string"
      },
      "Location Z Country": {
        "type": "string"
      },
      "Market/Tier Name": {
        "type": "string"
      },
      "Rate Center": {
        "type": "string"
      },
      "Service ID (Supporting ID)": {
        "type": "string"
      },
      "Charge Description": {
        "type": "string"
      },
      "Additional Charge Information": {
        "type": "string"
      },
      "Bill From Date": {
        "type": "string"
      },
      "Bill To Date": {
        "type": "string"
      },
      "Units": {
        "type": "string"
      },
      "Charge Amount": {
        "type": "string"
      },
      "Discount Amount": {
        "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"
      },
      "Account Description 1": {
        "type": "string"
      },
      "Account Description 2": {
        "type": "string"
      },
      "Bill Invoice Number": {
        "type": "string"
      },
      "Bill Invoice Row ID": {
        "type": "string"
      },
      "Billing Account Number-Account Description 1-Service ID": {
        "type": "string"
      },
      "Bus Org ID": {
        "type": "string"
      },
      "Carrier Circuit ID": {
        "type": "string"
      },
      "Carrier ID": {
        "type": "string"
      },
      "Child Account, Name": {
        "type": "string"
      },
      "Circuit ID": {
        "type": "string"
      },
      "Circuit Information": {
        "type": "string"
      },
      "Circuit Type": {
        "type": "string"
      },
      "Circuit_ID_A": {
        "type": "string"
      },
      "Circuit_ID_Z": {
        "type": "string"
      },
      "CLIN / BPID Code": {
        "type": "string"
      },
      "CLIN /BPID Description": {
        "type": "string"
      },
      "CLLIA": {
        "type": "string"
      },
      "CLLIZ": {
        "type": "string"
      },
      "Contract Number": {
        "type": "string"
      },
      "Customer Designated Codes": {
        "type": "string"
      },
      "Day of Month": {
        "type": "string"
      },
      "Day of Week": {
        "type": "string"
      },
      "Digital Access": {
        "type": "string"
      },
      "Disconnect Date": {
        "type": "string"
      },
      "Discount Description": {
        "type": "string"
      },
      "Display Account Number": {
        "type": "string"
      },
      "Effective Date": {
        "type": "string"
      },
      "End User": {
        "type": "string"
      },
      "Event Date": {
        "type": "string"
      },
      "Event Time": {
        "type": "string"
      },
      "Hour": {
        "type": "string"
      },
      "Install Date": {
        "type": "string"
      },
      "Internal Account Number": {
        "type": "string"
      },
      "Invoice Date": {
        "type": "string"
      },
      "Invoice Section Name": {
        "type": "string"
      },
      "IP_Address": {
        "type": "string"
      },
      "Jurisdiction": {
        "type": "string"
      },
      "Legacy* Circuit Id": {
        "type": "string"
      },
      "Legacy* Circuit Term": {
        "type": "string"
      },
      "Legacy* IP VPN PIID": {
        "type": "string"
      },
      "Legacy* Logical Interface PIID": {
        "type": "string"
      },
      "Legacy* Port Id": {
        "type": "string"
      },
      "Legacy* Service End User": {
        "type": "string"
      },
      "Legacy* Service ID": {
        "type": "string"
      },
      "Location A": {
        "type": "string"
      },
      "Location A Type": {
        "type": "string"
      },
      "Location Z": {
        "type": "string"
      },
      "Location Z Type": {
        "type": "string"
      },
      "Managed Service Type": {
        "type": "string"
      },
      "Member ID": {
        "type": "string"
      },
      "Month": {
        "type": "string"
      },
      "NPA_NXX": {
        "type": "string"
      },
      "PIID-Product": {
        "type": "string"
      },
      "PO Number": {
        "type": "string"
      },
      "POP Units": {
        "type": "string"
      },
      "Port Code": {
        "type": "string"
      },
      "Product Account Name": {
        "type": "string"
      },
      "Provisioning Circuit ID": {
        "type": "string"
      },
      "PSCID - Service": {
        "type": "string"
      },
      "Quarter": {
        "type": "string"
      },
      "Rate": {
        "type": "string"
      },
      "SCID-GLMPS (MM)": {
        "type": "string"
      },
      "SCID-Service": {
        "type": "string"
      },
      "Seat Price": {
        "type": "string"
      },
      "Seat Quantity": {
        "type": "string"
      },
      "Section Header 2": {
        "type": "string"
      },
      "Service Address A": {
        "type": "string"
      },
      "Service Address B": {
        "type": "string"
      },
      "Service Description 1": {
        "type": "string"
      },
      "Service Description 2": {
        "type": "string"
      },
      "Service Number": {
        "type": "string"
      },
      "Service Order": {
        "type": "string"
      },
      "Service Provider": {
        "type": "string"
      },
      "Service Request": {
        "type": "string"
      },
      "Service Type": {
        "type": "string"
      },
      "Site Name": {
        "type": "string"
      },
      "Site Number": {
        "type": "string"
      },
      "Speed": {
        "type": "string"
      },
      "Star": {
        "type": "string"
      },
      "Subsection Header": {
        "type": "string"
      },
      "Switch ID Location A": {
        "type": "string"
      },
      "Switch ID Location Z": {
        "type": "string"
      },
      "Switch Name Location A": {
        "type": "string"
      },
      "Switch Name Location Z": {
        "type": "string"
      },
      "Tariff/Period": {
        "type": "string"
      },
      "Tax Included (Y/N)": {
        "type": "string"
      },
      "Tax Label": {
        "type": "string"
      },
  "Total Charges": {
        "type": "string"
      },
      "TM": {
        "type": "string"
      },
      "TM, WEB, VDE, STAR, Annotation": {
        "type": "string"
      },
      "Unit Number": {
        "type": "string"
      },
      "Unit Rate": {
        "type": "string"
      },
      "V&H Miles": {
        "type": "string"
      },
      "VDE": {
        "type": "string"
      },
      "Web": {
        "type": "string"
      },
      "Week": {
        "type": "string"
      },
      "WTN": {
        "type": "string"
      },
      "Year": {
        "type": "string"
      },
      "@odata.etag": {
        "type": "string"
      }
    },
 
Categories:
  • cswanson22 Profile Picture
    49 on at

    Both the schema and JSON code validate, and no flow checker errors. 

     

    Remainder of the code:

     

      "required": [
          "@odata.etag",
          "ItemInternalId",
          "Billing Account Number",
      "Bill Date",
          "Invoice Number",
          "Billing Name",
          "Location ID",
          "Location Address",
          "Product Family",
          "Annotation",
          "Charge Level",
          "Charge Type Description",
          "Service Line (Customer Service)",
          "Product Line",
          "Location A City",
          "Location A State",
          "Location A Country",
          "Location Z City",
          "Location Z State",
          "Location Z Country",
          "Market/Tier Name",
          "Rate Center",
          "Service ID (Supporting ID)",
          "Charge Description",
          "Additional Charge Information",
          "Bill From Date",
          "Bill To Date",
          "Units",
          "Charge Amount",
          "Discount Amount",
          "Tax_x003a_ Federal",
          "Tax_x003a_ State",
          "Tax_x003a_ City",
          "Tax_x003a_ County",
          "Tax_x003a_ Other",
          "Tax_x003a_ VAT",
          "Account Description 1",
          "Account Description 2",
          "Bill Invoice Number",
          "Bill Invoice Row ID",
          "Billing Account Number-Account Description 1-Service ID",
          "Bus Org ID",
          "Carrier Circuit ID",
          "Carrier ID",
          "Child Account, Name",
          "Circuit ID",
          "Circuit Information",
          "Circuit Type",
          "Circuit_ID_A",
          "Circuit_ID_Z",
          "CLIN / BPID Code",
          "CLIN /BPID Description",
          "CLLIA",
          "CLLIZ",
          "Contract Number",
          "Customer Designated Codes",
          "Day of Month",
          "Day of Week",
          "Digital Access",
          "Disconnect Date",
          "Discount Description",
          "Display Account Number",
          "Effective Date",
          "End User",
          "Event Date",
          "Event Time",
          "Hour",
          "Install Date",
          "Internal Account Number",
          "Invoice Date",
          "Invoice Section Name",
          "IP_Address",
          "Jurisdiction",
          "Legacy* Circuit Id",
          "Legacy* Circuit Term",
          "Legacy* IP VPN PIID",
          "Legacy* Logical Interface PIID",
          "Legacy* Port Id",
          "Legacy* Service End User",
          "Legacy* Service ID",
          "Location A",
          "Location A Type",
          "Location Z",
          "Location Z Type",
          "Managed Service Type",
          "Member ID",
          "Month",
          "NPA_NXX",
          "PIID-Product",
          "PO Number",
          "POP Units",
          "Port Code",
          "Product Account Name",
          "Provisioning Circuit ID",
          "PSCID - Service",
          "Quarter",
          "Rate",
          "SCID-GLMPS (MM)",
          "SCID-Service",
          "Seat Price",
          "Seat Quantity",
          "Section Header 2",
          "Service Address A",
          "Service Address B",
          "Service Description 1",
          "Service Description 2",
          "Service Number",
          "Service Order",
          "Service Provider",
          "Service Request",
          "Service Type",
          "Site Name",
          "Site Number",
          "Speed",
          "Star",
          "Subsection Header",
          "Switch ID Location A",
          "Switch ID Location Z",
          "Switch Name Location A",
          "Switch Name Location Z",
          "Tariff/Period",
          "Tax Included (Y/N)",
          "Tax Label",
          "TM",
          "TM, WEB, VDE, STAR, Annotation",
      "Total Charges",
          "Unit Number",
          "Unit Rate",
          "V&H Miles",
          "VDE",
          "Web",
          "Week",
          "WTN",
          "Year"
        ]
      }
    }
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hello @cswanson22 

     

    Try to decorate your PareJSON input as json()

     

    CFernandes_0-1685991458615.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

     

  • cswanson22 Profile Picture
    49 on at

    I get the following message when I test the JSON Code and I'm missing the error.

     

     Found 1 error(s)
     
    Message: Invalid type. Expected Array but got Object. Schema path: #/type

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard