since the 2020.1 release we started getting an UNE...
# suitescript
p
since the 2020.1 release we started getting an UNEXPECTED_ERROR on one of our suitelets. but only once in a while. eg. today 73 people have used it so far, 5 have gotten the error, reloaded and then it worked fine. but this comes up every day. tried to execute "as admin" but it did nothing. i know it has to do do with the serverWidget as it pahhens on either form.addSublist or serverWidget.createForm anyone else have experienced anything like it or know af a fix?
b
support case is probably your best chance
you can try sharing the code you think is causing the problem
but there isnt much to mess up on those 2 functions
p
tried adding a tab also, did nothing as expected.
var latestWoSublist = tabletForm.addSublist({ id: 'custpage_ogam_tablet_latestwo_sublist', label : 'Work Orders', tab: 'custpage_latestwo_tab', type: serverWidget.SublistType.LIST });
b
only thing that looks unusual is the ids length
but i doubt that's something that would cause an intermittent error
p
i could try shorten it, just to test it out...
p
Try checking whether the parameter lookuplabel is passed in the post parameters. If the sublist contains a list/record that has a lookup it will actually call your suitelet a second time just to get that data. This may also explain why only some users get the issue as its based on user preference.