I'm using a OLE DB Destination to populate a table with value from a webservice.
The package will be scheduled to run in the early AM for the prior day's activity. However, if this fails, the package can be executed manually.
My concern is if the operator chooses a date range that over-laps existing data, the whole package will fail (verified).
I would like it:
- INSERT the missing values (works as expected if no duplicates)
- ignore the duplicates; not cause the package to fail; raise an exception that can be captured by the windows application log (logged as a warning)
- collect the number of successfully-inserted records and number of duplicates
If it matters, I'm using Data access mode
= Table or view - fast load
and
Suggestions on how to achieve this are appreciated.