Skip to main content


 

Symptoms


In certain scenarios it can be necessary to customize non-user-friendly error messages which users receiving when working with K2 smartforms.

Is it possible to customize/display user-friendly text for such errors and also log such errors at the same time?
 

Diagnoses


There are 2 ways of customizing error messages in K2:

1) System-wide customization by editing HostServerLogging.config. This is the only supported option for SmartForm 1.0.5 and earlier versions.
2) Error messages customization using rules configurable in rule designer. This is per-form level customization. It is available starting from SmartForms 1.0.6 and can be accomplished with use of advanced condition and environment field Error Message or condition when error occurs (Error Handling > Error occurred).

Currently there are no supported options to customize error messages not listed in HostServerLogging.config system-wide, they can be customized on a per-form level using form rules.

Some of those errors are being logged in the HostServerLog:


{0} from {1} is not allowed to open the worklist item with SN={2}



{0} from {1} does not have rights to Start Process {2}


There is an existing feature request to add capability to perform system-wide customization of error messages not listed in HostServerLogging.config as well as add logging for those errors.
 

Resolution

Currently supported ways of error messages customization described above. To add capability to do a system-wide customization of errors not listed in HostServerLogging.config there is an existing feature request with no ETA for implementation defined at the moment.




 
Be the first to reply!

Reply