Skip to main content

Insert / Update

Description:

Insert / Update writes rows to a database table by first looking up each row using specified key fields. If a matching record exists, it updates the row; if no match is found, it inserts a new row. Use this step when your workflow needs to maintain a target table that stays current with incoming data — for example, keeping a customer master table in sync with daily feed files or maintaining a product catalog from periodic imports.

Configurations:

Field NameDescription
Step NameName of the step. This name has to be unique in a single workflow.
ConnectionName of the database connection on which the target table resides.
Target SchemaThe name of the Schema for the table to write data to.
Target TableName of the target table.
Commit SizeThe number of rows after which to commit.
Don’t perform any updatesSelect this checkbox to perform only insert.
The keys to lookup the values:
Table fieldField in the table to lookup
ComparatorSelect from the list of comparators
Stream field1Table field is compared with Stream field1 using comparator
Stream field2Table field is compared with Stream field2 using comparator
Update Fields:
Table fieldThe field to be updated in the table
Stream fieldThe field in the stream used to update the table field.
UpdateSelect Y/N to confirm update