Copied to clipboard

Flag this post as spam?

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


  • Remko 118 posts 283 karma points
    Aug 30, 2019 @ 14:53
    Remko
    0

    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 118 posts 283 karma points
    Sep 02, 2019 @ 07:39
    Remko
    0

    I've created issue in umbraco bug tracker for this now: https://github.com/umbraco/Umbraco-CMS/issues/6259

Please Sign in or register to post replies

Write your reply to:

Draft