We have a custom entity called case history which has a N:1 relationship with Case (incident). The relationship behavior is set to Configurable with Delete set to 'RemoveLink'. But when we delete a case, irrespective of whether it has associated case history records or not, we get an 'SQL error'. When we turn on tracing we see this error:
The DELETE statement conflicted with the REFERENCE constraint "xxx_incident_xxx_casehistory_IncidentId". (xxx = solution prefix)
We even tried changing the relationship type to Parental so that case history gets deleted with case, but we still get the same error. Anybody seen this before or have a solution?