CAIQUM-9078: Database backups failing with "The request could not be processed. Try later." after upgrading to AIQUM 9.18P2
Issue
After upgrading to AIQUM 9.18P1 or P2, AIQUM database backups fail with the error "The request could not be processed. Try later."
The server.log shows a message like:
2026-07-01 17:00:11,034 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (task-scheduler-2) Cannot add or update a child row: a foreign key constraint fails (`ocum`.`event`, CONSTRAINT `Event_obsoleteCauseEvent_id_FK` FOREIGN KEY (`obsoleteCauseEvent_id`) REFERENCES `event` (`id`) ON DELETE SET NULL)
The ocumserver.log shows a message like:
2026-07-01 17:00:11,069 ERROR [oncommand] [task-scheduler-12] [Backup|ScheduleBackup] [c.n.d.impl.backup.BackupScheduleJob] Error occurred in Regular Backup Job:
org.springframework.dao.DataIntegrityViolationException: could not execute batch [Cannot add or update a child row: a foreign key constraint fails (`ocum`.`event`, CONSTRAINT `Event_obsoleteCauseEvent_id_FK` FOREIGN KEY (`obsoleteCauseEvent_id`) REFERENCES `event` (`id`) ON DELETE SET NULL)] [update Event set acknowledgedBy=?,acknowledgedTimestamp=?,assignedTimestamp=?,assignedTo=?,cluster_id=?,clusterNode_id=?,encodedArguments=?,impactArea=?,isChecked=?,isContinuous=?,lastObservedTime=?,maintenance=?,notesCount=?,objVersion=?,obsoleteCause=?,obsoleteCauseEncodedArguments=?,obsoleteCauseEvent_id=?,obsoleteCauseValue_id=?,obsoleteTimestamp=?,resolvedBy=?,resolvedTimestamp=?,source_id=?,source_type=?,source_fullName=?,source_resourceKey=?,source_resourceType=?,state=?,subType=?,targetId=?,targetType=?,thresholdPolicyId=?,eventTimestamp=?,uuid=?,value_id=?,vserver_id=? where id=? and objVersion=?]; SQL [update Event set acknowledgedBy=?,acknowledgedTimestamp=?,assignedTimestamp=?,assignedTo=?,cluster_id=?,clusterNode_id=?,encodedArguments=?,impactArea=?,isChecked=?,isContinuous=?,lastObservedTime=?,maintenance=?,notesCount=?,objVersion=?,obsoleteCause=?,obsoleteCauseEncodedArguments=?,obsoleteCauseEvent_id=?,obsoleteCauseValue_id=?,obsoleteTimestamp=?,resolvedBy=?,resolvedTimestamp=?,source_id=?,source_type=?,source_fullName=?,source_resourceKey=?,source_resourceType=?,state=?,subType=?,targetId=?,targetType=?,thresholdPolicyId=?,eventTimestamp=?,uuid=?,value_id=?,vserver_id=? where id=? and objVersion=?]; constraint [null]
