Evolution 1.10.1.0
SQL Server

El Cliente está utilizando la versión de OmniExpediente, y al ingresar a la sección Forma de Pago de un expediente cualquiera, generaba el error "La lista de valores TiposCuentaBancoExpediente no está registrada para el controller Aseinfo.VH4.Expedientes.Controller.OmniExpedienteController", por lo que procedí a asociar la lista de valores al OmniExpediente.

Ahora ingreso a la sección Forma de Pago de cualquier expediente, y obtengo el mensaje de error "Object reference not set to an instance of an object. at Aseinfo.VH4.Expedientes.Controllers.OmniExpedienteController".

¿A qué podría deberse el error? ¿Qué configuración puedo aplicar para resolver?

Este error ocurre solamente cuando el OmniExpediente no tiene asociada una forma de pago.

El error registrado en el ELMAH es el siguiente:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Aseinfo.VH4.Expedientes.Controllers.OmniExpedienteController.<>cDisplayClass47_0.<crearviewdataformapagoempleo>b1(ValueListItem e) in C:worka3e0cbded2a6d4b3VH4ExpedientesControllersOmniExpedienteController.cs:line 890
   at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()
   at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
   at Aseinfo.VH4.Expedientes.Controllers.OmniExpedienteController.CrearViewDataFormaPagoEmpleo(Nullable1 codigoFormaPago, Nullable1 codigoBanco, String codigoMoneda, CuentaBancoExpediente cuentaBancoExpediente) in C:worka3e0cbded2a6d4b3VH4ExpedientesControllersOmniExpedienteController.cs:line 888
   at Aseinfo.VH4.Expedientes.Controllers.OmniExpedienteController.CrearViewDataFormaPagoEmpleo(FormaPagoEmpleo formaPagoEmpleo, CuentaBancoExpediente cuentaBancoExpediente) in C:worka3e0cbded2a6d4b3VH4ExpedientesControllersOmniExpedienteController.cs:line 864
   at Aseinfo.VH4.Expedientes.Controllers.OmniExpedienteController.EditFormaPago(Int32 id) in C:worka3e0cbded2a6d4b3VH4ExpedientesControllersOmniExpedienteController.cs:line 750
   at Aseinfo.VH4.Expedientes.Controllers.OmniExpedienteController.CreateFormaPago(Int32 id) in C:worka3e0cbded2a6d4b3VH4ExpedientesControllersOmniExpedienteController.cs:line 695
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<begininvokesynchronousactionmethod>b39(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>b3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<invokeactionmethodfilterasynchronouslyrecursive>b3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<invokeactionmethodfilterasynchronouslyrecursive>b3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<invokeactionmethodfilterasynchronouslyrecursive>b3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<invokeactionmethodfilterasynchronouslyrecursive>b3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass21.<>cDisplayClass2b.<begininvokeaction>b1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass21.<begininvokeaction>b__1e(IAsyncResult asyncResult)

La siguiente imagen muestra la configuración de la lista de valores:

[1]: https://qa.aseinfo.net/osqa/upfiles/TiposCuentaBancoExpediente.png

asked 19 May '17, 09:17

Henry%20Sandoval's gravatar image

Henry Sandoval
(suspended)
accept rate: 53%

edited 22 May '17, 12:30


Se creo un issue para resolver este caso. Ya esta disponible en la versión 1.11

link

answered 27 Jun '17, 13:45

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

Este es el contenido de la lista de valores que espera el código fuente.

<List><Unbound>
    <Item><ID>A</ID><Description>{TipoA, CuentaBancoExpediente}</Description></Item>
    <Item><ID>C</ID><Description>{TipoC, CuentaBancoExpediente}</Description></Item>
</Unbound></List>

¿La lista que tiene configurado el Evolution en ese cliente es cómo ésta?

link

answered 22 May '17, 09:19

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

He actualizado mi pregunta adjuntando imagen de la configuración de la lista de valores, y coincide con la indicada en la respuesta. Lo que puedo notar es que el error ocurre cuando el OmniExpediente no tiene una forma de pago asociada.

(22 May '17, 12:31) Henry Sandoval Henry%20Sandoval's gravatar image

Buen día, por favor comentenme si puedo aportar más a esta pregunta para aclarar sus dudas, ya que el usuario aún no puede asociar la forma de pago a un nuevo OmniExpediente.

(02 Jun '17, 12:48) Henry Sandoval Henry%20Sandoval'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:

×8
×4

Asked: 19 May '17, 09:17

Seen: 816 times

Last updated: 27 Jun '17, 13:45

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