Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Update datasource API - works fine, but not always

Hi all, I have a problem with 'Datasets - Update Datasource In Group' API. I'm using Azure DevOps pipeline to trigger PowerShell scripts to automaticaly update datasources (DirectQuery) during release. In most cases (let's say 90%) API call for datasource update works fine, so that I know that the request is correct. Unfortunately, sometimes there is no error in API call and everything seems to be ok, but datasource is not updated in PowerBi service. Moreover, in such case I cannot re-call the request due to the following error:

"Dataset doesn't contain a datasource that matches selector #1"

I'm pretty sure that dataset contains a datasource that matches selector #1, it was working 20 seconds earlier. 

In this case I need to re-run my pipeline again (it's mean once again upload a report and update datasource) and everything works like a charm. I need to increase pipeline stability. Do you have any ideas what's going on and what can be a problem?

3 Replies