none
DuplicateItemInMetadataStoreException when the local metadata store is lost RRS feed

  • Question

  • I have created a custom simple provider to sync remote file items. But I get an error when the local metadata file is lost (deleted by me :) ), when the FileSyncProvider hits one of the files that already exists in the remote store.

    "DuplicateItemInMetadataStoreException: The simple provider found an item in the metadata store with the same identity fields as the current item."

    I guess this happens because the local FileSyncProvider id for the item it's trying to sync already is in the remote location?

    The identity of remote items is the relative path, it looks like this.

    "folder\subfolder\file1.txt"

    The FileSyncProvider must be creating an item with an id that is similar?

    Is the only resolution just to make sure my remote items id's are not like the local ones?

    -- 
    Christian

    Wednesday, February 9, 2011 8:03 PM

Answers

  • It seems like the metadata store gets rebuilt, but then because your filesyncprovider is sending all files again you need to handle in your simple provider the case that these files exist on the simple provider side store.
    This posting is provided AS IS with no warranties, and confers no rights
    Wednesday, February 23, 2011 1:08 AM