Why don't you just load those records into a temp-table, do your updates on the temp-table.
If you want to "undo" the whole thing, then do whatever you want (message, errors list whatever) and perform no updates.
If you want to "undo" only the records in error, either delete them from the...