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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
edchuy
Advocate V
Advocate V

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.