Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. READ MORE

Qlik Replicate: Transformation column INSERT_DATETIME is overwritten with Null value when record is updated in Snowflake Target

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
SwathiPulagam
Support
Support

Qlik Replicate: Transformation column INSERT_DATETIME is overwritten with Null value when record is updated in Snowflake Target

Last Update:

Jun 29, 2022 10:34:19 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jun 29, 2022 10:34:19 AM

Here is the general use case from many customers. 

Requirement:

Add 3 extra columns to the Snowflake target table like operation, inserted date, and updated date.

Operation: what was the operation performed on a specific record? It will be updated with INSERT or UPDATE or DELETE

Inserted date: The inserted date should be the current time when the record was inserted the first time and it must be unchanged after that.

Updated date: The Updated date must be updated when the record got an update.

Problem encountered: Operation and Updated date transformations are working fine but the Inserted date is updating with 'NULL' value when there is an update on record.

 

Resolution:

 

  1. Add emptyFieldAsNull internal parameter to the snowflake endpoint.

    snowflake_ip.png

  2. Create a Global transformation as below to create INSERT_DATETIME column.

    inserteddate.png

  3. Reload the task. Insert a record and update the same record to monitor the INSERT_DATETIME column value.

 

Environment

Qlik Replicate 
Snowflake Target

Labels (1)
Comments
igbins09
Contributor
Contributor

Hi, Pls what is the UPDATE transformation value that is already working?

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @igbins09 

Please submit your question directly to the Qlik Replicate forum, including details about your requirements and potential issues you are facing.

All the best,
Sonja 

Version history
Last update:
‎2022-06-29 10:34 AM
Updated by: