Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I'm trying to GET data from POSTGRES Server using Direct Query and pasting SQL query in Advanced option but its giving error :'
Details: "We cannot fold on top of this native query. Please modify the native query or remove the 'EnableFolding' option."
I dont understand where
Solved! Go to Solution.
Hi @Surjeet ,
To disable native query folding, set the EnableFolding flag to false for Value.NativeQuery() in the advanced editor.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you remove the; semi-colon at the end of your query. It works perfectly.
Hello Denis,
Thank You for your reply. May I know where exactly I have to make changes. I have seen this solution befor but could not find where exactly location this change has to be done.
If during GEt DATA option in SQL statement I have to mention something?
Hi @Surjeet ,
To disable native query folding, set the EnableFolding flag to false for Value.NativeQuery() in the advanced editor.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @Surjeet ,
that's a common error for Postgres databases. The reason is that Power BI is adding a query folding by default.
Search for the error message and you will get a lot of similar topics.
However, since a while there is an option to turn the folding off:
Value.NativeQuery(target as any, query, null, [EnableFolding=false])
Check the documentation about that:
Power Query PostgreSQL connector | Microsoft Docs
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
51 | |
32 |
User | Count |
---|---|
115 | |
100 | |
74 | |
65 | |
40 |