Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't schedule refresh in PowerBI Service

I have a PowerBI report with 2 tables sourced from separate web API calls to a similar service, let's call it MyService. The service returns json. The report refreshes perfectly within PBI Desktop. The report publishes to PowerBI.com where it runs without a hitch. On-demand refresh of the report's dataset in the PBI Service works perfectly too.

Refresh History

I can't schedule a refresh for this report because the option is greyed out. There is an error reported in the Data source credentials section where one of the two Web sources reports it cannot connect to MyService. The error is... "Your data source can't be refreshed because the credentials are invalid. Please update your credentials and try again."

Data source credentials

Attempting to edit the credentials for the failing connection results in a 500 Internal Server Error.

This error is unexpected because I understood the on-demand refreshes & scheduled refreshes would use the same data source(s). There is no where to specify different data sources/credentials for on-demand vs. scheduled so I just assume they share the same sets of credentials.

Is something weird going on or does my understanding of the innards of the PBI Service need realignment?

like image 606
cymorg Avatar asked Nov 06 '22 13:11

cymorg


1 Answers

Resolved via workaround...

PROBLEM

Dataset credentials cannot be updated without causing 500 error. Invalid credentials disables scheduled refresh options. When publishing a .pbix file via PBI Desktop to PBI Service it may fail to update the dataset connection in the service, leaving it in an invalid state. Refreshes cannot be scheduled while there are any invalid dataset connections.

WORKAROUND

Open the same .pbix file via PBI Service (i.e. PowerBI.com --> GetData), and the dataset connection will be updated. Credentials can now be set without error, thus allowing scheduled refreshes to be set.

like image 66
cymorg Avatar answered Nov 15 '22 08:11

cymorg