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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
zamponi10
Regular Visitor

Parsing JSON using Json.Document in Power Query

Hi, 

 

I am trying to transform some data using the function Json.Document in Power Query. 

I am getting an error when parsing the content of row 51.

Here is the image of the error.

 

zamponi10_0-1696263209750.png

 

I investigated the JSON of row 51 and found no problem with the JSON. 

Hence I deleted the first 45 rows of the table (row 51 bacome row 6) and try to parse the content again. 

Row 6 was now parsed correctly. 

 

Are there limits in the Json.Document function that make this behavior understandable? Is there a way to avoid the first error?

 

 

1 ACCEPTED SOLUTION

I solved the problem reducing the lenght of the json that I was importing in Power Query. 

It looks like that the json get automaticcaly truncated by the funtion josn.document, if is too long. 

I did not understand the rule of truncation. 

 

View solution in original post

2 REPLIES 2
zamponi10
Regular Visitor

I would like to add some details:

- I am using an ODBC connector to pull data from Mongo DB

- the JSON I am trying to parse is automatically generated from a view of Mongo DB

- The view contains 68 elements and I get an error only on the element 51

- I did not find any error on the JSON  of the position 51

- I deleted the first "x" rows of the dataset 

- the dataset is now 68-x rows

- The data is now in position 51-x and it is parsed correctly

 

Can you help me explaining this behavior?

I solved the problem reducing the lenght of the json that I was importing in Power Query. 

It looks like that the json get automaticcaly truncated by the funtion josn.document, if is too long. 

I did not understand the rule of truncation. 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.