Error messages (In Managed Code)

0 Likes

It would be very beneficial to be able to modify/change the error messages users get for example when encountering a Validation Rule while working in an SFM, or during an operation which invokes managed (hidden) code?
In the example below (text and screenshot) the message starts with details only useful for developers, and the actual message to the user is at the very end.
We would like to think it makes more sense for it to be vice versa.
It could also be an idea to throw a separate error to the user, and the full/more extensive error into a log in the background where it could be accessed by developers/admin

SFM Error.JPG

This is the error message a user gets in one particular scenario;
(1. section automatically created by ServiceMax)

SVMXC_AfterInsertUpdateDelete_WorkDetails: execution of AfterInsert caused by: System.DmlException: Upsert failed. First exception on row 0; first error:

(2nd. section - error message defined in the Validation rule by system administrator)

FIELD_CUSTOM_VALIDATION_EXCEPTION, You cannot change/add time entries for timesheets which are not open. Please contact back office if you need help.: [] ()

What is the underlying problem do you intend to solve with this idea?
To make error messages easier to read and understand for users
How is the problem being addressed today, if at all?
N/A
Product Area?
General
What version of ServiceMax are you on?
20.1