In terms of data flow tasks, when say we load text files into databases.
Is it possible to have it in a way so that if a certain record (line in the text file) fails to load due to watever reason, it gets written to another table, but the rest of the records still get loaded?
I try to do so and end up with the whole data flow task failing and it stalls at the record that had the error and doesn't seem to continue forward.
I just used the red arrow (on failure) and put that to another SQL destination object. But yeah that didnt work.
If someone has a better way of doing so, would be awesome if you can share that.
Cheers
You have to set the 'Access mode' property of 'OleDB DEstination' OpenRowset.It should not be fastload.Then set ErrorOuput as Redirect Row. Now you can get your erroneous rows redirected.
This should do.
|||yup...i didnt know about the accessmode property. that did it. thanks|||Dear all,
I face the same problem but I didn't find the 'Access mode' property of 'OleDB DEstination' that contain OpenRowset its only contain Tabel and View with Fastload. Where I can find that property ?
And what if the error occured in Flat File Source ? can we still using the same solution ? Thanks in advance.
Best Regards,
Hery|||Dear all,
Please help me on this.
Thanks in advance.