Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

parse json schema error

(1) ShareShare
ReportReport
Posted on by 13

Hello,

I trying to get info out off some xml files and I'm changing the files in json format, and then when I'm trying to parse it will error out. Any help is much appreciated. Thanks2024-07-01_11h35_17.png2024-07-01_11h27_24.png

With schema:

{
  "type""array",
  "items": {
    "type""object",
    "properties": {
      "ss:Table": {
        "type""object",
        "properties": {
          "ss:Row": {
            "type""array",
            "items": {
              "type""object",
              "properties": {
                "ss:Cell": {
                  "type""object",
                  "properties": {
                    "ss:Data": {
                      "type""object",
                      "properties": {
                        "#text": {
                          "type""string"
                        },
                        "@ss:Type": {
                          "type""string"
                        }
                      }
                    }
                  }
                },
                "@ss:AutoFitHeight": {
                  "type""string"
                }
              },
              "required": [
                "@ss:AutoFitHeight",
                "ss:Cell"
              ]
            }
          },
          "@ss:ExpandedColumnCount": {
            "type""string"
          },
          "@ss:ExpandedRowCount": {
            "type""string"
          },
          "@x:FullColumns": {
            "type""string"
          },
          "@x:FullRows": {
            "type""string"
          },
          "@ss:DefaultColumnWidth": {
            "type""string"
          },
          "@ss:DefaultRowHeight": {
            "type""string"
          }
        }
      },
      "WorksheetOptions": {
        "type""object",
        "properties": {
          "PageSetup": {
            "type""object",
            "properties": {
              "Header": {
                "type""object",
                "properties": {
                  "@Margin": {
                    "type""string"
                  }
                }
              },
              "Footer": {
                "type""object",
                "properties": {
                  "@Margin": {
                    "type""string"
                  }
                }
              },
              "PageMargins": {
                "type""object",
                "properties": {
                  "@Bottom": {
                    "type""string"
                  },
                  "@Left": {
                    "type""string"
                  },
                  "@Right": {
                    "type""string"
                  },
                  "@Top": {
                    "type""string"
                  }
                }
              }
            }
          },
          "Unsynced": {},
          "Selected": {},
          "Panes": {
            "type""object",
            "properties": {
              "Pane": {
                "type""object",
                "properties": {
                  "Number": {
                    "type""string"
                  },
                  "ActiveRow": {
                    "type""string"
                  },
                  "ActiveCol": {
                    "type""string"
                  }
                }
              }
            }
          },
          "ProtectObjects": {
            "type""string"
          },
          "ProtectScenarios": {
            "type""string"
          },
          "@xmlns": {
            "type""string"
          }
        }
      },
      "@ss:Name": {
        "type""string"
      }
    },
    "required": [
      "@ss:Name",
      "ss:Table",
      "WorksheetOptions"
    ]
  }
}
Categories:
  • Re: parse json schema error

    Hi , @BlackBeardrr 

    According to your screenshot , the error code means that you pass the Object but your Parser json action need an Array type data.

     

    If you pass the "outputs('Compose')" in the input of your Parse Json action, you need to use the whole output of the "Compose" action in your "Generate from sample".

     

    vyueyunmsft_0-1719881750353.png

    If this doesn't help you solve the problem, you can give me the output of your Compose action.

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard