ErrorWhen you publish3 causes · The Report Doctor detects none yet.

Your file was published, but disconnected

Power BI

In general form, with the parts that change in brackets:

Your file was published, but disconnected

What it means

Power BI Desktop published the report and its semantic model, but the Power BI service could not connect the model to one or more of its data sources. The publish worked. The connection is what is missing, and you set it in the semantic model's settings in the service.

Usually
A republish cleared the gateway connectionA data source has no credentials in the service, or no gatewayAn Excel file is read from a folder on your computer
Fix
Open the semantic model's settings in the Power BI service.

Check your project opens the Report Doctor with this message filled in. The text travels in the URL fragment, which browsers never send to a server.

On this page

How the message appears

Copied exactly from each source. A name in square brackets replaced one from someone else's project.

Your file was published, but disconnected
Microsoft forum: Your file was published, but disconnected. Read 2026-10-24.[1]

What causes it

  1. A republish cleared the gateway connection

    The poster had published the report before with no error. They found that each republish cleared the connection chosen under Gateway and cloud connections, in its Maps to list. Choosing it again in the semantic model's settings fixed it for them.

    Source: Your file was published, but disconnected error can't be resolved[2].

    The Report Doctor can't detect this, because the connection is a setting of the semantic model in the Power BI service, not in the project files.
  2. A data source has no credentials in the service, or no gateway

    In this thread one source was in Snowflake and one was an Excel file in OneDrive. The answer marked as the solution says the service could not connect to them after the publish. It says to open the data source settings from the link in the message, enter the credentials for each source, and check the gateway is online if a source needs one.

    Source: File was published but Disconnected[3].

    The Report Doctor can't detect this, because credentials and gateways are set in the Power BI service, and the project files do not hold them.
  3. An Excel file is read from a folder on your computer

    The same answer says to read an Excel file from its web address in SharePoint or OneDrive, not from a folder on your computer. In a PBIP project the path is in the Power Query source, in the TMDL file of the table or expression.

    Source: File was published but Disconnected[3].

    The Report Doctor doesn't detect this yet.

The fix

Open the semantic model's settings in the Power BI service. Under Gateway and cloud connections, check each source maps to a connection. Under Data source credentials, sign in to each source. If a file is read from a folder on your computer, point the source at the file in OneDrive or SharePoint and publish again.

In tables/Budget.tmdl:

A folder on your computer
Source = Excel.Workbook(File.Contents("C:\Users\[you]\Documents\Budget.xlsx"), null, true),

Line 1 changes.

OneDrive or SharePoint
Source = Excel.Workbook(Web.Contents("https://[tenant]-my.sharepoint.com/personal/[you]/Documents/Budget.xlsx"), null, true),

The marked answer says to read the file from its web address, not from a local folder.

The Power BI Report Doctor reads a PBIP folder or .zip and lists the file and line to fix. Nothing is uploaded. For the other messages a project can stop on, listed by the file that causes each, see Power BI Desktop can't open a PBIP.

Worth knowing

  • A republish can clear the gateway connection again, so check the semantic model's settings after each publish.

Sources

Did this page help?

Your answer helps us know what to improve and what you find useful.

Your JSON and text are processed entirely in your browser and are never sent anywhere. To understand how the site is used we record each page view (the page, the referrer, an approximate location from your IP address, and whether you are a person, a bot or a script) and keep it for 90 days. Nothing is stored on your device unless you choose it. Accept to also store a device identifier here and record your browser and device characteristics, which is what lets a return visit be told from a new one. Decline and no page view is sent. A vote you click on an error page is still counted, and nothing about you is stored. We respect Do Not Track. See our privacy policy.