In Angular WebPortal, error messages are not shown if a validation script's ViException affects a Multiline request property.
Dim username = Convert.ToString(Value)
If Not String.IsNullOrWhiteSpace(username) Then
If username.Length > 2 Then
Throw New ViException(#LD("'{0}' is over allowed max length.", username)#, ExceptionRelevance.EndUser)
End If
End If
-> in API server's losg the error is visible (expected and correct):
2025-06-13 13:43:28.3494 ERROR ( WebLog dhcc0smzaydhb1sqv2hx32ko) : An error occurred while processing the request: PUT https://example.com/APIServer/portal/cartitem/interactive System.Exception: An error occurred while processing the request: PUT https://example.com/APIServer/portal/cartitem/interactive ---> VI.Base.ViException: Error running script 'Valid_9c7c3770_a162_4099_9ba6_d16ce1216265'. ---> VI.Base.ViException: 'A12' is over allowed max length.
This behavior is due product defect number 496025, ViException is thrown on a multiline property in a validation script
WORKAROUND:
None
STATUS:
This has been implemented into version 10.0 LTS. If on an older version of the product and impacted by this issue, please contact support and request a hotfix for defect number 496025.
Note: This hotfix is already included in the latest GitHub image (as of July 11th, 2025).
© 2026 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center