Forum Discussion

Arranafc19's avatar
Arranafc19
Helper IV
5 years ago

Issue with Datasource on scheduled refresh

Hi

 

Anybody getting any issues with connecting to datasources on a schedule refresh ?

 

Getting the below error on a scheduled refresh however when I push a refresh manually it is refreshing fine , the same when I download the dataset and refresh in desktop.

Underlying error code:

-2147467259

Underlying error message:

The credentials provided for the MySql source are invalid

DM_ErrorDetailNameCode_UnderlyingHResult:

-2147467259

Microsoft.Data.Mashup.CredentialError.DataSourceKind:

MySql

Microsoft.Data.Mashup.CredentialError.Reason:

AccessUnauthorized

Microsoft.Data.Mashup.MashupSecurityException.Reason:

AccessUnauthorized

 

It can't be an issue with the credentials as it refreshes manually , is their something in the scheduled refresh which may be causing this ?

2 Replies

  • v-luwang-msft's avatar
    v-luwang-msft
    Community Support

    Hi  Arranafc19 ,

    There are several points you may considerate:

     

    1.Ensure that you've added one or more data sources of your dataset to the gateway, as described in Add a data source.

     

    2.Verify that you have the correct username and password. Also, verify that those credentials can successfully connect to the data source. Make sure the account that's being used matches the authentication method.

     

    3.Your data source credential may expire, so try to update the credential and republish the report. In Power BI, go to refresh settings for the dataset. In Manage Data Sources, select Edit credentials to update the credentials for the data source.

     

    4.If your dataset not only contains cloud data source but also the on premise data source, then it needs to use the gateway and configure schedule refresh, see more: :On-premises data gateway , Configure scheduled refresh .

     

    Note that you also need to select Allow user's cloud data sources to refresh through this gateway cluster option Under Gateway Cluster Settings. See: Merge or append on-premises and cloud data sources.

     

    5.Please make sure the gateway is online, and try to upgrade the gateway to latest version. You might also need to upgrade the Power BI Desktop to the latest version 2.75.5649.961 . Download the pbix file from Power BI Service, then reopen in Power BI Desktop and republish to Power BI Service. See the similar case.

     

    6.You may check your data source, and check if it is the similar case .

     

    You may resolve the issue via the troubleshooting link :https://docs.microsoft.com/en-us/power-bi/refresh-troubleshooting-refresh-scenarios .

     

    Best Regards,

    Lucien

  • v-luwang-msft's avatar
    v-luwang-msft
    Community Support

    Hi Arranafc19 ,

    Has your problem been solved, if so, please consider Accept a correct reply as the solution to help others find it.
     
    Best Regards
    Lucien