Forum Discussion
Power BI Web return Credential Invalid Error on Anonymous Access of API URL.
Hi mbarragan,
Queries where data access happens inside a function and where the data source is dependent on parameters to the function can't currently be refreshed. You can vote the idea here. And here is a similar thread for your reference.:smileyhappy:
Regards
Hi v-ljerr-msft,
I think I've not explained enough. What I wanted to mean was that I have five sources of a only one API, but the final URL of each source is unique, e.g.:
Source1 : www.123ExampleApi.com/poweBI?url=source1
Source2 : www.123ExampleApi.com/poweBI?url=source2
Source3 : www.123ExampleApi.com/poweBI?url=source3
Source4 : www.123ExampleApi.com/poweBI?url=source4
Source5 : www.123ExampleApi.com/poweBI?url=source5
This is what I wanted to mean with "Five of theses sources are an API that returns a different .CSVs depending on specifics parameters in the URL.". My queries don't access to data inside a function, I've only specified new data sources in the query editor.
Thanks and best regards,
Marcos.
- v-ljerr-msft9 years agoMicrosoft Employee
Hi mbarragan,
This is what I wanted to mean with "Five of theses sources are an API that returns a different .CSVs depending on specifics parameters in the URL.". My queries don't access to data inside a function, I've only specified new data sources in the query editor.
Indeed, I knew exactly what you are trying to do.:smileyhappy: As you are requesting your server with parameters to get data, there should be a function in your server to accept the parameter, then returns different .CSVs depending on the specific parameter, right? Because Power BI is doing static analysis of the query to discover the data source, and the static analysis can't yet handle this scenario currently.
Regards
- Krizz839 years agoRegular Visitor
I have the same problem with an OData source.
First odata source loads fine. Next 3 cannot be updated and gives the error "Failed to update data source credentials.".
Any ideas?
- v-ljerr-msft9 years agoMicrosoft Employee
Hi Krizz83,
It may be the same issue as I described above. Please vote the idea here.:smileyhappy:
Regards
- mbarragan9 years agoFrequent Visitor
Hi v-ljerr-msft,
The different sources from Google Storage since the schedule refresh work fine, we've tried to liken the API URLs to the Google Storage URLs:
GoogleStorage (works fine):
https://storage.googleapis.com/bucket1/tmp/0009518e.csv
https://storage.googleapis.com/bucket1/tmp/8197581r.csvAPI - without url parameters (Doesn't work):
https://us-central1-project1.cloudfunctions.net/0009518e
https://us-central1-project1.cloudfunctions.net/8197581rCould you explain why the schedule refresh works fine for the first one way, but for the second one way the credentials error is appeared? Is it due to the second one returns a url redirection to a .csv and the first one it's just a .csv?
Thanks and best regards,
Marcos.