Copied to clipboard

Flag this post as spam?

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


  • Rotem Orbach 121 posts 607 karma points
    Nov 11, 2020 @ 09:15
    Rotem Orbach
    0

    Umbraco 7.13.2 - Error when saving member

    Hi all,

    I added new fields to the Member doctype. After I added those fields, every existing member that I had couldn't be updated. I received the following exception:

    Cannot insert duplicate key row in object 'dbo.cmsPropertyData' with unique index 'IXcmsPropertyData1'. The duplicate key value is (418773, 6f45a52c-2a9a-4d54-8981-846ce96c32c9, 920). The statement has been terminated.

    Exception Details System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object 'dbo.cmsPropertyData' with unique index 'IXcmsPropertyData1'. The duplicate key value is (418773, 6f45a52c-2a9a-4d54-8981-846ce96c32c9, 920). The statement has been terminated.

    I know for sure that if I create a new member after I created those new parameters, everything works for that specific member, but I cannot save old members that were created BEFORE adding those parameters,

    Another hint: in the CmsPropertyData table, for the specifice versionID that appeared in the exception details (418773, 6f45a52c-2a9a-4d54-8981-846ce96c32c9) the field propertytypeid with a value of 920 did not gave me any results, so I infer that from some reason, on old users, the newly created fields data is not inserted to the DB.

    Any help will be highly appreciated.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft