Internal server error on creating HR profile/HR taskDescription"Internal Server Error (500)" is displayed while creating a new record in sn_hr_core_task/sn_hr_core_profile table in HR agent workspace(new). This happens only when EDM (Employee Document Management) plugin is not installedSteps to Reproduce 1. Login to instance as an agent/admin2. Access Agent Workspace for HR Case Management application3. Navigate to list HR profiles/Tasks and create a new HR profile/TaskResult: 'Internal Server Error' popup is displayed after the HR Profile creationWorkaroundProblem: getDocTypes method of script include 'hr_UIBMoveAttachmentsUtils' is accessing data from table 'sn_hr_ef_document_type'. This table is available only when EDM plugin is installed Workaround - 1. Open hr_UIBMoveAttachmentsUtils script include (/sys_script_include.do?sys_id=6a54c935eb523010887bbc584952280a)2. Add the below mentioned function and save the script getDocTypes: function(topicDetail, selectableDocTypes) { if (!GlidePluginManager.isActive('com.sn_employee_document_management')) return []; var docTypeGr = new GlideRecord("sn_hr_ef_document_type"); docTypeGr.addQuery("topic_detail", topicDetail); docTypeGr.query(); var docTypes = []; while (docTypeGr.next()) { if (selectableDocTypes.indexOf(docTypeGr.getUniqueValue()) === -1) continue; docTypes.push({ id: docTypeGr.getUniqueValue(), label: docTypeGr.getValue("name") }); } return docTypes; } This script include can be marked to be replaced on upgrade in 'sys_update_xml' table if there are no other customisations P.S. Servicenow does not recommend customisations to OOB scripts as it can cause upgrade issues.Related Problem: PRB1568299