Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Solved! Go to Solution.
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.
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.
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
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.
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 47 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |