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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Navman
New Member

OLEDB or ODBC error:[Expression.Error] with True/False Data Values

OLEDB or ODBC error:[Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression.

I have started getting this error recently when I am connecting my powerbi with Snowflake table via direct query.  This is only happening with the fields which has TRUE/FALSE values.  Has anybody encountered similar issues?

 

1 ACCEPTED SOLUTION
TheDAXShepherd
Most Valuable Professional
Most Valuable Professional

It is the same issue as this one: Solved: Re: OLE DB or ODBC error with Boolean Column Filte... - Microsoft Fabric Community . You can use the May 2024 version of Power BI Desktop or hopefully the October 2024 version will be released soon and contain the fix.

View solution in original post

4 REPLIES 4
TheDAXShepherd
Most Valuable Professional
Most Valuable Professional

It is the same issue as this one: Solved: Re: OLE DB or ODBC error with Boolean Column Filte... - Microsoft Fabric Community . You can use the May 2024 version of Power BI Desktop or hopefully the October 2024 version will be released soon and contain the fix.

Navman
New Member

Hi @  rajendraongole1,

Thank you for the reply. There are no complex queries.  It is only connecting to the Snowflake Table via direct query.  It was working fine.  This is a 6 months refresh dashboard so only looking at it after April.  It was working absolutely fine in April. 

Regards

Nav

rajendraongole1
Super User
Super User

Hi @Navman -Review any transformations or filters you have applied to the fields with TRUE/FALSE values. Simplifying these expressions can sometimes resolve the folding error.Instead of using complex conditional logic, try creating a simpler version of your query that only retrieves the necessary fields without additional transformations.

 

Ensure that the data types in Snowflake align with what Power BI expects. The TRUE/FALSE values should ideally be represented as boolean types in Snowflake.If the fields are stored as strings or other types, consider converting them to boolean before connecting them to Power BI.

 

You can use the "View Native Query" option in Power Query to see if your query can be folded. If it cannot, you might need to adjust your transformations.

 

Check the above points still issue exists, please provide a more detailed example of your query or the specific transformations being applied may help in further diagnosing the problem.

 

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





As of the September 2024 release of Power BI Desktop - you cannot see the "View Native Query" if the source is Snowflake. It is grey for all steps. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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