Copied to clipboard

Flag this post as spam?

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


  • seno 2 posts 22 karma points
    Jul 02, 2013 @ 17:01
    seno
    0

    ContentService.DeleteVersions bug?

    Hi all,

    I use umbraco v6.0.5 MVC. I try to delete an old version from a node, I use 'Services.ContentService.DeleteVersions(node.Id, node.Version, true)' but it return an SqlException: " column's name not valid: 'nodeId' ".
    I looked at stack trace and Umbraco.Core.Persistence.Repositories.ContentRepository
    PerformDeleteVersion(int id, Guid versionId) method, and I found an error:"Database.Delete<PropertyDataDto>("WHERE nodeId = @Id AND versionId = @VersionId", new { Id = id, VersionId = versionId });". But the cmsPropertyData contains no column with name 'nodeId', there is ContentNodeId.

    How I can delete an old version node?

     

     

  • 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.

Please Sign in or register to post replies