The server failed to resume the transaction. Desc:4500000006

I am calling single store procedure from asp.net C# which basically insert/update data in two different tables. I am using SQL transaction in store procedure.
I am getting exception
THE SERVER FAILED TO RESUME THE TRANSACTION, DESC:4500000006. THE TRANSACTION ACTIVE IN THIS SESSION HAS BEEN COMMITTED OR ABORTED BY ANOTHER SESSION.
Exception which I get its not frequent messsage.
Any Idea!!!!
ALTER PROCEDURE [dbo].[ssp_UpdateActivity]
@ActivityID uniqueidentifier,
@MasterCustomerID bigint = NULL,
@MasterCustomerAccountNumber varchar(30) = NULL,
@MasterIdentifier varchar(30) = NULL,
@UpdateDateTime datetime,
@UpdateBy varchar(100),
@ActivitySDRecord dbo.ActivitySDRecord READONLY
AS
SET NOCOUNT ON;
BEGIN TRY
BEGIN TRAN
UPDATE Activity
SET MasterCustomerID = @MasterCustomerID,
MasterCustomerAccountNumber = @MasterCustomerAccountNumber,
MasterIdentifier = @MasterIdentifier,
UpdateDateTime = @UpdateDateTime,
UpdateBy = @UpdateBy
WHERE ActivityID = @ActivityID
IF EXISTS (SELECT * FROM @ActivitySDRecord)
BEGIN
MERGE ActivitySubDisposition AS TRG
USING @ActivitySDRecord AS SRC
ON TRG.ActivityID = SRC.ActivityID
AND TRG.ActivityTypeID = SRC.ActivityTypeID
WHEN NOT MATCHED BY TARGET THEN
INSERT (ActivityTypeID, ActivityID)
VALUES (SRC.ActivityTypeID, SRC.ActivityID)
END
COMMIT TRAN
SELECT @ActivityID
END TRY
BEGIN CATCH
-- Rollback any uncommited transactions before rethrowing the error.
IF XACT_STATE() <> 0
BEGIN
ROLLBACK TRANSACTION;
END
DECLARE @ErrorMessage NVARCHAR(4000)
, @ErrorNumber INT = ERROR_NUMBER()
, @ErrorSeverity INT = ERROR_SEVERITY()
, @ErrorState INT = ERROR_STATE()
, @ErrorLine INT = ERROR_LINE()
, @ErrorProcedure NVARCHAR(200) = ISNULL(ERROR_PROCEDURE(), '-');
-- Build the message string that will contain original error information.
SET @ErrorMessage = N'Error %d, Level %d, State %d, Procedure %s, Line %d, ' + 'Message: '+ ERROR_MESSAGE();
-- Raise an error: msg_str parameter of RAISERROR will contain the original error information.
RAISERROR
@ErrorMessage,
@ErrorSeverity,
1,
@ErrorNumber, -- parameter: original error number.
@ErrorSeverity, -- parameter: original error severity.
@ErrorState, -- parameter: original error state.
@ErrorProcedure, -- parameter: original error procedure name.
@ErrorLine -- parameter: original error line number.
END CATCH

