0
System.Data.Entity.Infrastructure.CommitFailedException: An error was reported while committing a database transaction but it could not be determined whether the transaction succeeded or failed on the database server. See the inner exception and http://go.microsoft.com/fwlink/?LinkId=313468 for more information. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Data.SqlClient.SqlInternalTransaction.GetServerTransactionLevel()
   at System.Data.SqlClient.SqlInternalTransaction.CheckTransactionLevelAndZombie()
   at System.Data.SqlClient.SqlInternalTransaction.Commit()
   at System.Data.SqlClient.SqlTransaction.Commit()
   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   --- End of inner exception stack trace ---
   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   at System.Data.Entity.Infrastructure.Interception.DbTransactionDispatcher.Commit(DbTransaction transaction, DbInterceptionContext interceptionContext)
   at System.Data.Entity.Core.EntityClient.EntityTransaction.Commit()
   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
   at System.Data.Entity.Core.Objects.ObjectContext.<>c__DisplayClass59.<ExecuteStoreCommand>b__57()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
   at TestLite.Infrastructure.Data.Repository.BaseRepository`1.Isolate(Int32 statelevel)
   at TestLite.Infrastructure.Data.Repository.BaseRepository`1.Read(Int64 id)
   at TestLite.Business.AppService.Controllers.PropertyController.GetDataPayment(String reftype, Int64 reference, Int32 customertype, Int32 ordertype, Int32 isPartsOrder)
  1. How to simulate this error?
  2. The null reference issue causing commit failed why it is?
3
  • The null issue is causing a commit failed because how can i commit something that is not existing? Now you can make a field nullable but maybe its null in a required field. We need to see the DB structure. The Input, the expected output...we are blind over here looking into a log that is telling us next to nothing. give us context. help us helping you Commented Feb 6 at 10:11
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Feb 6 at 15:38
  • If you read the error is raising due to null reference object but i am not able to determine from which null object. It looks like there is something going wrong internally during transaction and this is happening during commit failed. My question is can you create any scenario which can reproduce same kind of null reference error and send message as commit failed. @LMA Commented Feb 11 at 2:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.