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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors