Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
akhaliq7
Post Prodigy
Post Prodigy

native query, use of parameter and connect to oracle db

When I try to connect to an oracle db using a parameter and I input a sql native query it returns an error 

 

we encountered an error while trying to connect. details

 

however when I leave the native query section blank then it returns a list of tables.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @akhaliq7 ,

According to the official documentation:

You can turn off the native database query security messages if the native database query is run in either Power BI Desktop or Excel. To turn off the security messages.

vyangliumsft_0-1667351092041.png

Import data from a database using native database query - Power Query | Microsoft Learn

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @akhaliq7 ,

Excuse me, Can you provide the error details and screenshots?

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi below are the screenshots:

When I untick the setting on the last screenshot then it allows me to run the sql query with a parameter but is this the only way as does this not create security issues

 

20221101_Ask_PowerBI_Community_2.PNG20221101_Ask_PowerBI_Community_3.PNG20221101_Ask_PowerBI_Community_4.PNG

Anonymous
Not applicable

Hi  @akhaliq7 ,

According to the official documentation:

You can turn off the native database query security messages if the native database query is run in either Power BI Desktop or Excel. To turn off the security messages.

vyangliumsft_0-1667351092041.png

Import data from a database using native database query - Power Query | Microsoft Learn

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

But it runs fine when I am not using a parameter is this a bug in the Power BI Software

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.