I have below requirement-
- Source: Oracle
- Target: SQL server
- Load type: UPSERT
- Primary key on target column: (id+deptid+ctid)
- Target table columns
- Name
- ID
- deptID
- CtID
- Place
- quant
- total_buy
I have to load the data into table and perform update else insert. I also need to perform below for error reporting:
- On Key violation, please skip that record and continue on loading the records. The skipped records save it in File (ct_err_.txt and save it on archive directory for 30 days. Data in error file is (id, deptid, ctid).
I have tried:
SQ -flow1 -> aggregation -> err file
-flow2 -> sorter-lookup on target -> router-update else insert.
But it i not working properly.
Can you please help me here with the logic.