Forum Discussion
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:
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
- v-piga-msftResident 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
- webportalImpactful IndividualSure,
It says
"OLE DB or ODBC error: [DataSource.Error] Can't get Web.Contentts from 'https://api...' (400): Bad request."- v-piga-msftResident Rockstar