Copied to clipboard

Flag this post as spam?

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


  • Kristian Andersen 8 posts 99 karma points
    Sep 04, 2017 @ 09:23
    Kristian Andersen
    0

    MediaService change content type

    I have updated umbraco from 7.3.5 to 7.5.11. Now this piece of code does not work

    mediaItem.ChangeContentType(projectImageMediaType, true); mediaService.Save(mediaItem);

    When saving, umbraco errors:

    "Cannot insert duplicate key row in object 'dbo.cmsPropertyData' with unique index 'IX_cmsPropertyData_1'. The duplicate key value is (19702, e3767eac-785e-442d-95bc-890696c6df37, 6).\r\nThe statement has been terminated."
    
Please Sign in or register to post replies

Write your reply to:

Draft