Forum Discussion

fxs7576_02's avatar
fxs7576_02
Helper I
1 year ago

Problem with Refreshing Dataset after Parameter Change with Service Principal

Hi PowerBI Community,

 

I have a few semantic models (sourced from AWS/GCS and not via. Gateway) that are not owned by Service Principal. My goal is to programmatically change some parameters that the semantic models are using and then apply the change, and these are the steps I took:

  1. Take over the dataset from the original user to Service Principal. The Service Principal must the dataset owner to update the parameter. (endpoint)
  2. Update the parameter of the dataset (endpoint)
  3. Refresh the dataset to apply the parameter change to the dataset. (endpoint)

 

But on step 3, I always receive the following message, and most of the dataset settings are greyed out.

"It looks like scheduled refresh failed because at least one data source is missing credentials. To start the refresh again, go to this dataset's settings page and enter credentials for all data sources."

 

 

 

Does anyone know another way to change and apply the new parameter using REST API, or solve the refresh issue on step 3 (maybe allowing Service Principal to refresh any semantic models regardless of the ownership in the workspace)?

 

Best regards

 

 

10 Replies