Se creó una entidad adicional para que insertara los registros directo a una tabla en la versión 1.10.0.2, se puede ingresar a crear un registro, pero al momento de editar lanza el siguiente mensaje:

System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
  --- End of inner exception stack trace ---
 at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
 at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
--- End of inner exception stack trace ---
at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Aseinfo.VH4.Solicitudes.Controllers.InstanciaEntidadAdicionalController.ValidarEntidadParaAcceso(InstanciaEntidadAdicional entity, Boolean retornarPartialView) in c:\BuildAgent\work\89066541112bb801\VH4\Solicitudes\Controllers\InstanciaEntidadAdicionalController.cs:line 1018
at Aseinfo.VH4.Solicitudes.Controllers.InstanciaEntidadAdicionalController.Edit(Int32 id, String tipo) in c:\BuildAgent\work\89066541112bb801\VH4\Solicitudes\Controllers\InstanciaEntidadAdicionalController.cs:line 498
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

asked 04 Jul '16, 16:05

Josue%20Mancilla's gravatar image

Josue Mancilla
(suspended)
accept rate: 42%

en que momento sale ese error ? cuando trata de cargar el formulario o cuando se le da al boton de guardar ?

(04 Jul '16, 17:19) sbarahona ♦♦ sbarahona's gravatar image

Cuando se trata de cargar el formulario

(04 Jul '16, 17:23) Josue Mancilla Josue%20Mancilla's gravatar image

Encontré el inconveniente, y era dado a que la entidad adicional tenia modo de seguridad de listas de "Portal" definida y esto causaba el inconveniente, pues el query que realizaba tardaba al rededor de 1 min para devolver un empleado, por lo tanto solo le cambie el modo de seguridad de listas a "Contenido"

link

answered 06 Jul '16, 08:09

Josue%20Mancilla's gravatar image

Josue Mancilla
(suspended)
accept rate: 42%

El procedimiento que lee de la tabla fisica debe de tener este formato

CREATE PROCEDURE [NombreProcedimiento](
    @codiea int -- Código de Instancia Entidad Adicional
    )
AS
BEGIN
    /*
     * Debe retornar todos los campos fijos de la Entidad Adicional
     * y un XML con la información de los campos de Formulario Dinámico
     */
    select [TABLACATALOGO].CodigoEmpleadoSujeto iea_codemp_sujeto, 
           [TABLACATALOGO].CodigoEmpleadoSolicitante iea_codemp_solicitante,
           [TABLACATALOGO].FechaInicial iea_fecha_inicial, 
           [TABLACATALOGO].FechaFinal iea_fecha_final,
           [TABLACATALOGO].ComentariosPrueba iea_comentarios,
           '<DocumentElement>
             <ABREVIATURA_ENTIDAD_ADICIONAL>
              <FieldnameCampo1>' + "TABLACATALOGO".CampoFormulario1 + '</FieldnameCampo1>
              <FieldnameCampo2>' + "TABLACATALOGO".CampoFormulario2 + '</FieldnameCampo2>
             </ABREVIATURA_ENTIDAD_ADICIONAL>
           </DocumentElement>' iea_data_formulario
      from [TABLACATALOGO]
     where [TABLACATALOGO].codiea = codiea;
END;

Si utilizas un formato diferente (como gen.get_pb_field_data) la consulta puede tardarse demasiado

link

answered 04 Jul '16, 17:56

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

De hecho mi estimado, si se encuentra asi el procedimiento como lo pones en el ejemplo y no con la funcion gen.get_pb_field_data

(06 Jul '16, 07:21) Josue Mancilla Josue%20Mancilla'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:

×32
×4

Asked: 04 Jul '16, 16:05

Seen: 992 times

Last updated: 06 Jul '16, 12:12

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