cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (54,588)