Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
edchuy
Advocate III
Advocate III

Error when loading Json using Dataflow Gen2

I'm getting the following error when trying to do load a relative large (~1 GB) Json file using Dataflow Gen2. Please help!Json Dataflow Gen2 error.JPG

1 ACCEPTED SOLUTION
Ehren
Microsoft Employee
Microsoft Employee

You'd have to try to break it up into smaller json objects.

 

For example, if you control the source file format, you could try using the json lines format instead.

 

Or if you can't change the file format, you could pre-process it using some of our text functions that stream the input, break it up into the individual nested child objects, and process each of those using Json.Document.

 

A condensed/redacted sample of what the file looks like might help me provide more concrete suggestions.

View solution in original post

5 REPLIES 5
Ehren
Microsoft Employee
Microsoft Employee

Is the JSON file a single monolithic object? If so, that could explain the error.

Would that JSON be a one line one with about a billion characters in it? How can you fix that?

Ehren
Microsoft Employee
Microsoft Employee

You'd have to try to break it up into smaller json objects.

 

For example, if you control the source file format, you could try using the json lines format instead.

 

Or if you can't change the file format, you could pre-process it using some of our text functions that stream the input, break it up into the individual nested child objects, and process each of those using Json.Document.

 

A condensed/redacted sample of what the file looks like might help me provide more concrete suggestions.

Thanks for the suggestions! I guess they probably do need to fix it so that those types of workarounds aren't required.

 

Is there any external tools you could suggest I could use to do the processing you mentioned?

Ehren
Microsoft Employee
Microsoft Employee

I can suggest ways to process the current format in PQ, but I unfortunately can't tell you how to change the file format itself. That likely depends on how the file is currently being produced.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.