Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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."
is working on a reply...
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.
Continue discussion
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:
is working on a reply...
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.