TaskStateUtil does not evaluate "active" correctly on insertDescriptionTaskStateUtil does not evaluate "active" correctly on insert. The business rule Task Active State Management triggers the script include TaskStateUtil, but on insert this script fails.The Task Active State Management business rule contains: //set record to inactive (close) if we move from an active state to an inactive state if (!previousStateInactive && currentStateInactive && current.active) { current.active = false; gs.print(current.getDisplayValue() + ": State changed (" + previous.state.getDisplayValue() + "->" + current.state.getDisplayValue() + "), setting task to inactive"); } The rule compares the previous and current state values. If the state changes from an active state to an inactive state, the active field is set to false. Because the business rule calls this script before the task is created, the script include TaskStateUtil exits on the initialize function (line 36) when creating a new task: initialize : function(/*GlideRecord*/ task) { this.task = task; if (!task || !task.isValidRecord()) return; As a result, the value "closeStates" in business rule Task Active State Management is undefined and the script of this business rule exits on line 17: //see if we have at least the close state attribute if (closeStates == null) return; Steps to Reproduce Create a new table extension from task by navigating to System Definition -> Tables. Click New. Add a state value on that table > 10. Go to the form view of the new table. Right click on the State field. Click Show Choice List. Add a dictionary override on the task State field. Navigate to System Definition -> Dictionary. Search for "Table is Task" and "Column name = state" OR nav_to.do?uri=sys_dictionary.do?sys_id=9fe7e5519f1202008f97b89a442e706c. Click the Advanced view related link. Add close_states=12 to the Attributes field. Override attributes and give it a value of close_states=12. Create a new task on table from #1, Set the state to your new closed value (#2). Click Save. Active is still true. Create a new task. Click Save. Change the state value to the value in #2. Save again.Active is now false. Workaround Navigate to System Definition > Script Includes. Open the TaskStateUtil script include. Change the following code in the initialize method: if (!task || !task.isValidRecord()) To: if ((!task || !task.isValidRecord()) && (!task.isNewRecord())) Note: Remove updates from the sys_update_xml table for the script include to keep receiving updates from ServiceNow: sys_update_xml_list.do?sysparm_query=name%3Dsys_script_include_96e1ade7c0a80a6d381ba0c6aeb4ad61Related Problem: PRB587123