cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
imLennert
Frequent Visitor

Excel to JSON Error involving blanks/empty fields

I've been going at this for a good day or two and it's driving me crazy. 

 

Pretty much what I'm trying to do is upload an Excel file to Azure SQL. I did this with Power Automate but an Excel file containing 2000 rows takes 25minutes to push to Azure SQL and that's a little too much imo. 

So now I'm trying to go from Power Automate to BLOB Storage to Azure SQL (Last step using Azure DTF). 

 

Now the thing is my Excel file has blank values and I keep getting errors when trying to parse this to a number.

 

 

Ok, forum says I do not have permission to upload images so I'll elaborate in text: 

My "List rows present in a table" returns a JSON and the blank values are returned as "", though this field should be a number.

 

Can anyone help me?

Thanks

 

1 REPLY 1
Expiscornovus
Super User II
Super User II

Hi @imLennert,

 

Are you using a Parse Json action? If so, you could change the schema to allow null values for your number field.

"yourfield": {
               "type": [
                        "number",
                        "null"
                       ]
}

 

April Dunnam has created a great article about this solution approach: https://www.sharepointsiren.com/2018/10/flow-parse-json-null-error-fix/

 

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (60,108)