Skip to main content

Error: 'The DELETE statement conflicted with the SAME TABLE REFERENCE constraint ELEM_YR_COST_ELE_YEAR_COST_FK'

In this article, we explain the error when completing a purchase workstep using the green tick and how to resolve it.

Y
Written by Yusef Abulaynain
Updated over 4 months ago

This is a known issue, but there's a workaround.

Workaround

To work around it, follow these steps:

  1. Remove any changes you made.

  2. Save the step.

  3. Reapply the changes.

Error Log

You'll see the error profile in the logs. If you take your error ID into Configuration Tools and click the Error Log button, youโ€™ll see the full stack trace. Here's the key line to look out for:

'Cause: java.sql.SQLException: The DELETE statement conflicted with the SAME TABLE REFERENCE constraint "ELEM_YR_COST_ELE_YEAR_COST_FK". The conflict occurred in database "moslive", table "dbo.ELEMENT_YEAR_COSTS", column 'ELEMENT_YEAR_COST_ID'

Did this answer your question?