Share via

transaction abort error

Prasad Kulkarni 11 Reputation points
2021-12-14T05:04:52.807+00:00

Dear team

I am facing random transaction aborted issue in transaction scope, some times it works and some times throws an exception.
i am facing this issue only on VM environment with Windows server 2012 R2 and SQL 2014 standard version
is that the culprit ?

here is my code

    option.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted;

    option.Timeout = TimeSpan.FromMinutes(5);

    using (_objTransactionScope = new TransactionScope(TransactionScopeOption.Required, option))
    {
    //..Open Connection
    //..Process the Document
    //..Update Additional information in Table2 about document(Delete/Insert)
    //..Update Location Information in Table3 about document(Delete/Insert)
    //..Delete the Document in Table4 in Differant Database on Differant Server(WCF Service)
    //..Update the Checksum of the Document and Metadata in Table1
    //..Delete Lock Entry From Table5
    //..Commit Transaction Scope
    //..Close Connection
    }

Please suggest

Thanks
Prasad

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL

A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Olaf Helper 47,621 Reputation points
    2021-12-14T06:55:31.363+00:00

    Please avoid double posts: https://learn.microsoft.com/en-us/answers/questions/626968/transaction-abort-in-transaction-scope.html

    here is my code

    No, it's not really, I see only some comments.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.