Your file was published, but disconnected
Power BIIn general form, with the parts that change in brackets:
Your file was published, but disconnected
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.
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 disconnectedWhat causes it
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.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.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:
Source = Excel.Workbook(File.Contents("C:\Users\[you]\Documents\Budget.xlsx"), null, true),Line 1 changes.
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
- [1]Microsoft forum: Your file was published, but disconnected. The original post. Read 2026-10-24.
- [2]Microsoft forum: Your file was published, but disconnected error can't be resolved. The poster's own reply marked as the solution. Read 2026-10-24.
- [3]Microsoft forum: File was published but Disconnected. The reply marked as the solution. Read 2026-10-24.
Did this page help?
Your answer helps us know what to improve and what you find useful.