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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ahsan_Nadeem
Frequent Visitor

'EnableFolding' isn't a valid option for this function. Valid options are: (none)

I am trying to configure Incremetnal Refresh, below error is occuring. Below is the expression which I am using to enable Query Fodling

Value.NativeQuery(Oracle.Database("abc") ,"select * from xyz" ,null,[EnableFolding = true] )

'EnableFolding' isn't a valid option for this function. Valid options are: (none).

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Ahsan_Nadeem ,

 

By default, native query folding is enabled. Operations that are capable of folding will be applied on top of your native query according to normal Import or Direct Query logic. Native Query folding isn't applicable with optional parameters present in Value.NativeQuery().

 

So please try to just remove [EnableFolding=true] from query.

 

 Here is an excellent blog post about using Value.NativeQuery() function and providing explicit value TRUE for the EnableFolding argument. And as he mentioned, this only works for SQL Server and Postgres at the time of writing

 

For more information, please kindly refer to:

Power Query PostgreSQL connector - Power Query | Microsoft Docs

Power Query Oracle database connector - Power Query | Microsoft Docs

 

 

Best Regards,
Eyelyn Qin
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
v-eqin-msft
Community Support
Community Support

Hi @Ahsan_Nadeem ,

 

By default, native query folding is enabled. Operations that are capable of folding will be applied on top of your native query according to normal Import or Direct Query logic. Native Query folding isn't applicable with optional parameters present in Value.NativeQuery().

 

So please try to just remove [EnableFolding=true] from query.

 

 Here is an excellent blog post about using Value.NativeQuery() function and providing explicit value TRUE for the EnableFolding argument. And as he mentioned, this only works for SQL Server and Postgres at the time of writing

 

For more information, please kindly refer to:

Power Query PostgreSQL connector - Power Query | Microsoft Docs

Power Query Oracle database connector - Power Query | Microsoft Docs

 

 

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

JirkaZ
Solution Specialist
Solution Specialist

It's working for SQL Server or Postgre only.

Is there any other way for incremental refresh using oracle as a Source

Oracle is supported as a data source with incremental refresh capabilities. You'll achieve the folding by not using a custom query and use standard connection and transformation steps. Just be careful not to use transformations that disable folding.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors