Workflow activity error

SeanM1
Tera Guru

Hi all,

I am getting the below error when attempting to create any workflow activity in a new workflow:

Error MessageonSubmit script error: ReferenceError: EncryptedVariable is not defined:
function onSubmit() {
if (g_form.getViewName() != 'diagrammer')
  return;
var encryptedVariable = new EncryptedVariable($j);
return encryptedVariable.submitEncryptedInputs();
}

I've tried changing the view from Diagrammer to Default and still get the same error.

I am on Jakarta Patch 4 and working in Chrome.

This is the first workflow I have attempted to create since upgrading.

Any help would be appreciated.

Thanks

Sean

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee
5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Sean,



You may find the below thread helpful.


receiving error on activity creation in helsinki version


Thank Pradeep, that sorted me out. I'm surprised the article wasn't returned when I searched on the error.


You are very welcome Sean.



Let me know if that answered your question. If so, please mark the response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Thank you


How To Mark Answers Correct From Community Inbox


Hello Pradeep (or anyone else),

 

I have similar problem, but the linked thread is no longer available, and I couldn't find any other solution/article/etc..

I'm in Utah, and my error message looks like this:

 

onSubmit script error: ReferenceError: EncryptedVariable is not defined:
function onSubmit() {
 if (g_form.getActionName() == "sysverb_view_change") 
  return;
 
 if (g_form.getViewName() != 'diagrammer')
  return;
 
 var encryptedVariable = new EncryptedVariable($j);
 return encryptedVariable.submitEncryptedInputs();
}

 

Can you please (or anyone) help me to get through this? I can't build workflow because of this 😞

 

Thanks in advance!