SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Transaction + AcquireConnection method call failed


Transaction + AcquireConnection method call failed

Author
Message
rijosh2josh
rijosh2josh
SSC Veteran
SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)

Group: General Forum Members
Points: 247 Visits: 183
Hi,
I have a SSIS Package which is Having a Dataflow task in a Container,which Transaction Option is "Required" and the Dataflow task Transaction Option is "Supported" for both Isolation Level "ReadUncommitted" . SSIS exec successfully, if I have both Source & Traget DB in the local system and its rolling backs all the transaction in the case of error.
But if i changed my Target to different DB (in Prod i have to refer difference Server/DBs) SSIS is failing with following error(s).

[OLE DB Command INSERT INTO Generic_Answers 1 [4255]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "TargetDb1" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.


[DTS.Pipeline] Error: component "OLE DB Command INSERT INTO Generic_Answers 1" (4255) failed the pre-execute phase and returned error code 0xC020801C.
-------
Earlier I was using the SQL Transaction in my SSIS (using Exec SQL Task) but this also failed, because the Multiple Insert Stmts across various Tables is causing Exclusive lock on table(s).

past 2,3 weeks I was googling, and i did all MSDTC and all related configs. But still i got stuck in the begin stage itself. Please help me on this issue, if any one got any kind of solution....

Thanks
Rijosh
vishal.gamji
vishal.gamji
SSCertifiable
SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)

Group: General Forum Members
Points: 5564 Visits: 532
Try removing exclusive locking from tables in your Data flow tasks.
rijosh2josh
rijosh2josh
SSC Veteran
SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)

Group: General Forum Members
Points: 247 Visits: 183
Hi,
thanks for the reply.
Could you pls make it clear more...is that a Dataflow property wt you are saying? ,cos i couldnt see any option in it & if you are saying abt the Lock what we are specifying in the OLEDB source, then that is not selected. and here i am using Nolock keyword for all my select stmts. I am using OLEDB command to do Update, Insert & DEL. and its getting locked in a particular table Insert.
rijosh2josh
rijosh2josh
SSC Veteran
SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)

Group: General Forum Members
Points: 247 Visits: 183
I got a solution to make my SSIS work.
Here in my SSIS the process was always getting stuck in the same place wr a table Insert was happening.
So I checked for Constraints in this table and i got to knw there are two foregin key relations to the main two tables which is also part of my transaction. due to this my related table was not able to update/insert

I have removed the foregin key relations to make my SSIS works.
so I will remove the relation before the Dataflow & Once everything commited I will add the relation back.

Note : - Here I am considering the Same SQL side transaction. not the SSIS side.
Hope this will help some of you...

Thanks
Rijosh
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search