Metadata Storage Error Codes

This topic lists the custom error codes that are returned by functions and methods in the metadata storage service API.

Error Codes

Error code

Description

SYNC_E_METADATA_REPLICA_NOT_FOUND

No metadata exists for the specified replica ID.

SYNC_E_METADATA_REPLICA_ALREADY_EXISTS

The metadata already contains metadata for the specified replica.

SYNC_E_METADATA_REPLICA_IN_USE

Only one active instance of an IReplicaMetadata object can exist for each replica ID. Applications can access the same IReplicaMetadata object from multiple threads, but multiple processes cannot concurrently access the same replica metadata.

SYNC_E_METADATA_ITEM_NOT_FOUND

An item with the specified ID or custom field value cannot be found.

SYNC_E_METADATA_PRIMARY_KEY_CONSTRAINT

The specified item ID is invalid or already exists in the metadata store.

SYNC_E_METADATA_FIELD_INVALID_NAME

The named custom field does not exist.

SYNC_E_METADATA_FIELD_INVALID_TYPE

The custom field is not of the type specified.

SYNC_E_METADATA_STORAGE_ENGINE_ERROR

An operation on the metadata storage engine failed.

SYNC_E_METADATA_STORE_CORRUPT

The metadata store is corrupted.

SYNC_E_METADATA_QUERY_REQUIRES_INDEXED_FIELDS

The specified field names are not defined as an index.

SYNC_E_METADATA_QUERY_REQUIRES_UNIQUE_INDEXED_FIELDS

The specified field names are not defined as a unique index.

SYNC_E_METADATA_ACTIVE_TRANSACTION_REQUIRED

The operation requires an active transaction.

SYNC_E_METADATA_STORE_VERSION_MISMATCH

The version of the metadata stored is not supported. An example of this situation is when a version of the metadata storage service is used to create replica metadata, and then an earlier version of the metadata storage service tries to access the replica metadata.

SYNC_E_METADATA_OPERATION_NOT_ALLOWED_WITH_UNCOMMITTED_CHANGES

The operation failed because the replica metadata contains uncommitted changes.

SYNC_E_METADATA_INVALID_OPERATION

The operation is not valid given the current state of the object.

SYNC_E_METADATA_STORE_DESERIALIZATION_ERROR

The deserialization operation from a canonical format file failed because the file data does not conform to the published file format.

SYNC_E_METADATA_PROVIDERS_HAVE_NO_COMMON_CHANGE_UNITS

The metadata store detected no change units in common in the providers being synchronized.

SYNC_E_METADATA_STORE_DESERIALIZATION_PROVIDER_VERSION_MISMATCH

The provider compatibility version that is specified for the dwExpectedProviderCompatibilityVersion parameter of ISyncMetadataStoreSerializer::DeserializeReplicaMetadata does not match the version that is specified in the canonical metadata file.

SYNC_E_METADATA_ITEM_DOES_NOT_HAVE_VERSION

The metadata store requires that an item have a creation version and either a change or a change unit version.

SYNC_E_METADATA_MORE_THAN_ONE_REPLICA_IN_STORE

The metadata store requires that there be exactly one replica in the store to use this method.

Requirements

Header: Metastoreerrors.h

See Also

Concepts

Sync Framework Metadata Storage Service Components