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
Rohana
Frequent Visitor

DataFormat Error

Hi,

I am using API as data source. I am connecting to it using authorization/ without authorization. In the data, I have a text column which has data in json format. When I parse that text data to json, it gives me the error "DataFormat Error: We reached the end of the buffer"".

This happens when the text formatted columns are changed to date/ numer format and at the refresh time.

Solutions that already tried,

  1. I have installed the latest version of PowerBI.
  2. Clear the cache data and reinstall power bi. Also, I reduced the columns. But nothing worked.

I have attached screenshot of error and the steps I did for transformation.

Rohana_0-1637575237977.png

Rohana_1-1637575276885.png

 

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @Rohana ,

Noticed that you have used Pivot column feature in Power Query. If you delete this step, could you get the data normally? Someytimes not enough memory would cause this issue when using pivot columns.

 

In addition, you can check the file size:

  1. If the error occurs when you try to import data from multiple files simultaneously then it can be due to issues with the File Size.
  2. Check the json file size to make sure it is not related to your file size.

 

Or:

  1. producing compact output JSON
  2. explicitly processing only the first line of JSON

 

Refer similar threads:

  1. We reached end of buffer Error 
  2. Consume Flask-generated JSON in Excel PowerQuery 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors