What does this error message mean? java.lang.NullPointerException Caused by error in Schedule Item: 'Workflow Nudger' at line -1

tamarasylte
Mega Expert

I have been seen this message intermittently in the logs, but it doesn't seem to be connected to any particular action I take. I'm debugging a custom script for Change and can share details if that would help.

Has anyone seen this or do you know what it means?

More of the stack trace:

1 ACCEPTED SOLUTION

manikorada
ServiceNow Employee
ServiceNow Employee

Tamara,



- When you clone the instance the "wf_command" table being cloned but "wf_context" isn't cloned by default.


So, when the "Workflow Nudger" runs, it will throw a NullPointerException in the logs, because a command is queued for a workflow that does not exist.



You can resolve the issue by following below steps:



- Please delete all the records in https://<<instance_name>>.service-now.com/wf_command_list.do?sysparm_query=contextISNOTEMPTY%5Econtext.nameISEMPTY


Once these records are deleted you won't get those errors.



- To avoid this in future occurrences, on your source instance, Add wf_command table to the list of exclude tables for clones.


View solution in original post

2 REPLIES 2

manikorada
ServiceNow Employee
ServiceNow Employee

Tamara,



- When you clone the instance the "wf_command" table being cloned but "wf_context" isn't cloned by default.


So, when the "Workflow Nudger" runs, it will throw a NullPointerException in the logs, because a command is queued for a workflow that does not exist.



You can resolve the issue by following below steps:



- Please delete all the records in https://<<instance_name>>.service-now.com/wf_command_list.do?sysparm_query=contextISNOTEMPTY%5Econtext.nameISEMPTY


Once these records are deleted you won't get those errors.



- To avoid this in future occurrences, on your source instance, Add wf_command table to the list of exclude tables for clones.


Thanks for the reply! I looked at the query you suggested but found no records. Both tables are in the System Clone exclude tables as well. Do you know if there could be any other factors causing the error?



Thanks again,


Tamara