My SSIS package reads a small .txt file and loads into a table. No problems so far.
However, sometimes this package fails due to PK issues, which is understandable (duplicates are within the source table).
I'd like to allow the good data to continue to flow to the table, and to redirect the duplicates a different table for further investigation.
My thoughts were to simply route the red/flat file source error output to a new OLEDB Destination/table, and change the source Error Output to Error = Redirect Row.
However, I continue to get the error: Violation of PRIMARY KEY constraint.
INSERT ... WHERE NOT EXISTS
/MERGE
(SSIS isn't always the most convenient tool for the job). – Jeroen Mostert