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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
y0m0
Frequent Visitor

There are null values present in the column which was specified as 'not null'.

Hi I am getting a weird error when trying to run some simple select SQL queries against a lakehouse table.

It shows unable to preview data

y0m0_0-1701166114058.png

 

and if I explicitly run a select * query

 

y0m0_1-1701166171026.png

 

I get this error:
There are null values present in the column which was specified as 'not null'.

 

But I know that's not true.

Here is the table definition from my Notebook.

y0m0_2-1701166299545.png

 

The column causing trouble is _processedAt

If i run the select * query from a Notebook it works as expected.

 

y0m0_3-1701166408464.png

and if I check for NULL values it doesn't return any rows as expected.

 

y0m0_4-1701166481499.png

 

I experimented with changing the table definition and removing the NOT NULL constraint from the _processedAt column and the error disappear. But this is not a proper solution because I want to keep the constraint.

I suspect it's an issue on how the timestamp data type is converted to datetime2 in the SQL Analytics endpoint as stated here:
https://learn.microsoft.com/en-us/fabric/data-warehouse/data-types#autogenerated-data-types-in-the-s...

8 REPLIES 8
Hello-Im-Aaron
Frequent Visitor

Hi @y0m0. I am running into the same issue with my timestamps. Works find in notebooks but fails in the warehouse and as a consequence dfg2's. Were you able to find a workaround?

@Hello-Im-Aaronmy workaround was to remove the NOT NULL constraint from the timestamp columns in the CREATE TABLE query.
It's not ideal, but I have control over the pipeline so it's not a big issue.

@y0m0 it was fixed for me in the last day or two. Hopefully for you as well

Thanks. I've had a ticket open since Friday. I'll let you know what happens

Anonymous
Not applicable

Hi @y0m0 
Thanks for using Fabric Community and reporting this. Apologies for the issue you have been facing.
At this time, we are reaching out to the internal team to get some help on this. We will update you once we hear back from them.
Appreciate your patience.
Thanks.

Anonymous
Not applicable

Hi @y0m0 

Apologies for the issue you have been facing. 

I would request you to please go ahead with Microsoft support for this. Please raise a support ticket on this link: https://support.fabric.microsoft.com/en-US/support/.

Also once you have opened the support ticket , please do share the supportcase# here. 

Thanks

Anonymous
Not applicable

Hi @y0m0 
We haven’t heard from you on the last response and was just checking back to see if you got a chance to create a support ticket. If yes please do share the ticket number here.
Otherwise, will respond back with the more details and we will try to help.
Thanks

Anonymous
Not applicable

Hi @y0m0 
We haven’t heard from you on the last response and was just checking back to see if you got a chance to create a support ticket. If yes please do share the ticket number here.
Otherwise, will respond back with the more details and we will try to help.
Thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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