Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Initialization of data source failed - Excel Power BI connection

Hi all,   We just came across an issue where Excel data connections to a Power BI model were erroring with the following message:    What we have found is that the connection string to the ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    What we have found is that the connection string to the model appears to have a setting/variable which Microsoft have potentially removed.

     

    Below is the old connection string used across our various Excel files, which would output the above error. Removing the part in bold appears to fix the issue.

     

    Provider=MSOLAP.8;Integrated Security=ClaimsToken;Persist Security Info=True;Initial Catalog=<redacted>;Data Source=pbiazure://api.powerbi.com;MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error;Identity Provider=https://login.microsoftonline.com/common, https://analysis.windows.net/powerbi/api, <redacted>;Catalog Rebound=True;Update Isolation Level=2

     

    Thought I'd post in case anybody was coming across the same issue, as I'm sure these connection strings were automatically generated when we set the files up.