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
Answered

Parse JSON error

(0) ShareShare
ReportReport
Posted on by 189

 

I have some json that i get from a website using the http connector, i then parse the json but getting an error 

"Invalid type. Expected Integer but got Null."

I have check and the json below gets returned as valid and when i enter it as a sample for the parse JSON it does not throw the error, but when the flow runs it errors out, any idea what they below is throwing an error;

[
 {
 "kind":"special",
 "data":{
 "after":null,
 "dist":1,
 "geo_filter":"",
 "children":[
 {
 "kind":"t3",
 "data":{
 "saved":false,
 "is_video":false
 }
 }
 ],
 "now":null
 }
 },
 {
 "kind":"special",
 "data":{
 "after":null,
 "dist":null,
 "geo_filter":"",
 "children":[
 {
 "kind":"t1",
 "data":{
				 "collapsed":false,
 "body":"1-0",
 "ups":1
 }
 },
 {
 "kind":"t1",
 "data":{
 "collapsed":false,
 "body":"0-4",
 "ups":1
 }
 }
 ],
 "now":null
 }
 }
]

 

 

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @CiaranCampbell  ,

     

    This issue is caused when you have parsed the JSON initially when the datatype of a particular column was of type int , but later for the JSON received, it had a null value in place of the integer , and hence there is a schema mismatch and you are running into this error.

     

    Please change the schema of the integer type to any in the JSON schema , this will help in schema validation if even there is  a type mismatch.

     

    If this helps please accept it as solution.

     

    Thanks,

    Sanmesh

  • Verified answer
    SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @CiaranCampbell  ,

     

    This issue is caused when you have parsed the JSON initially when the datatype of a particular column was of type int , but later for the JSON received, had a null value in place of the integer , and null hence there is a schema mismatch and you are running into this error.

     

    Please change the schema of the integer type to any in the JSON schema , this will help in schema validation if even there is  a type mismatch.

     

    If this helps please accept it as solution.

     

    Thanks,

    Sanmesh

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard