Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    May 17, 2019 @ 06:17
    Tom
    0

    "An item with the same key has already been added." - ServiceContext.ContentTypeService.GetContentType

    Hi I'm using the API for migrations and as part of a migration I call:

    return ServiceContext.ContentTypeService.GetContentType(docTypeAlias);
    

    Occasionally that will just blow up with "An item with the same key has already been added."

    I was just wondering if theres a way to check if that has been retrieved before and if so retrieve a refreshed copy from the db?

    As in some instances adding property types and then adding values to those and the property types don't exist

Please Sign in or register to post replies

Write your reply to:

Draft