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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
HugoAvell23
Frequent Visitor

Datalflow failed to get data from API

I'm having a problem with Dataflow, which doesn't use the correct URL of an API. Dataflow misses some commas in the URL, so it can't import data. The URL I included is correct, otherwise it wouldn't work at first.

 

How can I solve this?

5 REPLIES 5
cpwebb
Microsoft Employee
Microsoft Employee

Thanks - what do you mean by "sometimes missed" - does this mean it doesn't happen all the time? Can you see a pattern?

Exactly. It doesn't happen all the time. I scheduled, 4 times each day to refresh, but some of refreshs doesn't work.

What is the error message you get when it fails?

cpwebb
Microsoft Employee
Microsoft Employee

Can you post an example of the correct URL and the M code you're using?

Json.Document(Web.Contents("https://api.xxxxxxx.com/public/xxxxxxxx&$select=ijjj&$expand=ddd($select=oooo,uuuu)"), 65001). The comma, betwen oooo and uuuu, sometimes is missed. I cannot share de exactly url, because it is from the company, but the url follows OData format.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.