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 September 15. Request your voucher.

Reply
need_a_name
Regular Visitor

Null values in date type column appearing as InvalidDate in Lakehouse

In the table view of the Lakehouse, date type columns with no dates or null is appearing as InvalidDate.

need_a_name_0-1757059289885.png

Same table in the SQL endpoint is displaying it properly 

need_a_name_2-1757059327579.png

 

1 ACCEPTED SOLUTION

Hi @MathieuSGA , Thank you for reaching out to the Microsoft Community Forum.

 

Your data is fine, the Invalid Date you see in the Lakehouse Table view is just a UI rendering quirk when the column is a date/timestamp and the value is actually NULL. That’s why in PySpark and the SQL endpoint the same rows correctly show NULL. Nothing is wrong in PostgreSQL or your parquet files. If you want the Lakehouse view to look clean, you can cast the column to string or replace nulls with blanks, but for reporting and analysis you should rely on the SQL endpoint or Power BI, which already handle NULL properly.

View solution in original post

5 REPLIES 5
MathieuSGA
Frequent Visitor

Similar observation here.
I might have applied changes to the schema but after doing a proper table drop and cleaning all tables from the lakehouse.
Anything to do with information that might still be available in the 'Files' directory ?

Was doing this before without noticing any similar behavior though...

Hi @MathieuSGA , Thank you for reaching out to the Microsoft Community Forum.

 

Your data is fine, the Invalid Date you see in the Lakehouse Table view is just a UI rendering quirk when the column is a date/timestamp and the value is actually NULL. That’s why in PySpark and the SQL endpoint the same rows correctly show NULL. Nothing is wrong in PostgreSQL or your parquet files. If you want the Lakehouse view to look clean, you can cast the column to string or replace nulls with blanks, but for reporting and analysis you should rely on the SQL endpoint or Power BI, which already handle NULL properly.

v-hashadapu
Community Support
Community Support

Hi @need_a_name , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

nielsvdc
Advocate IV
Advocate IV

You might want to check the data that is in the column using PySpark, because the values in this column are probably not formatted in a correct date format. It is typical behaviour for the different views to show something different. For SQL endpoint if the value is incorrect, it will show you a NULL value.

 

Unfortunately if was unable to replicate the "Invalid Date" error.

 

Hope this helps. If so, please give a Kudos 👍 and mark as Accepted Solution ✔️.

As suggested, I checked the data using PySpark.

Shown below is the result I could see for one of the rows where I have the issue

need_a_name_0-1757326764558.png

I checked the source system ( a postgresql table) for the issues with the data. Using the above ordernumber as the reference, I could confirm that the value in that column is null. 

need_a_name_2-1757327223195.png

But on the Table view in the Lakehouse, it is appearing as a Invalid Date for all the rows where it is a null 

need_a_name_3-1757327429504.png

 

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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