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


Dead Lock Issue -In update Scenario


Dead Lock Issue -In update Scenario

Author
Message
greeshatu
greeshatu
SSC-Enthusiastic
SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)

Group: General Forum Members
Points: 195 Visits: 186
HI ,

I have a Dataflowtask in which following following Transformations are used
---OLEDB Source[Pulls Data From X StagingTable]
---Balance data distributor is used [For Parallel Execution]
---CRM Destination is used for Inserts/Updates data into Y Target Table
---Conditional Split[On >0] exists.

Case 1 [>0-Error]:Updates Table X's Row as Unsuccesful
Case 2[<=0-No Error]:Updates Table X's Row as Succesful

While Peforming above scenario Iam getting Dead Lock issue .

"Microsoft SQL Server Native Client 10.0"
Hresult: 0x80004005 Description: "Transaction (Process ID 82) was deadlocked on
lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.".

I belive this is due to Update operation performed on table
Kindly request you to help me in this regard.
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)

Group: General Forum Members
Points: 52846 Visits: 21195
What is 'CRM destination'? Is this a custom component?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
greeshatu
greeshatu
SSC-Enthusiastic
SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)

Group: General Forum Members
Points: 195 Visits: 186
Its a Third party component [Kingsway]

CRM DESTINATION ADAPTER [inserts data into Microsft CRM Dynamics]
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)

Group: General Forum Members
Points: 52846 Visits: 21195
greeshatu (5/16/2013)
Its a Third party component [Kingsway]

CRM DESTINATION ADAPTER [inserts data into Microsft CRM Dynamics]


If that's where the deadlocks are happening, can you ask them for support?

It would be difficult for most people here to help you, given that this is not a standard component.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
greeshatu
greeshatu
SSC-Enthusiastic
SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)

Group: General Forum Members
Points: 195 Visits: 186
Dead lock is not happening in Third part object CRM Destination adapter

.Dead lock is Occuring in OLEDB Commmand's defined after Conditional Split where in Update Query on Staging table is coded .
sdevanny
sdevanny
SSC-Enthusiastic
SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)

Group: General Forum Members
Points: 129 Visits: 343
greeshatu (5/16/2013)
HI ,

I have a Dataflowtask in which following following Transformations are used
---OLEDB Source[Pulls Data From X StagingTable]
---Balance data distributor is used [For Parallel Execution]
---CRM Destination is used for Inserts/Updates data into Y Target Table
---Conditional Split[On >0] exists.

Case 1 [>0-Error]:Updates Table X's Row as Unsuccesful
Case 2[<=0-No Error]:Updates Table X's Row as Succesful


While Peforming above scenario Iam getting Dead Lock issue .

"Microsoft SQL Server Native Client 10.0"
Hresult: 0x80004005 Description: "Transaction (Process ID 82) was deadlocked on
lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.".

I belive this is due to Update operation performed on table
Kindly request you to help me in this regard.


Please see the parts I bolded in your explanation. Table X is the source. Is Table X also being updated? If YES, has the SELECT from Table X completed before said UPDATE? If not you may want to add an asynchronous component before your update to ensure the SELECT from X has completed before Updating X.
greeshatu
greeshatu
SSC-Enthusiastic
SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)SSC-Enthusiastic (195 reputation)

Group: General Forum Members
Points: 195 Visits: 186
Select and Update are running paralelly .. this is because I have used Balance data distributor to run the tasks parallely .Which asyncronous transformations is helpful in this case.kindly suggest
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)

Group: General Forum Members
Points: 52846 Visits: 21195
greeshatu (5/20/2013)
Select and Update are running paralelly .. this is because I have used Balance data distributor to run the tasks parallely .Which asyncronous transformations is helpful in this case.kindly suggest


You might be better off selecting to a Raw file and updating from that - to ensure that you avoid contention issues.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
sdevanny
sdevanny
SSC-Enthusiastic
SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)

Group: General Forum Members
Points: 129 Visits: 343
Phil Parkin (5/20/2013)
greeshatu (5/20/2013)
Select and Update are running paralelly .. this is because I have used Balance data distributor to run the tasks parallely .Which asyncronous transformations is helpful in this case.kindly suggest


You might be better off selecting to a Raw file and updating from that - to ensure that you avoid contention issues.


Raw file is a great idea Phil! Probably better than an asynchronous component in most cases. That said, if your'e only dealing with a smaller data set, add a Sort component. It should not add too much time to the overall processing and should do the trick as well.

But I do like the Raw file very much!
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