LE Activity Set Execution error - Wrapped org.mozilla.javascript.JavaScriptException: TypeError: Cannot set property "rootParent" of null to ""DescriptionOne of the Activity Sets in your Lifecycle Event might complete in Error. Looking at the Workflow Context related to the failing Activity Set Execution, the following error might be seen: -----------Wait to reevaluate Trigger Script(b819b98a73d51010e9b37de86cf6a75e): org.mozilla.javascript.WrappedException: Wrapped org.mozilla.javascript.JavaScriptException: TypeError: Cannot set property "rootParent" of null to "0320ec431b21bc10bd9bdc25cc4bcb81" (// Check if the trigger type is not "script (advanced)". For type script, the condition is already evaluated as false in the previous WF activity and therefore, no need to create a future to-do'// Also, check if the future-todo API is already invoked. (for trigger type 'date', this WF activity may run multiple times)try {var regId = workflow.scratchpad.registration;var trigger_type = '';var grContext = new GlideRecord('sn_hr_le_activity_set_context');if (grContext.get(regId))trigger_type = grContext.activity_set.trigger_type;if (!workflow.scratchpad.futureRecordCreated && trigger_type != "script") {// This script will create JSON representing future to-dos for the activity set which are not triggeredvar util = new sn_hr_le.hr_ActivitySet().createFutureTodos(workflow.scratchpad.registration,workflow.variables.subject_person_id);workflow.scratchpad.futureRecordCreated = true;}// Set 'answer' to the number of seconds this timer should waitanswer = new hr_ActivitySet(regId).getLoopInterval();} catch (err) {workflow.scratchpad.errMessage = err.message;workflow.scratchpad.err = err;throw err;}; line 23) (<refname>; line 273)-----------Release or EnvironmentAll releasesCause"rootParent" mentioned in the exception is used in function '_updateFutureJSON' of Script Include "hr_ActivitySet"https://instance_name.service-now.com/sys_script_include.do?sys_id=088df2fe534a22003066a5f4a11c08de Looking at the logic in this method, it is failing to create one of the Future To-Dos correctly. Check the list of Future To-Dos for the affected Activity Set / HR Case:https://instance_name.service-now.com/sn_hr_le_future_todo_list.do and check whether any of them have an empty 'Future JSON' field. The LE Activity referenced in the above Future To-Do might be pointing to an 'HR Template' that does not exist on the instance. On the UI it displays as empty while from XML you can see that its value is:<hr_template display_value="">3e426d7f1b362410309fff7e034bcb59</hr_template> The issue is that the sn_hr_core_template record with sys_id=3e426d7f1b362410309fff7e034bcb59 does not exist on the instance.ResolutionTo fix this issue, you would have to either:- Import the HR Template [sn_hr_core_template] record referenced in the 'broken' ACtivity from another instance (if you know where it was developed on and you still have it)ORUpdate the HR Template on the LE Activity pointing to an HR Template that exists on the instance.