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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Mal_Wallasey
Frequent Visitor

DataFormat.Error: We have reached the end of the buffer IDbCommand (BI Service only not Desktop)

This is the example Power Query which gets data from SysAid (IT Helpdesk System)

 

let

Source = Table.FromColumns({Lines.FromBinary(Web.Contents("Paste the URL from POWER BI Extract addon", [Headers=[clientid="Clientid from POWER BI Extract addon", accountid="Your SysAid account id", authorization="The Token from Power BI Extract addon"]]))}),

#"Parsed JSON" = Table.TransformColumns(Source,{},Json.Document),

#"JSON to List" = #"Parsed JSON"{0}[Column1],

#"List To SysAid Table List" = Table.FromRecords({#"JSON to List"}),

#"Expanded SysAid" = Table.ExpandListColumn(#"List To SysAid Table List", "SysAid"),

#"Extract Headers" = Record.FieldNames(#"Expanded SysAid"[SysAid]{0}),

#"Merge Data To Table" = Table.ExpandRecordColumn(#"Expanded SysAid", "SysAid", #"Extract Headers")

in

#"Merge Data To Table"

 

 and it works fine in Power BI Desktop (after certain values replaced of course).

 

Credentials are correctly set for it in service

Mal_Wallasey_1-1699973023376.png

 

However when I try to refresh the dataset for it in BI service I get the following:

Data source error: [ValidateMarkupTags][ccon]DataFormat.Error: [ccon]We reached the end of the buffer.[/ccon]. [/ccon]. The exception was raised by the IDbCommand interface. Table: SysAid.
Cluster URI: WABI-UK-SOUTH-redirect.analysis.windows.net
Activity ID: 50cad8e1-3a19-4322-a5ca-2341a13eafd5
Request ID: 761eaf09-26e9-cb85-0735-61250b644148
Time: 2023-11-14 14:37:30Z

I've even tried a test PBIX file with the query and all but 2 columns removed and still get the same error.

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @Mal_Wallasey 

 

I think this can happen sometimes when the API does not complete successfully.

 

One workaround is if you have got an On-Premise gateway you could create a data source in the Gateway and then connect to it that way and see if that works?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

2 REPLIES 2
GilbertQ
Super User
Super User

Hi @Mal_Wallasey 

 

I think this can happen sometimes when the API does not complete successfully.

 

One workaround is if you have got an On-Premise gateway you could create a data source in the Gateway and then connect to it that way and see if that works?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Thanks. While I don't personally have access to that I'm sure a colleague does.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Solution Authors
Top Kudoed Authors