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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
JSR
Helper II
Helper II

When getting data from PowerAutomate Flow: DataFormat.Error: We reached the end of the buffer

Hi,

I get DataFormat.Error: We reached the end of the buffer. 

When trying to do same as this example. https://janbakker.tech/use-graph-api-data-in-power-bi-using-logicapps 

(Create a Power Auromate flow to query Microsoft Grahp and get the response in Power BI)

I've tested it with diffrenet APi calls, and same throw same error.

 

Any help on this please?

 

The Power Automate flow runs ok and I can see the response.

 

let
url = "",
body = "{}",
Parsed_JSON = Json.Document(body),
BuildQueryString = Uri.BuildQueryString(Parsed_JSON),
Source = Json.Document(Web.Contents(url,[Headers = [#"Content-Type"="application/json"], Content = Text.ToBinary(BuildQueryString) ] ))
in
Source

 

 ff2.pngff1.png

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @JSR ,

 

Sorry for asking this but looking at the blog post you need to past your URL on the code and you present (here on the forum) a code without URL:

 

MFelix_1-1596553779566.png

 

The blog example

 

MFelix_2-1596553803226.png

I don't have any way to text this out but just making some questions that may help or not, do you have your logic app endpoint URL?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @JSR where you abble to solve the issue?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





MFelix
Super User
Super User

Hi @JSR ,

 

Sorry for asking this but looking at the blog post you need to past your URL on the code and you present (here on the forum) a code without URL:

 

MFelix_1-1596553779566.png

 

The blog example

 

MFelix_2-1596553803226.png

I don't have any way to text this out but just making some questions that may help or not, do you have your logic app endpoint URL?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.