Posted By:
Stephen_McConnell
Posted On:
Wednesday, June 18, 2008 01:30 PM
It would seem from describing your code, you have the "try/catch" block outside your loop. Put a try/catch block inside your loop and when you catch the exception where the id already exists, ignore it and go to the next ID.
This takes a hit on performance, because try/catch blocks always do, but if you have a bunch of duplicate records, then you have a problem with your data.
Stephen McConnell