Troubleshoot Power BI Desktop startup
This article describes and provides remedies for several circumstances where Power BI can't open or can't connect to data sources.
Issues with opening encrypted PBIX files
You can't open encrypted PBIX files by using a Power BI Desktop version that doesn't support information protection. If you need to continue using Power BI Desktop, update to a version that supports information protection.
Solution: Select this link to directly download the latest Power BI Desktop installation executable. The latest version of Power BI Desktop supports information protection and can decrypt and open any encrypted PBIX file.
On-premises data gateway issues
Users who installed and are running earlier versions of the Power BI on-premises data gateway can be blocked from opening Power BI Desktop. Previous versions of the on-premises data gateway placed administrative policy restrictions on named pipes on the local machine.
Solution: To resolve the issue associated with the on-premises data gateway and enable Power BI Desktop to open, use one of the following options:
Install the latest version of the Power BI on-premises data gateway.
The latest version of the Power BI on-premises data gateway doesn't place named pipe restrictions on the local machine, and allows Power BI Desktop to open properly. If you need to continue using the Power BI on-premises data gateway, the recommended resolution is to update it. Select this link to directly download the latest Power BI on-premises data gateway installation executable.
Uninstall or stop the Power BI on-premises data gateway service. You can uninstall the Power BI on-premises data gateway if you no longer need it. Or you can stop the Power BI on-premises data gateway service, which removes the policy restriction and allows Power BI Desktop to open.
Run Power BI Desktop with administrator privileges.
You can launch Power BI Desktop as an administrator, which also allows Power BI Desktop to successfully open. It's still recommended to install the latest version of the Power BI on-premises data gateway.
Power BI Desktop is a multiprocess architecture, and several of these processes communicate by using Windows named pipes. Other processes might interfere with those named pipes. The most common reason for such interference is security, including situations where antivirus software or firewalls block the pipes or redirect traffic to a specific port.
Opening Power BI Desktop with administrator privilege might resolve that issue. If you can't open Power BI Desktop with administrator privilege, ask your administrator which security rules are preventing named pipes from properly communicating. Then add Power BI Desktop and its subprocesses to the allowlists.
Issues connecting to SQL Server
When you attempt to connect to a SQL Server database, you might see a message similar to the following error:
An error happened while reading data from the provider:
'Could not load file or assembly 'System.EnterpriseServices, Version=18.104.22.168, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxx' or one of its dependencies. Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542)'
Solution: You can often resolve the issue if you open Power BI Desktop as an administrator before you make the SQL Server connection. Opening Power BI Desktop as an administrator and establishing the connection registers the required DLLs. After that, you no longer have to open Power BI Desktop as an administrator. However, if you're connecting to SQL server with alternate Windows credentials, you have to open Power BI Desktop as an administrator every time you connect.
"Unable to sign in" issues
You might see a message similar to the following error:
Unable to sign in. Sorry, we encountered an error while trying to sign you in. Details: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Solution: Disable the certification revocation check at Options and settings > Options > Security > Certification Revocation. For details, see Certificate revocation check, Power BI Desktop.
Issues starting the Microsoft Store version of Power BI Desktop
You might see a message similar to the following error:
Hmmmm... can't reach this page. ms-pbi.pbi.microsoft.com's server IP address could not be found. Application event log message - The description for Event ID 1 from source
The message might include further information, such as the following details:
Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
Solution: Reinstall WebView2 by using the following steps, which don't require elevated administrative permissions.
- Uninstall webview2.
- Reinstall webview2 by using this installation link.
Issues related to WebView2
Rarely, Power BI Desktop might fail to start and displays a gray window, or an error message that mentions WebView2.
Most cases are caused by a program on your machine, usually antivirus software. To verify whether a program is causing the issue, take the following steps:
Close Power BI Desktop.
Open Windows Settings > About > Advanced system settings and select Environment Variables.
Select New under User variables and add variable name WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS with the value --disable-features=RendererCodeIntegrity.
Start Power BI Desktop and verify that it starts successfully this time.
Delete the environment variable you set.
Solution: If the preceding steps fixed the issue, disable any software that might be interfering with Power BI Desktop startup, or provide an exemption for the WebView2 process.
If you still have issues, submit a support incident to Power BI support, and provide the following information:
WebView2 error reports. If you use the Microsoft Store version of Power BI Desktop, the error reports are at c:\Users\<username>\Microsoft\Power BI Desktop Store App\WebView2\EBWebView\Crashpad\reports or c:\Users\<username>\Microsoft\Power BI Desktop Store App\WebView2Elevated\EBWebView\Crashpad\reports.
If you use the downloaded .exe version of Power BI Desktop, the error reports are at c:\Users\<username>\AppData\Local\Microsoft\Power BI Desktop\WebView2\EBWebView\Crashpad\reports or c:\Users\<username>\AppData\Local\Microsoft\Power BI Desktop\WebView2Elevated\EBWebView\Crashpad\reports.
Your machine's Device ID, from Windows Settings > System > About.
Installer and update logs. Collect the following files from the following locations by copying and pasting the paths into File Explorer and then copying the files to another location. Some files have the same names, so be sure not to overwrite them but instead rename them when copying.
Path File %temp%\ msedge_installer.log %ProgramData%\Microsoft\EdgeUpdate\Log\ MicrosoftEdgeUpdate.log %windir%\Temp\ MicrosoftEdgeUpdate.log %allusersprofile%\Microsoft\EdgeUpdate\Log\ MicrosoftEdgeUpdate.log %systemroot%\Temp\ msedge_installer.log %localappdata%\Temp\ msedge_installer.log %localappdata%\Temp\ MicrosoftEdgeUpdate.log
Event Viewer logs. Start Event Viewer from the Start menu. In Event Viewer, go to Applications and Services log > Microsoft > Windows > CodeIntegrity > Operational. Right-click Operational in the left pane and choose Save All Events As. Store the file somewhere you can retrieve it.
The ClientState key from Registry Editor. Open Registry Editor by searching for regedit in Windows Search or the Start menu. In Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState. Right-click ClientState in the left pane, choose Export, and save the file.
Process traces. Follow these steps to collect process traces by using Process Monitor:
Download Process Monitor, extract the downloaded file, and run Procmon.exe.
Stop capturing by selecting the open-square Capture button.
Clear all traces by selecting the Clear garbage can button.
Start capturing by selecting the Capture button.
Launch Power BI Desktop and wait for the error to appear.
Stop the capture by selecting the Capture button.
Save the traces by choosing File > Save. In the Save to File dialog box, select All events and Native Process Monitor Format (PML), provide a path for the file, and then select OK.
Share the traces with the support team on request.
Extra diagnostic information. Use the Windows Assessment and Deployment Kit to collect extra information.
Download the Windows Assessment and Deployment Kit.
After downloading, start adksetup.exe, select Install the Windows Assessment and Development Kit to this computer, and then select Next:
Continue the wizard. On the Select the features you want to install page, select Windows Performance Toolkit, and then select Install:
Complete the installation, and then start Windows Performance Recorder.
Download the EdgeWebView2_General_EventsOnly.wprp file to your machine and unpack it.
In Windows Performance Recorder, choose More options.
Choose Add Profiles to add the EdgeWebView2_General_EventsOnly.wprp profile that you downloaded in the previous step.
Choose Start to start recording.
With the recording running, start Power BI Desktop and make sure the startup issue occurs.
When you're done, choose Save to stop the recording and save the results to your computer.
Provide all information you collected to the support team on request.
Data connection time-outs
When you try to create a new connection or connect to an existing Power BI dataset, Power BI Desktop might time out without establishing the connection. The connection spinner might continue to turn, but the connection never completes.
This situation can happen if your machine has a security product such as Digital Guardian or other security products installed. In some cases, the installed security product can interfere with outgoing network connection request calls, causing the connection attempt to time out or fail.
Solution: Try disabling the security product, and then attempt the connection again. If the connection succeeds after you disable the security product, you know that the security product was probably the cause of the connection failure.
Other launch issues
The Power BI documentation team strives to cover as many Power BI Desktop issues as possible. The team regularly looks at issues that might affect many customers, and includes them in articles.
If your issue isn't related to an on-premises data gateway, or if the resolutions in this article don't work, you can submit a support incident to Power BI support.
Whenever you experience issues with Power BI Desktop, it's helpful to turn on tracing and gather log files. Log files can help isolate and identify the issue. To turn on tracing in Power BI Desktop, choose File > Options and settings > Options, select Diagnostics, and then select Enable tracing. Power BI Desktop must be running to set this option, but it's helpful for any future issues associated with opening Power BI Desktop.
Submit and view feedback for