Skip to main content
Seasoned ⭐️⭐️⭐️
Apr 4, 2023 5:44 AM UTC
Solved

I am trying to use is_new function & getting this error

Incremental load version should be LongType or TimestampType. | code: 400 | X-Request-ID: XXXXXX
 

Gaetan  Helness
MVP ⭐️⭐️⭐️⭐️⭐️
Apr 4, 2023 5:53 AM UTC

Can you send your code snippet containing the is_new query?

For reference, it should be a timestamp, we usually use lastUpdatedTime

https://docs.cognite.com/cdf/integration/guides/transformation/write_sql_queries/#is_new

3 replies

Gaetan  Helness
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Apr 4, 2023 5:53 AM UTC

Can you send your code snippet containing the is_new query?

For reference, it should be a timestamp, we usually use lastUpdatedTime

https://docs.cognite.com/cdf/integration/guides/transformation/write_sql_queries/#is_new

Seasoned ⭐️⭐️⭐️
Apr 4, 2023 6:05 AM UTC

Yes ….you are right!!

It worked with lastUpdatedTime 
I was using one of the column name here LAST_UPDT_DATE instead of  lastUpdatedTime 

Thank you for the instant reply!!

Gaetan  Helness
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Apr 4, 2023 6:46 AM UTC

Great to hear. Thanks for the feedback