Cuando se envían a autorizar ciertos registros como ingesos eventuales, descuentos eventuales u horas extras, algunos registros no se autorizan y dan el siguiente mensaje en la parte de procesos:

System.Data.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.InvalidOperationException: The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements. at System.Data.SqlClient.SqlInternalConnectionTds.CheckEnlistedTransactionBinding() at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues) at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) --- End of inner exception stack trace --- at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) at System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache) at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options) at Aseinfo.VH4.Data.AppDataContext.SaveChanges(SaveOptions options) at Aseinfo.Infrastructure.Base.Entity.GenericEntityRepository.SaveChanges() at Aseinfo.Infrastructure.Base.Entity.EntityServiceBase`2.SaveChanges() at Aseinfo.VH4.Salarios.Services.OtroDescuentoService.FinalizaProcesamientoEntidad(EntityObject entity) at Aseinfo.Infrastructure.Base.Entity.EntityServiceBase`2.FinalizaProcesamientoEntidad(IDictionary`2 entityKeyValues) at Aseinfo.VH4.WindowsServices.ApplicationJobs.AccionFinalizacionJob.Execute(JobExecutionContext context)

Cuando se reintenta la ejecución ya se ejecuta correctamente y cambia el estado de la entidad

asked 18 Jul '13, 00:07

Carlos%20Soria's gravatar image

Carlos Soria ♦♦
1.2k130141148
accept rate: 60%

¿Qué versión de Evolution?

(18 Jul '13, 20:59) Fernando Paz ♦♦ Fernando%20Paz's gravatar image

La versión es la 1.7.0.1 aunque es en Perenco que tiene su propia versión

(18 Jul '13, 22:08) Carlos Soria ♦♦ Carlos%20Soria's gravatar image

Si buscas en internet mucha gente lo atribuye a que sucede un error de TimeOut pero no a nivel de SQL Server, sino que a nivel del TransactionScope en el código fuente.

El tiempo de timeout default del fuente son 10 minutos!!! O sea que algo está tardando una eternidad.

Probablemente tiene que ver con el "warm-up" del modelo Entity Framework, cuando se ejecuta por primera vez una finalización en el AppJobWinService, pero no se puede estar seguro al 100% de eso.

En la versión 1.7.2 que está próxima a salir, redujimos dicho tiempo de "warm-up" del modelo EF a un 5% del tiempo que tardaba en las versiones anteriores.

Con esto creemos que podrían reducirse la oportunidad de que sucedan excepciones de timeout en el fuente. NO así las de base de datos que pueden deberse a procedimientos, triggers o vistas que necesitan mejorar su rendimiento.

link

answered 19 Jul '13, 01:51

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

A mí me ha ocurrido también en cualquier pantalla. Ej.: en generación de planillas, autorización de alguna entidad, etc. Al volver a intentarlo inmediatamente, todo funciona bien...

(19 Jul '13, 15:20) Carlos Reyes Carlos%20Reyes's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×26
×1

Asked: 18 Jul '13, 00:07

Seen: 1,085 times

Last updated: 19 Jul '13, 15:20

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática