Showing results for 
Search instead for 
Did you mean: 

Capture Power BI Service Query logs for Oracle DB source

We have an Oracle database connection to our Power BI report and published it to the power BI premium workspace. All the setup related to Gateway on the service is working perfectly fine. We have pulished report with the incremental refresh enabled along with RangeStart and RangeEne parameters.

We enabled additional logging in On-prem data gateway and enbaled EmitQueryTrace in gateway config file.
Still we are not able to see the actual query that is fired to the source server.
We do have access on the source and there also the query was not logged in v$sql view. 


Can anyone please help me on how I can view these queries either in gateway logs or in Oracle DB. 
We have already referred to a similar post here:
On-Prem Gateway logs

But we are not able to get the queries in logs after following the same steps. 
We instead get something like the following data:
"let RangeStart=DateTime.FromText("20190101T00:00:00"),
, __AS_Table__ = Table.FromValue(__AS_Query__)"


Hi @didosh,

Based on my research, there are three ways for you to query the logs for Power BI:

1.You could open the Performence file to see the logs for Power BI Desktop:

File -> Options and Settings -> Options -> Diagnostics -> Open crash dump/traces folder


2.You could open the Gateway logs to have a view.


3.You could use the fiddler to capture.


Also I suggest you could view the logs in your Oracle DB, if all above could not help you to solve your problem, you could create a support ticket here:



Daniel He


Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors