Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

IN-DB Write to DB - Delete & Append not working

$
0
0

I'm using the IN-DB write to database component, and setting the write option to delete and append.  My understanding is that this does a delete all from the table (i.e. a truncate) then an insert of all the data in the stream.  However, the delete does not seem to delete all records and I experience a PK constraint violation on a subsequent insert.  I have checked the data and we are defo not inserting dupes, so I can only conclude that the delete and append is not deleting all.  When I switch to overwrite, i.e. drop then create, the workflow works without issue.  Is my understanding of delete & append wrong?  I.e. does it check on key for incoming record and then replace the record with incoming; a delete record and append, not a complete truncate?

 

Any help will be gratefully received!

 

Thanks, nick 


Viewing all articles
Browse latest Browse all 4999

Trending Articles