question

rdavidson51 avatar image
rdavidson51 asked

OLE DB Destination should error but waits (task box is yellow).

The problem is that the input data recently changed and duplicate records were in the data flow going to a table that had a primary key to prevent this. Instead of the task failing it just waits. I have a dataflow task which has a Script Transformation Editor task flowing to a derived column task flowing to a OLE DB Destination task. I tried a simple test reading from a table with duplicate records to a table with a primary key to stop it and it fails instead of waiting. The project is now in SQL 2008 and it was converted from SQL 2005. The test was written in SQL 2008. Other fatal errors are trapped and handled but in this case the task just sits there until it is stoppped. In the mean time I have worked on the input data to stop the duplicate records. Any help or ideas would be greatly appreciated bob
error-handling
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Fatherjack avatar image
Fatherjack answered
My first suspicion would be that the SSIS is waiting on the database engine. Can you see from SSMS what is going on - a long transaction, blocking, locking etc? If you dont already have it then get [sp_whoisactive][1] from Adam Machanic and use it to see what is occurring. [1]: http://sqlblog.com/files/folders/beta/entry42453.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.