Forum Discussion

bpsearle's avatar
bpsearle
Icon for Resolver II rankResolver II
9 years ago
Solved

An error occured while attempting to publish. The underlying connection was closed. A connection...

I have created a pbix in the desktop. It has data sources from 2 spreadsheets and an on-premises SQL database. When I click publish I receive the following error message: An error occurred while at...
  • v-qiuyu-msft's avatar
    9 years ago

    Hi bpsearle,

     

    According to your description, when you publish the report from desktop to Power BI Service, the error throws out. While you are able to use Get Data-> Files to upload .PBIX file in service, right?

     

    In your scenario, please try to update the Power BI Desktop to the latest one, then publish it again. Also enable the trace log to see detail error messages.

     

     

     

    Besides, as you connect to Excel file and SQL Server database in the report, to set the dataset to use data gateway, you need to configure two data sources: File and SQL Server, which use the same connection information as in Power BI Desktop.

     

     

     

    Best Regards,
    Qiuyun Yu