[Pattern\Docker] Docker pattern fails with error JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-set cmdb_ci_docker_container' DescriptionDocker Pattern fails in the step "set cmdb_ci_docker_container" with the below error, though it succeeds during Pattern debug. set cmdb_ci_docker_container2020-10-07 09:09:12: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-set cmdb_ci_docker_container' at line 31: var rtrn = '';2: var full_image_id = inspected_containers___full_image_id;==> 3: rtrn = full_image_id.substring(7, 19); // indexes (left inclusive, right exclusive). JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-set cmdb_ci_docker_container' at line 31: var rtrn = '';2: var full_image_id = inspected_containers___full_image_id;==> 3: rtrn = full_image_id.substring(7, 19); // indexes (left inclusive, right exclusive) Cause: At the step "46. set cmdb_ci_docker_container" where we set image_id column based on the eval script, the script takes substring from index 7 to 19 [full_image_id.substring(7, 19)] and column "full_image_id" has empty records. Due to which it throws error "JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-set cmdb_ci_docker_container' at line 3"Steps to Reproduce Login to affected instanceQuick discovery towards the CI and the Docker Pattern fails with the below error, "Identification sections in pattern failed: section: identification_for_docker, error: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-set cmdb_ci_docker_container' ....WorkaroundThis problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available. As a workaround to resolve the issue apply the update set (sa_pattern_dd15665a7fe022004e83e2065f2a0c57.xml) attached which has added with a step "45. Filter image_id if empty" to filter out the empty records.Once applied, sync the pattern with the MID server and rerun discovery towards the Docker CI to validate the results. Related Problem: PRB1440089