Edit

Share via


Collect and submit diagnostic information

To provide better supportability and diagnostics, Power BI Desktop can collect and submit diagnostic information. The process of collecting and sending Power BI diagnostic information is simple and easy to use. You should only save diagnostic details when Microsoft Support asks you to.

How to save diagnostics details in Power BI Desktop

To save diagnostic information in Power BI Desktop:

  1. In Power BI Desktop, select File > Options and settings > Options.

  2. Under Global, select Diagnostics.

  3. Select Enable tracing.

  4. Select Collect diagnostic information.

    Screenshot of the Power BI Desktop options panel with enable tracing and collect diagnostic information highlighted.

  5. After you select Collect diagnostic information, the Save diagnostics details dialog appears:

    Screenshot of the Power BI Desktop save diagnostics details dialog.

Review the information provided in the dialog. To learn more about the information collected, see the Diagnostic information collected section in this article.

By default, Power BI Desktop saves the diagnostic details in your Documents folder. Select Browse to navigate to and select another location.

After you select a new location for Power BI Desktop to save the diagnostic information, select Save. The Save diagnostics details dialog opens. Select Open to view your diagnostic information in a compressed folder named PBIDesktopDiagnosticInfo.[timestamp].zip in the location you specified.

The diagnostics ZIP file might contain the following files and directories, based on what happened on your computer and your settings:

Screenshot of an Explorer window showing the path to the diagnostics ZIP file and the contents.

If Microsoft support requests it, send the ZIP file containing the diagnostic details.

The following video shows the diagnostics collection process:

Collecting mashup traces

The previous section doesn't include collection of mashup traces. To include mashup traces in your diagnostic collections, follow these steps:

  1. Go to %localappdata%\Microsoft\Power BI Desktop\Traces and clear the contents of that folder. If you need data from that folder for future reference, you can archive it before emptying the folder. If you're using the Microsoft Store version of Power BI Desktop, the path to traces is %userprofile%\Microsoft\Power BI Desktop Store App\Traces. To determine which folder is used for crash dumps, you can select the Open crash dump/traces folder link in the Diagnostics window shown in the following step.

  2. Make sure Enable tracing is enabled in Power BI Desktop. Go to File > Options and settings > Options, and then select Diagnostics from the sections in the left pane. Make sure Enable tracing is checked, as shown in the following image.

    Screenshot of the Power BI Desktop Diagnostics options with Enable tracing checkbox selected.

  3. Reproduce the problem or situation for which you want to collect diagnostics and mashup traces.

  4. Close Power BI Desktop to ensure all traces are flushed to the disk.

  5. Open %localappdata%\Microsoft\Power BI Desktop\Traces (or %userprofile%\Microsoft\Power BI Desktop Store App\Traces if you're using the Microsoft Store version of Power BI Desktop) and compress the contents into a ZIP or similar compressed file.

  6. Repeat this series of steps for any other scenarios you want to capture.

Diagnostic information collected

The diagnostic information collected is comprehensive and includes information most commonly required to solve problems. Power BI Desktop collects information about:

  • The performance of your data model.
  • The current Power BI Desktop session and your device.
  • The problem that occurred.
  • The structure of your data model.
  • Data refresh settings.

The following sections provide more details about the information collected.

Performance of your data model

The data model performance information helps you analyze the interaction between the Power BI engine and data sources. It's especially relevant in situations where you experience:

  • Problems with model performance.
  • DirectQuery problems.
  • Aggregation problems.

The following information is included:

  • The locale of your Power BI Desktop environment.
  • The Power BI Desktop version.
  • The path where the currently open .pbix file and data model are stored on your computer.
  • Whether your data model is in import, DirectQuery, or a mixed mode.
  • Any queries you created to generate visuals, including table, column, measure names, and data values if used as a filter.

Session and device information

The session and device information provides insight into the complexity of the queries and features used. It includes information about:

  • The operating system, including the version and time zone configuration.
  • Hardware, including the memory configuration.
  • The Power BI Desktop version.
  • The Power BI Desktop configuration, such as whether fast combine is enabled.
  • The path to where the trace logs are stored on your local computer.
  • The data model default mode (import, DirectQuery, or a mixed mode).
  • The data model metadata version.
  • The preview features enabled or disabled.
  • Any DirectQuery option settings.
  • The name of the cloud environment (tenant) where you're signed in (if any).
  • Power Query queries.

Session and device information is especially relevant if you're experiencing:

  • Problems with report and Power Query performance.
  • Problems where Power BI Desktop stops responding, stops unexpectedly, or doesn't load properly.

Details about the error that occurred

Error information includes the specific error and where it happened. It also includes a link to where the trace logs are stored on your local computer. The error information also includes:

  • The data model default mode (import, DirectQuery, or a mixed mode).
  • The data model metadata version.
  • Preview features enabled or disabled in Power BI Desktop.
  • The name of the cloud environment (tenant) you're signed into (if any).
  • The recent actions you performed, such as adding a field to a visual.
  • Power Query queries.

Error information is especially relevant if you're experiencing:

  • Problems with report and Power Query performance.
  • Problems where Power BI Desktop stops responding, stops unexpectedly, or doesn't load properly.

Structure of your data model

The information collected is a text description of everything you can see in the data model view in Power BI Desktop, including:

  • Table information, including the name and number of rows
  • Column information, including the name, data types, number of distinct values, and minimum and maximum values
  • Relationships, including to and from which table and column, direction, cardinality, and other settings
  • Calculated columns definitions
  • Measure definitions
  • Role definitions
  • Remote source structure and query

Data model structure information is especially relevant if you're experiencing:

  • Problems with model performance.
  • Problems with modeling in general

Data refresh settings

Data refresh information helps you analyze problems with incremental refresh, aggregations, and automatic page refresh. It describes the incremental refresh settings you made, including table names, and any aggregations you defined, including table and column names.

Data refresh information is especially relevant if you're experiencing:

  • Problems with incremental and automatic page refresh
  • Problems with aggregations, including performance problems

You can do all sorts of things with Power BI Desktop. For more information about its capabilities, see the following resources: