edge-sync-service icon indicating copy to clipboard operation
edge-sync-service copied to clipboard

Bug: Failed to create index when it exists

Open LiilyZhang opened this issue 5 months ago • 0 comments

CSS Failed to create syncObjects-destination-policy.services.service-id index in MongoDB if it already exists

CSS: 2024/09/06 14:09:42 ERROR: Failed to create an index on syncObjects. Error: (IndexKeySpecsConflict) An existing index has the same name as the requested index. When index names are not specified, they are auto generated and can cause conflicts. Please refer to our documentation. Requested index: { v: 2, unique: true, key: { metadata.destination-org-id: -1, metadata.destination-policy.services.org-id: -1, metadata.destination-policy.services.service-name: -1 }, name: "syncObjects-destination-policy.services.service-id" }, existing index: { v: 2, key: { metadata.destination-org-id: 1, metadata.destination-policy.services.org-id: 1, metadata.destination-policy.services.service-name: 1 }, name: "syncObjects-destination-policy.services.service-id", sparse: true }

LiilyZhang avatar Sep 06 '24 19:09 LiilyZhang