This appears to be an error message which has it roots in MS DTC, Microsoft Distributed Transaction Coordinator.
This indicates that you somewhere manage to get a distributed transaction. This could be because of two things:
1) There are triggers on the tables that accesses linked server.
2) Your client code dabbles with some transaction class, like TransactionScope or similar.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • The server failed to resume the transaction. Desc:d200000003.

    Hi,
    We recently migrated our application from SQL Server 2000 to SQL Server 2005 and we also migrated from WAS5 to WAS6.
    We are getting the following exception when we call any of the stored procedures.
    The server failed to resume the transaction. Desc:d200000003.
    I guess this is the problem with the drivers.We use JDBC 2005 driver Version 1.1.
    But we didnt face this problems when we use JDBC 2000 driver when we used to connect to SQL Server 2000
    The Microsoft says that it has fixed the date problems as well as the transaction problems in the version 1.1.But still are facing the issues.
    Can anyone of you please help me in getting the solution for the same?

    This appears to be an error message which has it roots in MS DTC, Microsoft Distributed Transaction Coordinator.
    This indicates that you somewhere manage to get a distributed transaction. This could be because of two things:
    1) There are triggers on the tables that accesses linked server.
    2) Your client code dabbles with some transaction class, like TransactionScope or similar.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Visio - bug - The server failed to process the request

    Hi
    When uploading a visio diagram into one of our sharepoint document libraries we then get a 'The Server failed to process the Request' error when we then try and view the document in the Web Browser. Does anyone know how to fix this?
    Thanks

    I understand that this is an old thread. The following might be useful to other readers engaging this issue in the future.
    I experienced the same error message when provisioning a new instance of the Visio Graphics Service application for a new farm.  I first tested the approach presented by sjb500 and found that this approach did resolve the problem.  I then
    explored using a more limited permission approach.  Over the course of several attempts, I eventually found that I only need map the application pool identity to the SPDataAccess role to resolve the problem:

  • ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.

    Im trying to connect to my azure subscription via powershell on my machine but keep getting the following error when i run a command:
    ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated  with this subscription.
    The steps i have taken so far are:
    1. get settings file
    Get-AzurePublishSettingsFile
    2. Import settings file
    Import-AzurePublishSettingsFile -PublishSettingsFile "C:\Users\me\Downloads\credentials.publishsettings"
    3. I then run Get-Azuresubscription with the following output:
    SubscriptionId : 699385c3-b83a-44af-a651-bxxxxxxxxx
    SubscriptionName : Windows Azure MSDN - Visual Studio Premium
    Environment : AzureCloud
    SupportedModes : AzureServiceManagement
    DefaultAccount : 3B68902B5170D5EC91BFCBE4CC27E2A8838F61C4
    Accounts : {3B68902B5170D5EC91BFCBE4CC27E2A8838F61C4, 26B118D7F3C598FB8FE9CDC49AB5DE5E450C967C,
    03E1E1F0B8C7717F11FB58A14138C35524AB3F8D, 9A2E1FD267ECCC0E9B8C151BD931FC4824E89184...}
    IsDefault : True
    IsCurrent : True
    CurrentStorageAccountName :
    TenantId :
    I run Get-AzureAccount and get the following:
    Id Type Subscriptions Tenants
    3B68902B5170D5EC91BFCBE4CC27E2 Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    A8838F61C4
    26B118D7F3C598FB8FE9CDC49AB5DE Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    5E450C967C
    03E1E1F0B8C7717F11FB58A14138C3 Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    5524AB3F8D
    9A2E1FD267ECCC0E9B8C151BD931FC Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    4824E89184
    85AD02CB8EB8AB20CF2C44FD9D19F2 Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    9B6BB2FCD2
    Finally, when i try to run Get-AzureSQLDatabaseServer, to list my databases, i get this error:
    WARNING: Client Session Id: '5911f288-7b02-4c94-bb9d-37b9ea5fc187-2015-01-13 11:47:54Z'
    WARNING: Client Request Id: '3e5f7ea9-092a-46fd-a6a6-6916b9161b77-2015-01-13 15:25:41Z'
    Get-AzureSqlDatabaseServer : ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated
    with this subscription.
    At line:2 char:1
    + Get-AzureSqlDatabaseServer
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-AzureSqlDatabaseServer], CloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Server.Cmdlet.GetAzureSqlDatabaseServer
    I would appreciate any help in figuring out what i am doing wrong here.
    Thanks,

    OK. That won't work in Azure Automation though, as mentioned above. OrgID (recommended) or cert-based auth will need to be used. PublishSettings file won't work.
    Correct, but the original question was:
    <Quote>
    Im trying to connect to my azure subscription
    via powershell on my machine 
    </Quote>
    I wanted to test automation script's core functionality without having to wait for the very very long time taken for an automation runbook
    to spin up, actually run and provide output (can often take 2+ minutes for a trivial script). Although i cant run Workbooks on my pc, i can run the core modules (view virtual machines, databases etc) to ensure my logic is sound.

  • TS2755 In outlook, I keep getting message, "cannot get mail. The connection to the server failed." However, the mail seems to be coming thru just fine. What's going on?

    In outlook, I keep getting message, "cannot get mail. The connection to the server failed." However, the mail seems to be coming thru just fine. What's going on?

    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
     Cheers, Tom

  • The Server failed to retrieve the requested data

    I used to be able to open this site with firefox. I haven't been able to open it for 2 days. It does open in internet explorer.

    This appears to be an error message which has it roots in MS DTC, Microsoft Distributed Transaction Coordinator.
    This indicates that you somewhere manage to get a distributed transaction. This could be because of two things:
    1) There are triggers on the tables that accesses linked server.
    2) Your client code dabbles with some transaction class, like TransactionScope or similar.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Exchange Sync issues - Cannot get mail - the connection to the server faile

    Since the upgrade to 2.2, I seem to be having a very frustrating mail issue that i cant seem to fix.
    While trying to download my mail from my INBOX (on an exchange server) i get an error message - "Cannot get mail - the connection to the server failed"
    ALTHOUGH when syncing my Sent mails, Calendar and contacts i have no issues.
    I have tried rebooting the iphone as well as deleting my mail settings and reloading. The reloading was close to working as the iphone did download some messages (in the inbox) but stops someway through it and gives me the error message. Once i get the error message the phone will not download anymore / other mail messages.
    Please can someone offer some suggestions.

    Hope this helps someone like me, who has trying to figure out what went wrong. I have an iPhone 3G and ActiveSync to Exchange 2003 was working perfect for month's. All of a sudden today it stopped syncing my inbox and my battery just about died? Searched and Searched, rebooted Exchange, removed email account info, still not luck keep getting "Cannot Get Mail" "The connection to the server failed" message. The weird thing is I could get to my sent items, Calendar and AD contacts? But a thread in another Apple forum opened my eyes to what the problem was...a corrupt email in my inbox. Not sure what email it was I pretty much deleted every email I had after the last one I received on the iPhone. But it fixed the problem, no messing with Exchange virtual directories...nothing...just deleted a corrupt email!
    Hope this helps someone.....

  • Iphone 3G The connection to the server failed

    Help,
    I'm recieving the message "The connection to the server failed" I successfully verified the Exchange profile with the OWA server. No error message. However when I go into the Exchange E-mail to sync to gives me the message "the connection to the server failed". I'm running ann Iphone 3G 2.1 on Exchange 2003 SP2. I have hard reset the Iphone, removed the domain name for the profile and even tried to use the Iphone Configuration Web Utility with no luck. I have downloaded the 2 Godaddy Root CA's and 1 intermediate CA to the Iphone. Still no luck. I have played with the Sync options on the phone changing the "mail days to sync" to "No Limit"
    Any idea?

    My issue has been resolved! First I had to install the CA root for my self signed cert by going to https://servername/certsrv/ on my iPhone.
    Then I had to follow this Microsoft KB article: http://support.microsoft.com/?kbid=817379
    SSL does not play nice with Active Sync. This provides the work around.
    Then I had to install a hotfix: http://support.microsoft.com/kb/916640
    This allows Push mail to resume after the SSL Active Sync work around has been evoked.
    After these three things were completed, I now have a 100% working Exhange Push / iPhone set up.
    I thought I was going to kill myself in frustration trying to figure out the solution. Not to mention I could not find a single location that explained all three magic keys in one simple location.
    I hope this helps others.

  • Cannot send email via AOL on iPad2 - "A copy has been placed in your Outbox. Sending the message content to the server failed."

    My CEO has an ipad2 and I set it up w/ AOL.  She cannot send any email via her AOL account from her iPad.  She gets a message that says "A copy has been placed in your Outbox. Sending the message content to the server failed."   We've tried it on wifi and on 3G (Verizon version).  I've removed the account and added it, I've tried setting it up as an IMAP account vs. using Apples standard AOL mail setting and nothing seems to work.  The SMTP settings are smtp.aol.com, port 587.  I've tried adding an alternate server/smtp, but I haven't been able to find anything that works.  Any advice or other people having this issue?  It works fine sending an email from her aol web mail.  And unfortunately, having her sign up for a gmail account is not an option.  Thanks

    Interesting.  Firstly I have been on AOL since the early 90s with no current intention to switch as my primary personal email account.
    I have two email accounts on my iphone - AOL and my email from my business website.  I deleted both and then recreated first the business account and then the AOL account.  Same error.  Then I wasn't sure what you suggested but I turned off the AOL SMTP server and selected the business email SMTP server by turning it on with the same result.  I still get the error "A Copy has been placed in your Outbox.  Sending the mssage content to the server failed."
    Perhaps this problem will get fixed by IOS 6.   AOL will not talk to me unless I pay and Apple says its not their problem.  So for the time being I use the AOL web interface in the iPhone's Safari to send emails from the phone.

  • TS3899 Tried all the tips on line. Every time I try to send an e-mail, it gives me this message, "A copy has been placed in your Outbox. Sending the message content to the server failed" Any help in how to resolve would be appreciated

    I went through all the steps to try to resolve getting the message in a box every time i try to send an e-mail. What next ?
    Message is " A copy has been placed in your
                        Outbox. Sending the message content to the server failed."
    Any assistance would be greatly appreciated. My internet works fine as I can send e-mails from my Yahoo account on my MAC no problem.
    Address is fine etc.

    How long has it been going on? I've had my yahoo mess up and if i wait a bit it resolves itself. Yahoo is doing something with their servers and it messes with your mail if your mail happens to be on one of those servers.

  • Regarding mountain lion server: clients experience intermittent service connections. the server system log has the following error- Client handshake failed (6):113: Server not accepting client connections (any ideas???)

    regarding mountain lion server: clients experience intermittent service connections. the server system log has the following error- Client handshake failed (6):113: Server not accepting client connections. any suggestions would be greatly appreciated - thank you

    Hi Jason
    I was getting the same behavior after Apple support had me delete some plist files to get Airplay going. I was also getting the following error:
    the error occurred while processing a command of type 'writesettings' in the plug-in 'server vpn'
    I went into ~/Library/Preferences/ and /Library/Preferences/ and deleted every plist contating the word server. I had to re-set up my server (meaning walk through some intial steps) but all of my settings were still there after that and everything started working again.
    Just a thought, obviously try at your own risk but it worked for me.
    Kellen

  • I am having a problem accessing my Yahoo email account.  It keeps saying, cannot get mail, the connection to the server failed.  Then I put my email in settings and it works but this happens constantly.  Anyone having this problem?

    My Yahoo email asks me daily for my email password or says the connection to the server failed.  Is anyone having this problem currently?  I noticed old messages in chat mentioned the same problem.  I get into my Yahoo email fine on my desktop computer for several weeks without re entering a password.  But the IPad does not seem to be connecting daily with Yahoo without putting a password in again. 

    So, I didn't change anything and now it is working better. I still get the odd error though.
    I have a feeling this has something to do with the SSL update Apple released and it was their server side.

  • A copy has been placed in our outbox.  Sending the message content to the server failed

    I go from "The recipient was rejected by the server becasue it does not allow relaying" to "saving email to outbox because content to the server failed" when i try sending email out of AOL.  I tried all the suggested fixes. AOL had me add a server cwmx.com using port 587 and turning off my wifi, that did not work.  I tried adding a new server with stmp.aol.com and adding my username without the @aol.com with no luck.  I have spent hours trying to figure this out, been working with AOL and Apple with no luck. 
    I didn't have problems until i was told to restore my phone to factory settings because of a software issue i was having, it has been almost a week now does anyone have any recommedations to fix this?

    Been going on for any of my AOL accounts for about 2 months.  Started on iphone 4 w. ios5 and continued to ios6 and now iphone 5.  no diff.  Have even trying reinitializing iphone 4 and just setting up one aol account.  no help.  Gone through all the permutations I can think of.  Does not happen for my non-AOL accounts.  Apple blames it on AOL and AOL won't help without getting paid.

  • Sending email error with Yahoo: "A copy has been placed in your Outbox. Sending the message content to the server failed."

    HELP!  Why am I getting this error message? It's driving me crazy! When I try to send an email,  the message stalls in the outbox and the following message pops up -  "A copy has been placed in your Outbox. Sending the message content to the server failed." I have deleted and reinstalled the account, restarted the phone, etc - what the heck? The emails work just fine at Yahoo online, so the account it fine...I don't want to hard reset the phone, as I had to do that recently and it's a pain - any suggestions?

    OR they are the right settings but you are trying to send through a different internet provider or 3G provider, that does not allow that SMTP server to send email.
    if I send email from 3g or someone elses wifi on a different ISP, it will not work, because it does not allow that server to be contacted. this is normal.
    What you want to do is setup a gmail account and use their SMTP server settings for the defauly outgoing server. that way you dont have to worry about this.

  • A copy has been placed in your outbox.  sending the message content to the server failed.  my iphone email

    I have been using my iphone for almost a year and after my email address was hacked yesterday by a diet berry fake email, i can send out an email from my phone.  I have removed, rebooted, removed, etc.....and changed my password, still can't send out an email.
    Error Message:  A copy has been placed in your outbox.  Sending the message content to the server failed.
    Thanks

    OR they are the right settings but you are trying to send through a different internet provider or 3G provider, that does not allow that SMTP server to send email.
    if I send email from 3g or someone elses wifi on a different ISP, it will not work, because it does not allow that server to be contacted. this is normal.
    What you want to do is setup a gmail account and use their SMTP server settings for the defauly outgoing server. that way you dont have to worry about this.

