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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.