How can we disable the error Invalid value on Update?

e_wilber
Tera Guru

For whatever reason, we're getting the following error after clicking a UI action even though the UI action is successful in setting all of the field values correctly. Since there really isn't an error, is there a line of code I can add to this to clear this type of alert message for this UI action?

find_real_file.png

7 REPLIES 7

Matt102
Giga Guru

Hi,

Just a thought.

I recieved a similar message on UI Action click, in Workspace.

I thought it was my update in the UI Action, it wasn't, I was impersonating a user that didn't have write rights to the table.

atb,matt

Abhijit4
Mega Sage

Hi,

You don't need to glide into table again, please use below script in before BR,

(function executeRule(current, previous /*null when async*/) {
current.sys_class_name = current.u_convert_case_to;
current.setWorkflow(false);
}

In case if you want to use after/asynch BR then add current.update() line at the end.

since we are trying to use current.setWorkflow(false), I would suggest to use After/Asynch BR with higher order as it may stop notifications or other BR from executing.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Vasu ch
Kilo Sage

Hey @e.wilber , did you find the solution?