Copied to clipboard

Flag this post as spam?

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


  • TomNieuwenhuis 1 post 71 karma points
    Feb 09, 2017 @ 13:37
    TomNieuwenhuis
    0

    Delete an item in the content tree - error 500

    Hi,

    Due to some changes in properties (text field to radio, string to int etc), we are unable to delete some of the 'older' items inside the content tree. These items are no longer of any use (they have been used during testing and development), so they may be forced to be deleted as far as I'm concerned.

    Right now, I receive an error 500:

    EXCEPTION DETAILS:
    
    System.InvalidOperationException: Value "Quarterly in advance." of type "System.String" could not be converted to type "System.Int32" which is expected by property type "rentalPayment".
    STACKTRACE:
    
    at Umbraco.Core.Models.Property.ThrowTypeException(Object value, Type expected, String alias)
       at Umbraco.Core.Models.Property.set_Value(Object value)
       at Umbraco.Core.Persistence.Factories.PropertyFactory.BuildEntity(PropertyDataDto[] dtos)
       at Umbraco.Core.Persistence.Repositories.VersionableRepositoryBase`2.GetPropertyCollection(Sql docSql, IEnumerable`1 documentDefs)
       at Umbraco.Core.Persistence.Repositories.ContentRepository.CreateContentFromDto(DocumentDto dto, Guid versionId, Sql docSql)
       at Umbraco.Core.Persistence.Repositories.ContentRepository.PerformGet(Int32 id)
       at Umbraco.Core.Cache.DefaultRepositoryCachePolicy`2.Get(TId id, Func`2 getFromRepo)
       at Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id)
       at Umbraco.Core.Services.ContentService.GetById(Int32 id)
       at Umbraco.Web.Editors.ContentController.CheckPermissions(IDictionary`2 storage, IUser user, IUserService userService, IContentService contentService, Int32 nodeId, Char[] permissionsToCheck, IContent contentItem)
    

    Is there any way to tell Umbraco that I don't care about the item any more, and thus it might safely be deleted?

  • 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