Forum Discussion

fabulous5's avatar
fabulous5
Regular Visitor
1 year ago
Solved

Refresh Error - Direct Query to Lakehouse

I am trying to refresh a Production Dashboard copy from PBI desktop and it fails with following error. Nothing has changed much and I am an admin on the workspace, I was doing some migration from Dev...
  • Sandip_Palit's avatar
    1 year ago

    An error occurred while loading the model. Verify that the connection information is correct and that you have permissions to access the data source. Please follow these solution steps:

    1. Validate Data Source Credentials
    - Open the Power BI Desktop file (PBIX) causing the error.
    - Go to File > Options and settings > Data source settings.
    - Check the data source settings for lh_gl_bcs and ensure they match what is used in the Dev environment.
    - Click "Edit Permissions" and confirm that your credentials are correct. If needed, clear the permissions and re-enter them.

    2. Confirm Connection Information
    - In Power BI Desktop, go to "Transform Data" > "Data Source Settings".
    - Make sure the server name and database name are accurate and accessible from your current network.
    - If the connection uses a gateway in production, ensure the gateway is correctly mapped and active.

    3. Test Access to the Gold LH AS Model
    - Open SQL Server Management Studio (SSMS) or another compatible tool.
    - Try connecting to the Analysis Services database using the same credentials and server info as Power BI.
    - Ensure that you can query the model and that no permission issues are preventing access.

    4. Verify Workspace and Permissions
    - Even if you are an admin on the workspace, ensure that you also have necessary permissions on the dataset and data source.
    - Go to the Power BI Service, check the dataset settings under the production workspace, and confirm if your account has access.

    5. Compare Dev vs Prod Settings
    - Open the Dev version of the PBIX that works fine.
    - Compare the following with the Prod version:
    - Data source settings
    - Connection strings
    - Any parameters used in the data source definition

    6. Clear Cache and Rebuild Connection
    - In Power BI Desktop, go to File > Options and settings > Options > Global > Data Load.
    - Clear the cache to remove any corrupted temporary files.
    - Rebuild the connection to the data source by removing it and adding it again.

    7. Re-check Gateway Mapping 
    - If your dashboard uses a gateway in the production workspace, ensure that the gateway is online and the data source is correctly mapped.
    - Go to Power BI Service > Manage Gateways and verify the production data source settings.

    8. Update and Re-Publish
    - After verifying and fixing all of the above, save the PBIX file.
    - Re-publish it to the Production workspace and refresh the dataset.

     

    If this solution resolves your issue, please like and accept the solution.