BookmarkSubscribeRSS Feed
Maayan_Oscar
Obsidian | Level 7

Hi,

 

Is there a nicer way to convey messages to the user due to errors that arise during a workflow run? For example, doing some data validation on fields.

Currently we are getting errors like this when using the JavaScript throw statement:

Maayan_Oscar_0-1779170859782.png

which are not user-friendly.

 

Is there a better way to handle this need (do complex data validation that can't be done using the field conditions or other logic in a workflow)?

2 REPLIES 2
RickMatthews
SAS Employee

Hi @Maayan_Oscar,

Please open a Tech Support ticket if you need assistance debugging the Script Task. Also, see Script Task in our online doc for discussions/suggestions on debugging Java Script. To your point, since this is a Java Script runtime error - that a typical enduser can do nothing about, we should handle with a standard 'server side error contact admin' type of message. 
Thanks,  

 Rick

Rick Matthews
Senior Software Manager • Fraud and Security Intelligence
Tel: + 1 919 531 6945 • Mobile: + 1 919 995 3599 • Rick.Matthews@sas.com
Cary World Headquarters • 100 SAS Campus Drive • Cary, NC, 27513
www.sas.com/
SAS® … THE POWER TO KNOW®
Maayan_Oscar
Obsidian | Level 7

Hi @RickMatthews ,

Thank you for your response.

 

The JavaScript throw approach is currently just the workaround we found, mainly because I could not find another way to display a custom validation message to the user during workflow execution.

What we are actually trying to achieve is a user-friendly validation message, rather than exposing a technical runtime error.

 

Is there any supported or recommended way in SAS VI LEI to display such messages to the user and stop the workflow execution when validation fails?

 

Thanks!