July 27, 2016 at 6:36 am
Hi Friends,
I am processing some excel files from a folder using foreach loop. My requirement is when any file is having a problem in the data..like having junk data....the file should be skipped and the other files should continue. Error file data should also be roll backed.
How to do this?
Any suggestions would be appreciated.
Thanks,
Charmer
July 27, 2016 at 7:32 am
The most important part. How do you define the file has junk data?
July 27, 2016 at 9:23 am
Okay...like if the file has varchar data in a column which is supposed to be integer. Throws error while loading.
Thanks,
Charmer
July 27, 2016 at 9:37 am
Create event handler for OnError for the data flow task set Propagate to false. This will prevent the error from propagating to the foreach loop container.
July 28, 2016 at 3:29 am
thank you.. It worked.
Thanks,
Charmer
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply