Compañeros,

Tengo el siguiente inconveniente en la version 1.11.1.2 cuando Evolution trata de cargar el detalle de los empleados en el plan de vacaciones:

System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime. at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day) at Aseinfo.VH4.Acciones.Controllers.PlanAnualVacacionController.<>c__DisplayClass49_0.<GenerarListadoDeDiasAsignadosParaGrid>b__2(DiasAsignadosEmpleadoViewModel asignacion) in C:h4VH4AccionesControllersPlanAnualVacacionController.cs:line 938 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Aseinfo.VH4.Acciones.Controllers.PlanAnualVacacionController.GenerarListadoDeDiasAsignadosParaGrid(List`1 asignaciones, Int32 anio, Nullable`1 codigoEmpleoSolicita, Boolean esPortal) in C:h4VH4AccionesControllersPlanAnualVacacionController.cs:line 928 at Aseinfo.VH4.Acciones.Controllers.PlanAnualVacacionController.ObtenerListadoEmpleados(List`1 asignaciones, Int32 anio) in C:h4VH4AccionesControllersPlanAnualVacacionController.cs:line 538 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.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)

Pude determinar que el inconveniente es porque existe personal con fecha de ingreso 29/02/2016 y cuando trata de hacer la fecha de aniversario da el error arriba indicado.

Como puedo solucionar este inconveniente?.

asked 24 Jul '18, 10:34

Josue%20Mancilla's gravatar image

Josue Mancilla
(suspended)
accept rate: 42%

En el campo Año que valor le estás colocando?

(24 Jul '18, 10:51) glemus glemus's gravatar image

estoy colocando 2018

(24 Jul '18, 10:52) Josue Mancilla Josue%20Mancilla's gravatar image

El problema es porque el sistema calcula su fecha de aniversario como la fecha que ingresó pero con año diferente. Evidentemente en este caso el 29 de febrero solo se repetirá cada cuatro años. Cual debería de ser su fecha de aniversario ? 28 de febrero o 1 de marzo ?

link

answered 24 Jul '18, 11:05

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

Debería de colocar 1 de marzo en este caso.

(27 Jul '18, 12:56) 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:

×49
×7
×1

Asked: 24 Jul '18, 10:34

Seen: 662 times

Last updated: 27 Jul '18, 12:56

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