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.
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?
is working on a reply...