Maybe you are looking for

  • Migration Assistant- Recovering from a hard disk failure

    Was running on OS X 10.8.5 on MBP 8,3 (2011 17") Many issues with slowness, and software, and then boom, the hard disk failed. No software recovery worked.  Drive has been shipped for physical recovery. I did not use migration assistant to set up the

  • Vb6 - How do I Pass a single variable - CR XI

    I have a vb6 application that retrieves data from an ACCESS DB.  I would like to pass a single variable programatically to an .rpt file loaded into form containing a crviewer object.  The ultimate goal is to generate a report based on a single record

  • Mavericks Sluggish Performance

    Hello all, I have a Mac Mini that is pretty sluggish graphically since Mavericks. Initially an upgrade install, I have now done a fresh install and a PRAM reset. No improvement. Noticing it a lot in Finder, Mail and sometimes Safari.

  • Error installing oracle 10g in centos5.3

    Hi, i got this error while installing oracle 10g in centos... Checking Network Configuration requirements ... Check complete. The overall result of this check is: Not executed <<<< Recommendation: Oracle supports installations on systems with DHCP-as

  • One photo in multiple albums

    HI, I'd like to be able to have an original photo appear in multiple albums, but when I try to do that it won't import into a new album because it already exists. I have 1 photo that I have imported and it is in 1 location.  But I  have multiple thin