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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
huonghill
Microsoft Employee
Microsoft Employee

Error - OLE DB or ODBC error: [Expression.Error] We cannot convert the value null to type Logical

Hi, 

I'm having the error mentioned in the post title. I do see null values in some columns (both number and text). However, when I replace null values with either 0 or "blank" or "none", PBI doesn't let me apply the change. The same error pops up

 

OLE DB or ODBC error: [Expression.Error] We cannot convert the value null to type Logical

 

Please let me know how I fix this. Your help is much appreicated.

1 ACCEPTED SOLUTION

Hi @v-yingjl , 

Thank you so much for your help! After a long search, I figured out that one column has a null values that causing a blank row in my table. It was a quick fix that I excluded null values in the transform data view. Your help is much appreciated

View solution in original post

5 REPLIES 5
v-yingjl
Community Support
Community Support

Hi @huonghill ,

Which data source you are using? I have tested it in my environment and it seems work fine when I replace values. Could you please share the power query code in advanced editor for further discussion?

 

Best Regards,

Yingjie Li

Hi @v-yingjl , the data source is SharePoint 😑

Hi @huonghill ,

Try like this in power query:

= Table.ReplaceValue(
    #"Changed Type","null","blank",Replacer.ReplaceValue,{"Column1","text"}
)

replace values.png

 

Remember that "null" and null are different in power query.

 

Best Regards,
Yingjie Li

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

Hi @v-yingjl , 

Thank you so much for your help! After a long search, I figured out that one column has a null values that causing a blank row in my table. It was a quick fix that I excluded null values in the transform data view. Your help is much appreciated

amitchandak
Super User
Super User

@huonghill , refer if this can help

https://stackoverflow.com/questions/35904951/power-query-m-we-cannot-convert-the-value-null-to-type-...

https://stackoverflow.com/questions/56123282/ole-db-or-odbc-error-we-cannot-convert-the-value-null-t...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors