Forum Discussion
View SQL query in direct query mode
Hi OneWithQuestion,
Power BI Desktop creates a file "FlightRecorderCurrent.trc." on:
"\<User>\AppData\Local\Microsoft\Power BI Desktop\AnalysisServicesWorkspaces"
Or you can also enable it on the file -> options -> diagnostics
References: https://docs.microsoft.com/en-us/power-bi/desktop-directquery-about
Thanks,
Ricardo
So it appears that the trace files generated cannot be opened which is really odd.
When I go to open it with Profiler I get this error: Can't open PowerBI trace file: Needs TraceDefinition 15.0.0.xml
- ricardocamargos8 years agoContinued Contributor
- OneWithQuestion8 years agoPost Prodigy2017, the one with SSMS 17.4
- Anonymous8 years agoNot applicable
OneWithQuestion,
Go to C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Profiler\TraceDefinitions, you can find that the version of Analysis Services TraceDefinition xml file is 14.0.0, and this is the highest version of the file in SQL Server.
However, the trace file generated by Power BI Desktop requires Microsoft Analysis Services TraceDefinition 15.0.0.xml, thus you get the above error.
There are two workarounds for you solve this issue.
1. Use December update of Power BI Desktop to connect to your data source, the trace file generated by the version can be opened in your SQL profiler.
2. Use native query option in Power BI Desktop to check undelying sql query.
Regards,
Lydia
- Anonymous8 years agoNot applicable
OneWithQuestion,
Please update your SSMS from 17.4 to 17.5, then start the SQL Profiler trace in Admin mode, this way, you will be able to open the trace file.
Regards,
Lydia