Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.