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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
KGuthrie-NF
Regular Visitor

Error message with no details

I am trying to get data from a web call.  The API generates a data set that I need to convert to a CSV in a step.  However, when I try to work with the data every field gets an "An unexpected error occurred" message on every field.

KGuthrieNF_0-1699385844350.png

I have searched and could not find anything on why this might be happening.

1 ACCEPTED SOLUTION
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @KGuthrie-NF - it is difficult to trouble-shoot across this forum.  Here is what I would try to understand the issue.

 

  • Try to download the file outside of Power Query, connect to this to make sure it is not corrupt.
  • if it works, I would try adding a Binary.Buffer - PowerQuery M | Microsoft Learn step between the Web.Contents and Csv.Documents.  Note that Power Query will something Nested these functions:  Csv.Document( Web.Contents() ).  However, you can separate these steps in the advanced editor.  The reason for using Binary.Buffer is to make Power Query download the whole file before starting the transformation.
  • If the error still continues, I would try to read the binary file as text using Text.FromBinary - PowerQuery M | Microsoft Learn.  Hopefully, the file opens in comma delimited format.  You find that the text encoding make the file readable.  TextEncoding.Type - PowerQuery M | Microsoft Learn

View solution in original post

2 REPLIES 2
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @KGuthrie-NF - it is difficult to trouble-shoot across this forum.  Here is what I would try to understand the issue.

 

  • Try to download the file outside of Power Query, connect to this to make sure it is not corrupt.
  • if it works, I would try adding a Binary.Buffer - PowerQuery M | Microsoft Learn step between the Web.Contents and Csv.Documents.  Note that Power Query will something Nested these functions:  Csv.Document( Web.Contents() ).  However, you can separate these steps in the advanced editor.  The reason for using Binary.Buffer is to make Power Query download the whole file before starting the transformation.
  • If the error still continues, I would try to read the binary file as text using Text.FromBinary - PowerQuery M | Microsoft Learn.  Hopefully, the file opens in comma delimited format.  You find that the text encoding make the file readable.  TextEncoding.Type - PowerQuery M | Microsoft Learn

It worked perfectly.  The new Source statement is:

Source = Csv.Document(Binary.Buffer(Web.Contents("https://.......7")),[Delimiter=","])

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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