Cmdb_health_result record references deleted CI when CMDB Remediation Rule execution is Automatic and the remediation deletes CIsIssue Cmdb_health_result record references deleted CI when CMDB Remediation Rule execution is Automatic and the remediation deletes CIsCauseHealth results reference taskThe task needs to be created first so that the cmdb_health_result.task field can be populated with the sys_id of the taskThe remediations are either triggered at the time of the creation of the task, when set to automatic, or at a later timeIf a script executed by the remediation deletes CIs, and the execution is set to automatic, then deletion will happen before the cmdb_health_result is createdFor this reason, the cascade delete configure OOB for cmdb_health_result.ci will not delete the Health ResultResolutionThe delete needs to take into account that records which point to the CI may not yet exist at this time. A couple solutions are: A scheduled job to delete cmdb_health_result records which point to deleted CIsIn the remediation flow, trigger a sysevent to be processed at a later time to only then delete the CI, or delete any health results pointing to such CI Script Actions