Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Remko 98 posts 251 karma points
    Aug 30, 2019 @ 14:53

    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.

    Umbraco bug?

  • Remko 98 posts 251 karma points
    Sep 02, 2019 @ 07:39

    I've created issue in umbraco bug tracker for this now:

Please Sign in or register to post replies

Write your reply to: