DEADLOCK - ON INSERT but Graph shows on UPDATE

HI Experts, Please can you look at below graph , queries invloved in deadlock are insert queries but deadlock graph shows it's waiting for IU lock , please suggest why this is happening and possible solution on this ?<deadlock>
<victim-list>
<victimProcess id="processfe4f4c8" />
</victim-list>
<process-list>
<process id="processfe4f4c8" taskpriority="0" logused="0" waitresource="PAGE: 16:15:2763616" waittime="18910" ownerId="14792928887" transactionname="INSERT" lasttranstarted="2014-12-01T03:18:56.583" XDES="0x98461ce90" lockMode="U" schedulerid="8" kpid="322972" status="suspended" spid="157" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2014-12-01T03:18:56.527" lastbatchcompleted="2014-12-01T03:18:56.523" clientapp="Microsoft SQL Server" hostname="LDNPSM020012787" hostpid="11512" loginname="INTRANET\sysStrAggProdRW" isolationlevel="read committed (2)" xactid="14792928887" currentdb="16" lockTimeout="4294967295" clientoption1="671221856" clientoption2="128056">
<executionStack>
<frame procname="" line="9" stmtstart="614" sqlhandle="0x03001000714adf585beadc00f1a300000000000000000000" />
<frame procname="" line="4" stmtstart="132" sqlhandle="0x02000000dcb4f83081b8eccb8453ddd8d8b68d18e5e102f7" />
<frame procname="" line="1" sqlhandle="0x000000000000000000000000000000000000000000000000" />
</executionStack>
<inputbuf>
(@P1 datetime2(0))declare @cobdate datetime;
set @cobDate = @P1;
INSERT INTO [risk].[VolckerSignoffDetailed]
( [CobDate]
,[ChorusId]
,[RiskManager]
,[Description]
,[Currency]
,[Tenor]
,[Sensitivity]
,[RiskMetricValue]
,[AssetClass]
,[FunctionalGroup]
,[Desk]
,[NoRiskFlag])
SELECT
[CobDate]
,vfs.[ChorusId]
,coalesce(vmn.RiskManager,'Unknown')
,[SensitivityDescription]
,[Ccy]
,[Tenor]
,[SensitivityType]
,[SensitivityValue]
,'Fx'
,coalesce(vmn.FunctionalGroup,'Unknown')
,coalesce(vmn.Desk,'Unknown')
,0
FROM [Rover].[risk].[VolckerFxSensitivityReport_history] vfs
LEFT JOIN risk.VolckerMarsNodeSignOffData vmn ON vfs.ChorusId = vmn.ChorusId
WHERE cobDate = @cobDate
UNION ALL
SELECT @cobDate
,mm.ChorusId
,coalesce(vmnsd.RiskManager,'Unknown')
,NULL
,NULL
,vmn.Sensitivity
,0
,'Fx'
,coalesce(vmnsd.Function </inputbuf>
</process>
<process id="processfe4fdc8" taskpriority="0" logused="16200" waitresource="PAGE: 16:15:2681345" waittime="3546" ownerId="14792751373" transactionname="INSERT" lasttranstarted="2014-12-01T03:17:57.960" XDES="0x438882e90" lockMode="X" schedulerid="8" kpid="323636" status="suspended" spid="74" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2014-12-01T03:17:56.683" lastbatchcompleted="2014-12-01T03:17:56.580" clientapp="Microsoft SQL Server" hostname="LDNPSM020012787" hostpid="13984" loginname="INTRANET\sysStrAggProdRW" isolationlevel="read committed (2)" xactid="14792751373" currentdb="16" lockTimeout="4294967295" clientoption1="671221856" clientoption2="128056">
<executionStack>
<frame procname="" line="9" stmtstart="614" sqlhandle="0x03001000714adf585beadc00f1a300000000000000000000" />
<frame procname="" line="4" stmtstart="132" sqlhandle="0x0200000094fe01033c05ace97f13efdd7dca36b6e6c8c03d" />
<frame procname="" line="1" sqlhandle="0x000000000000000000000000000000000000000000000000" />
</executionStack>
<inputbuf>
(@P1 datetime2(0))declare @cobdate datetime;
set @cobDate = @P1;
INSERT INTO [risk].[VolckerSignoffDetailed]
( [CobDate]
,[ChorusId]
,[RiskManager]
,[Currency]
,[Product]
,[Sensitivity]
,[RiskMetricValue]
,[AssetClass]
,[FunctionalGroup]
,[Desk]
,[NoRiskFlag])
SELECT
[CobDate]
,vss.[ChorusId]
,coalesce(vmn.RiskManager,'Unknown')
,[Currency]
,[Product]
,[Sensitivity]
,[RiskMetricValue]
,'SecProducts'
,coalesce(vmn.FunctionalGroup,'Unknown')
,coalesce(vmn.Desk,'Unknown')
,0
FROM [Rover].[risk].[VolckerSecProductsSensitivityReport_history] vss
LEFT JOIN risk.VolckerMarsNodeSignOffData vmn ON vss.ChorusId = vmn.ChorusId
WHERE cobDate = @cobDate
UNION ALL
SELECT @cobDate
,mm.ChorusId
,coalesce(vmnsd.RiskManager,'Unknown')
,NULL
,vmn.Sensitivity
,0
,'SecProducts'
,coalesce(vmnsd.FunctionalGroup,'Unknown')
,c </inputbuf>
</process>
</process-list>
<resource-list>
<pagelock fileid="15" pageid="2763616" dbid="16" objectname="" id="lock6ca651a80" mode="U" associatedObjectId="72057594417643520">
<owner-list>
<owner id="processfe4fdc8" mode="U" />
</owner-list>
<waiter-list>
<waiter id="processfe4f4c8" mode="U" requestType="wait" />
</waiter-list>
</pagelock>
<pagelock fileid="15" pageid="2681345" dbid="16" objectname="" id="lock3c5a70480" mode="IU" associatedObjectId="72057594417774592">
<owner-list>
<owner id="processfe4f4c8" mode="IU" />
</owner-list>
<waiter-list>
<waiter id="processfe4fdc8" mode="X" requestType="convert" />
</waiter-list>
</pagelock>
</resource-list>
</deadlock>
Shivraj Patil.

It's difficult to tell exactly what is going on without further information about the database. We would also need to map the pages to tables, which you can do with DBCC PAGE. (Which is undocumented, though.)
The U(pdate) lock here has nothing to do with an UPDATE statement. An Update lock on a resource, is a read lock, but which indicates that the process wil later perform an update on the resource. There can only be one U lock on a resource. The resource in this
question is a page, and an INSERT will cause an update to a page somewhere.
The other locks are IU (Intent-Update) which indicates that the process holds U locks on a resource on lower level, that is a row in this case. X is an exclusive lock.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • App updates download and process but still show needs update

    Since 10.5.3 often i'll have app updates and when i select to download them it will download and process but still stay in update available.  I've tried all the standard, restart, logout etc but they are still there.  Like right now Whiteboard Lite is the one hanging.  Then randomly some day it will go through but its kind of annoying.

    Ok...
    ~/Library/Caches/com.apple.appstore
    ~/Library/Caches/com.apple.storeagent
    ~/Library/Preferences/com.apple.appstore.plist
    ~/Library/Preferences/com.apple.storeagent.plist
    ~/Library/Cookies/com.apple.appstore.plist
    Open a Finder window. Select your Home folder in the Sidebar on the left. Now open the LIbrary folder then the Caches folder.
    Move these files to the Trash: com.apple.appstore and com.apple.storeagent
    Now from the same Library folder open the Preferences folder. Move these files to the Trash.
    com.apple.appstore.plist and com.apple.storeagent.plist
    Same Library folder, open the Cookies folder. Move this file to the Trash.
    com.apple.appstore.plist
    If you don't see the com.apple.storeagent files, don't worry about it.
    Restart your Mac. See if that made a difference.
    Message was edited by: Carolyn

  • Data Services job rolling back Inserts but not Deletes or Updates

    I have a fairly simple CDC job that I'm trying to put together. My source table has a record type code of "I" for Inserts, "D" for deletes, "UB" for Update Before and "UP" for Update After. I use a Map_CDC_Operation transform to update the destination table based on those codes.
    I am not using the Transaction Control feature (because it just throws an error when I use it)
    My issue is as follows.
    Let's say I have a set of 10,000 Insert records in my source table. Record number 4000 happens to be a duplicate of record number 1. The job will process the records in order starting with record 1 and begin happily inserting records into the destination table. Once it gets to record 4000 however it runs into a duplicate key issue and then my try/catch block catches the error and the dataflow will exit. All records that were inserted prior to the error will be rolled back in the destination.
    But the same is not true for updates or deletes. If I have 10000 deletes and 1 insert in the middle that happens to be an insert of a duplicate key, any deletes processed before the insert will not be rolled back. This is also the case for updates.
    And again, I am not using Transaction Control, so I'm not sure why the Inserts are being rolled back, but more curiously Updates and Deletes are not being rolled back. I'm not sure why there isn't a consistent result regardless of type of operation. Does anyone know what's going on here or  what I'm doing wrong/what my misconception may be?
    Environment information: both source and destination are SQL Server 2008 databases and the Data Services version we use is 14.1.1.460.
    If you require more information, please let me know.

    Hi Michael,
    Thanks for your reply. Here are all the options on my source table:
    My Rows per commit on the table is 10,000.
    Delete data table before loading is not checked.
    Column comparison - Compare by name
    Number of loaders - 1
    Use overflow file - No
    Use input keys - Yes
    Update key columns - No
    Auto correct load - No
    Include in transaction - No
    The rest were set to Not Applicable.
    How can I see the size of the commits for each opcode? If they are in fact different from my Rows per commit (10,000) that may solve my issue.
    I'm new to Data Services so I'm not sure how I would implement my own transaction control logic using a control column and script. Is there a guide somewhere I can follow?
    I can also try using the Auto correct load feature.  I'm guessing "upsert" was a typo for insert? Where is that option?
    Thank you very much!
    Riley

  • Updated success but still showing one update in setting

    Hello,
    In my iPhone 4s I upgraded to ios 8 successfully but still in my mobile showing there is one update from out side settings  but when  go and see in the
    setting--->general-->software update...> the software is up to date
    how to resolve this issue please any one help me on this.

    Most likely it is an update for your phone's OS. That is the one on settings.
    The 43 ones on the App Store are updates for the installed apps.
    What you need to do is to connect the phone on the internet and get the password for the apple id used to download the apps.

  • My iPad mini won't update my apps.  I have closed all open apps, done multiple resets but I show 24 updates and when I hit the update, the screen is blank.

    My iPad mini won't update my apps.  I have closed all open apps and done multiple resets.  I hit update and the screen is blank, even though the bubble shows 14 to update.

    If you are getting the blank app update screen, many people are having this problem over the last couple of days.
    According to Fly150 in another discussion, this will work.
    If you want to update the Apps while waiting for Apple to fix Updates:
    1. Go to App Store
    2. Select Purchased
    3. Select All
    4. Scroll down to find the Apps showing update
    5. Select update on the Apps
    This should update the Apps and get rid of the update count in App Store. Apple needs to fix this. It is a workaround only until then.

  • Iphone 4, App store showing 2 updates, but when I go into the app store it says all apps are up to date.

    I have an Iphone 4, IOS version 6.1.3. 
    My app store badge is showing 2 updates, but when I go into my app store, it tells me all apps are up to date.   I've tried several of the fixes that others have who have had simular issues,  but so far, I havn't seen anyone who is having the issue of the app store saying the apps are up to date. (Most others are unable to load the app store or its just blank.)
    Sometimes when I go into the app store the notification will go away,  but its only temporary as it will come back again later.   I've gone through my purchased list,  and there are none that have update beside them.  There are some that have a cloud,  but all of those are ones I have deleted and do not wan
    Unlike most users, I do not have a ton of apps.  Probably less then 30, some of those are ones it came with.  If this was a computer, I would think that there is something in the registry that is left over from one of the apps I deleted and its triggering the app store.  IDK if it works like that on Iphones as I'm not really an expect. This is the only apple device I've ever owned and I got it used from a friend about 6 months ago. (It was cleared and restored before I bought it from her)
    Everthing else seems to be working fine for the most part, except that it has been acting kinda slow and sometimes the browser and stuff doesn't load right the first try. (I only use wifi on it, as I don't use a cellular service with this Iphone)

    ATtempt to power off your device and power it back on, if that doesn't work reset all settings should resolve it for you

  • I have apps from old work account that I can't remember the password to. On my personal phone those apps keep showing up but I can't update them because I can't remember the password. How can I delete them and download on my new account?

    I have apps from old work account that I can't remember the password to. On my personal phone those apps keep showing up but I can't update them because I can't remember the password. How can I delete them and download on my new account?

    Tap and hold an app until they all start jiggling and an X appears in the icon's top left corner. One by one tap the X to delete the app. when they are all gone you are free to buy them again with your own account.

  • Hi i have a iphone 4 but when i tried to update from ios 5.1.1 to ios 6 it sed error and my phone turned of and it **** on but onle showing the appl sing on the screen what do i do ??

    hi i need help my iphone 4 asked me to update from ios 5.1.1. to ios 6 so i did and once it fineshd it sed error now all mi phone will do is turn on but onle showing the apple logo on it what do i do i need it working as i am paying for it on contract pls some one help me.
    Also when i plug it into my computer it will not recognise that there is even a device, almost like there is no software? can anyone help me, thanks..

    You are going to have to connect to the computer and restore. http://support.apple.com/kb/HT1808

  • I recently Updated my phone and my front camera stopped working its pitch black but still shows the icons on the screen but when i get off the app and get back on and flip the camera to my face view it works fine

    I recently Updated my phone and my front camera stopped working its pitch black but still shows the icons on the screen but when i get off the app and get back on and flip the camera to my face view it works fine

    Hi there Fgonzalez2015,
    You may find the camera troubleshooting steps in the article below helpful.
    Get help with the camera on your iPhone, iPad, or iPod touch
    You see a closed lens or black screen
    If you see a closed lens or black screen when you open the Camera app, try these steps:
    Make sure that there’s nothing blocking the camera lens. If you’re using a case, try removing it.
    Force the app to close, then open the Camera app again.
    Restart your device, then open the Camera app again.
    If your device has a front and rear camera, try both cameras by tapping the camera swap icon . If you see the closed lens or black screen on only one camera, take your device to an Apple Retail Store or Authorized Service Provider for more help.
    -Griff W.  

  • TS3274 My App Store shows 3 updates but when I go to it the screen is blank. It will not give me the option to update all or one at a time, it doesn't show the apps at all.

    My App Store shows 3 updates but when I go to it the screen is blank. It will not give me the option to update all or one at a time, it doesn't show the apps at all.

    Many people are having this problem for the last couple of days. This is a problem that Apple has to fix. If you look around the forum, you will see many, many discusssions about this and they have been going on for a few days.
    According to Fly150 in another discussion, this is a workaround - for the time being.
    If you want to update the Apps while waiting for Apple to fix Updates:
    1. Go to App Store
    2. Select Purchased
    3. Select All
    4. Scroll down to find the Apps showing update
    5. Select update on the Apps
    This should update the Apps and get rid of the update count in App Store.

  • Creative Cloud shows 4 updates but is stuck

    Hi
    Creative Cloud shows 4 updates but is stuck and nothing happens when update is clicked, nor you can agree to the new agreement, nor you can quit and restart the app (and why should you). see screen shot.
    Cheers,
    Mic

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • HT2404 I just clicked on Software Updates; BUT nothing shows what's happening? How come I can't see the updates & time it will take?

    Help!  I just got this Lion, and SO many changes & not necessarily for the better !
    I went to the Apple icon, but  "Software Updates" did not show ... though I had deferred installing some updates ...
    Finally it showed up, I clicked on it, saw the updates to do - BUT when I clicked on install - the "box" that usually shows the updates & how long to install - just disappeared! I can't get to it to see what's next. (I have to leave soon & will turn off the mac)
    What's happening? How come I can't see the updates as they are installed, & how much time it will take?
    How do I know IF they have been installed?  Is this the "new Normal" for Lion? Or is there a glitch in my mac somewhere?
    How about updates you download from Apple (not bought) - they go to Downloads on the Sideboard, but are they installed automatically, & put where they belong too? Is there no more restart, etc.?
    - I just went to Systems Preference, to see the "Installed Software" - shows they were ... but don't I have to restart anymore? Are all updates now automatically placed where they belong?
    Thanks to any who can help
    PS One other question - just checked my "profile" & it has my email addy that's 4 years old... how do I change That?

    software update not working
    https://discussions.apple.com/thread/3967755?start=0&tstart=0

  • HT1338 The Mac App Store shows an update available for iMovie but when I click "update" it gives me this message, "The product distribution file could not be verified. It may be damaged or was not signed." What can I do to update this program?

    The Mac App Store shows an update available for iMovie but when I click "update" it gives me this message, "The product distribution file could not be verified. It may be damaged or was not signed." What can I do to update this program?

    http://www.apple.com/support/mac/app-store/contact.html?form=account

  • HT201210 I backed up old phone to PC then did a sync to new 4S but when trying to update apps on phone it states - account not valid in Argentine store, must switch to U.S. store. I am in US and when I view account on PC it correctly shows me in US. Now w

    I backed up old phone to PC then did a sync to new 4S but when trying to update apps on phone it states - account not valid in Argentine store, must switch to U.S. store. I am in US and when I view account on PC it correctly shows me in US. Now what?

    log out and log back in again to store
    and if required
    http://support.apple.com/kb/HT1311

  • I have windows 7 and vista laptops on win 7 after the latest updates I was no longer able to browse the net. I have router conection but it shows no internet

    since the last update to 14.0.1 and updating plugins for adobe shockwave flash my internet connection dropped out. I have two other laptops, an Ipod touch and samsung phone on the same router and all work fine. I have connection to the router but diagnosis shows no internet access. I updated the same plugin on my Vista laptop and found the same problem occurred. I have reset all network settings and the router back to factory and setup again but still the same

    Hi mysticpjd,
    this really does not seem to be an Internet browser issue. Have you tried a different browser (Internet Explorer)? I assume that the problem persists there right?
    Regards,
    jm

Maybe you are looking for

  • How can you print 1-3 pages of a web document?

    I have an Ipad with a HP6500A Plus and can print. I have the eprint app loaded on the ipad. I need to be able to select the pages to print from a web page. This question was solved. View Solution.

  • Blocking I/O thread

    I know that a thread can be blocked on an I/O operation? I/O can block a thread for a considerable amount of time, particularly if network communication is involved. For example, a server may be waiting for a request, or a network application may be

  • Vendor Invoice amount

    Hello Experts, I am working on designing of check. We print check on the first half of A4 size page and in the second half of the page we print invoice amount and net amount of each invoice along with few other fields. Can someone tell me what table

  • Query on cursors in procedures

    hi, I have been trying to pass a tablename as a parameter in a procedure. This tablename I then need to use in a cursor . my code is something like this. create procedure abc (tablename varchar2) is cursor xyz is select rowid from tablename; But for

  • Workflow with less rendering

    Hi there, I usually like to edit my videos after I apply the stabilization, colour correction and grade etc...doing that I can have a better idea of what going to be useful and what I should discard from my final video. The problem is that after you