Removing old versions of node results in SQL exception in log
We used to do this, and still wanted to use this in u8:
var cs = Current.Services.ContentService;
cs?.DeleteVersions(id, DateTime.Now);
But this results in a SQL Exception:
System.Data.SqlClient.SqlException (0x80131904): The DELETE statement conflicted with the REFERENCE constraint "FK_umbracoDocumentVersion_umbracoContentVersion_id". The conflict occurred in database "korzo_nl", table "dbo.umbracoDocumentVersion", column 'id'.
The statement has been terminated.
Removing old versions of node results in SQL exception in log
We used to do this, and still wanted to use this in u8:
But this results in a SQL Exception:
Umbraco bug?
I've created issue in umbraco bug tracker for this now: https://github.com/umbraco/Umbraco-CMS/issues/6259
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.