Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Bulk Insert in Execute SQL Task

$
0
0

Hi,

As part of a POC, I am in process of using the Bulk Insert command inside a Execute SQL task to read a CSV file. The file has been intentionally tampered to generate error rows, which I handle through an OnError exception handling on the task.

I have been able to load the valid rows in the destination table and the error rows in the custom error table via an INSERT statement in an Execute SQL task in Event Handler's OnError.

BUT, the problem lies with the fact that the errors generated, though handled with Event Handler, cause the package load to fail.

I am looking for an approach to ensure that the package does not fail due to the error, because in the final implementation this logic will be a part of a repetitive process for 200+ sources implemented through may be a ForEach container.

Note: I have already tried setting the MaxErrorCount with no success.


Cheers!! Sumit Bhatnagar



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>