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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
webportal
Impactful Individual
Impactful Individual

Error when loading data into PBI Desktop

Hello,

 

I've created a function from a query that fetches the weather forecast from darksy.net API.

Basically, I pass the latitude and longitude as a single parameter to the query and I get a weather forecat.

The parameter is entered as text in the form of "lat,long". Eg: Lisbon is ‎38.736946,-9.142685

 

Everything works fine, the data is loaded into Power Query. However, when hitting "Close and Apply" button I get the error:

 

Capturar.PNG

 

It seems the URL is adding E2%80%8E before the parameter.

 

I tried 2 differente APIs (darksy.net and http://api.openweathermap.org) and the problem happens in both.

 

Why is this? Can anyone help?

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @webportal,

 

I'm not familiar with your local language, could you please provide the error message in English so that we can help further investigate on it? 

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sure,
It says
"OLE DB or ODBC error: [DataSource.Error] Can't get Web.Contentts from 'https://api...' (400): Bad request."

Hi @webportal,

 

Please follow the guide in the similar thread to change the code to connect to your data source.

However, if the error still occurs, please use fiddler to monitor what happened during the connection process, and post fiddler trace log here.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors