szymon_dybczak
Esteemed Contributor III

Hi @KristiLogos ,

Could you check if you have null values in lastmodifieddate? If so, try to replace null values with some fallback value:

COALESCE(lastmodifieddate, '1900-01-01 00:00:00') as lastmodifieddate