A MaxValidDays is defined on the AccProduct.
The product is ordered and approved, ValidUntil is automatically set to the date which corresponds to the maximum allowed time.
Before the ValidUntil expires, an extension is requested and approved.
Before the expiration of the new ValidUntil an unsubscribe is made, in ValidUntilUnsubscribe a date is defined which is BEFORE the ValidUntil.
The Error occur during this process:
Sample steps to reproduce:
1. Order Product on 1/1/2020 with maxValidDays of 180 days
* DateActivated = 1/1/2020
* ValidUntil = DateActivated + maxValidDays (180) = 7/29/2020
2. On 7/28/2020 made a prolongation of the product
* DateActivated still 1/1/2020
* ValidUntil = 7/28/2020 + maxValidDays = 12/30/2020
3. Today (12/23/2020) unsubscribe the product with unsubscriptionDate 12/25/2020
ERROR: Because the unsubscriptionDate could be max DateActivated + maxValidDays = 7/29/2020
...
[810306] Error during execution of 'CheckValues' in logic module 'QER.Customizer.PersonWantsOrg'.
at VI.DB.Entities.PermissionsEntityColumnBase.d__19.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.InteractiveColumn.d__26.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.EntityLogicOperations.d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.CombinedEntityLogic.d__20.MoveNext()
[2133126] Value 'ValidUntilUnsubscribe' must be less than '1/3/2021 10:34:50 AM'.
at VI.DB.Entities.CombinedEntityLogic.d__20.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.StateLessEntityLogic.d__65.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at QER.Customizer.PersonWantsOrg.<_Check_ValidUntilUnsubscribe>d__96.MoveNext()
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center