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
Anonymous
Not applicable

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

Hi,

 

I'm receiving this error with my query, and I can't understand why.  I've checked some other topics for this issue, but haven't found a solution.  In order to isolate the problem, I went from the end of my query and deleted every step until I found where the error was occuring, and it seems to be happening when I merge two queries together.  This is where the problem happens:

 

#"Merged Queries2" = Table.NestedJoin(#"Added Conditional Column3", {"lookup for case name"}, #"raw data", {"Contract ID"}, "raw data", JoinKind.LeftOuter),
    #"Expanded raw data" = Table.ExpandTableColumn(#"Merged Queries2", "raw data", {"CBT", "CT", "Case"}, {"raw data.CBT", "raw data.CT", "raw data.Case"})

 

If I delete the Table.ExpandTableColumn step, the error goes away.  I've checked the columns in my raw data file, and there are no nulls there.  I can't figure out what null it's trying to convert.  Any help?

 

thanks,

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

This happens if you have mixed data types in your column to expand, please check the #"Changed Type" step in previous.

Best Regards,

Teige

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.