Client script not working randomly

Ramkrishna Bhat
Tera Contributor

Hello All,

 

BACKGROUND:

I have a record producer on sn_hr_le_case table. In this record producer, there are 2 variables say 'Var1' and 'Var2'.

Var1 is a reference field and Var2 is a read-only string field which is auto-populated based on the value selected in Var1. This achieved using an onChange Catalog Client Script on Var1 which uses the GlideAJAX to get value of Var2 using Var1 from a custom Data table.

 

ISSUE;

This setup is working correctly for most of the cases however sometimes rarely (roughly1/500) the Var2 is not populated and the HR Case is submitted with empty Var2. 

 

What could be the possible reasons for this behavior?  This issue only occurs in prod and is not reproducible in lower environments.

 

Thanks!

 

PS I have checked the data table, the data is correct and is not updated anytime before or after the case creation

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Hard to say with that occurrence rate, unless you can reproduce it with specific user(s).  Try the variable auto-populate feature instead of a Client Script and Ajax.