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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.