Forum Discussion

adeschenes12's avatar
adeschenes12
New Member
2 years ago
Solved

Semantic modele doesnt refresh

Hello everyone,

I hope you're all doing well. I'm writing to seek assistance with an issue I've encountered regarding the Semantic Model Refresh in Power BI.

 

Previously, the Semantic Model Refresh was working seamlessly without any errors. However, recently, it has stopped functioning correctly, and I'm consistently encountering an error message during the refresh process.

 

The error message indicates that there's an issue with accessing the data source, specifically mentioning a token expiration problem. Despite this error, I haven't made any significant changes to the setup or configuration of the data source.

 

What's perplexing is that the dataflow refresh works perfectly without any issues. It's only the Semantic Model Refresh that's causing trouble.

 

I've checked the authentication tokens and ensured they are up-to-date, but the issue persists.

 

If anyone has encountered a similar problem or has any insights into resolving this issue, I would greatly appreciate your assistance.

 

Thank you in advance for your help.

 

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi adeschenes12 ,

     

    Basic requirements for refreshing:

     

    Verify that the gateway version is up to date.

     

    Verify that the semantic model has the gateway selected. If the gateway is not selected, the data source may have changed or been lost.

     

    In the screenshot, you see the question "TokenExpired", which indicates that your token has expired.

     

    For a detailed guide to refreshing your access token, see:

    Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn

     

    The Microsoft Entra ID (Microsoft Entra ID) OAuth token, used by many different data sources, expires in approximately one hour.

     

    Sometimes that token expires before the data has finished loading, since the Power BI service waits for up to two hours when loading data.

     

    In that situation, the data loading process can fail with a credentials error.

     

    Ensure that the account and data source used for the Power BI service are the same, especially when connecting to the data source using OAuth.

     

    If the data source is large and the refresh process takes longer than the token is lifetime, consider optimizing the data.

     

    You can refer to the "Refresh fails when updating data from sources that use Microsoft Entra ID OAuth" section of this document for more information:

    Troubleshoot refresh scenarios - Power BI | Microsoft Learn

     

    To further assist you, please provide the following information:

     

    What type of data source are you connecting to?

     

    What is your connection mode, Import/Direct Query/Live Connect?

     

    Are there any incremental refresh policies set for the dataset?

     

    Are your On demand refresh and Scheduled refresh not working?

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi adeschenes12 ,

     

    Basic requirements for refreshing:

     

    Verify that the gateway version is up to date.

     

    Verify that the semantic model has the gateway selected. If the gateway is not selected, the data source may have changed or been lost.

     

    In the screenshot, you see the question "TokenExpired", which indicates that your token has expired.

     

    For a detailed guide to refreshing your access token, see:

    Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn

     

    The Microsoft Entra ID (Microsoft Entra ID) OAuth token, used by many different data sources, expires in approximately one hour.

     

    Sometimes that token expires before the data has finished loading, since the Power BI service waits for up to two hours when loading data.

     

    In that situation, the data loading process can fail with a credentials error.

     

    Ensure that the account and data source used for the Power BI service are the same, especially when connecting to the data source using OAuth.

     

    If the data source is large and the refresh process takes longer than the token is lifetime, consider optimizing the data.

     

    You can refer to the "Refresh fails when updating data from sources that use Microsoft Entra ID OAuth" section of this document for more information:

    Troubleshoot refresh scenarios - Power BI | Microsoft Learn

     

    To further assist you, please provide the following information:

     

    What type of data source are you connecting to?

     

    What is your connection mode, Import/Direct Query/Live Connect?

     

    Are there any incremental refresh policies set for the dataset?

     

    Are your On demand refresh and Scheduled refresh not working?

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    • Dick_Moffat's avatar
      Dick_Moffat
      New Member

      My Semantic Model will not refresh automatically when I moved my model to my client's PBI account.

      I get this error:

      "We cannot refresh this semantic model because this semantic model uses a default data connection without explicit connection credentials. ..... "\

       

      It refreshes fine when I refresh manually in the PBIX file but not once Published.  The data sources are tables in an Excel file.  I have the correct login info to access these files and the evidence is how they refresh in the PBIX file.

       

      You talk about the Gateway only here .. I do NOT and do not wish or need to use the Gateway and regardless this refreshes perfectly on my own PBI environment using my login there (my account).

      This is really pissing me off as it has taken me a VERY long time to get to this point and this one little issue has stopped me from delivering my solution to my client so I can acxtually get paid..

       

      Thanx

      **bleep** Moffat

      **bleep**@plogic.ca