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

Error code value

SYNC_E_METADATA_REPLICA_NOT_FOUND

No metadata exists for the specified replica ID.

0x80041280

SYNC_E_METADATA_REPLICA_ALREADY_EXISTS

The metadata already contains metadata for the specified replica.

0x80041281

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.

0x80041282

SYNC_E_METADATA_ITEM_NOT_FOUND

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

0x80041284

SYNC_E_METADATA_PRIMARY_KEY_CONSTRAINT

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

0x80041285

SYNC_E_METADATA_FIELD_INVALID_NAME

The named custom field does not exist.

0x80041286

SYNC_E_METADATA_FIELD_INVALID_TYPE

The custom field is not of the type specified.

0x80041287

SYNC_E_METADATA_STORAGE_ENGINE_ERROR

An operation on the metadata storage engine failed.

0x80041288

SYNC_E_METADATA_STORE_CORRUPT

The metadata store is corrupted.

0x80041289

SYNC_E_METADATA_QUERY_REQUIRES_INDEXED_FIELDS

The specified field names are not defined as an index.

0x80041290

SYNC_E_METADATA_QUERY_REQUIRES_UNIQUE_INDEXED_FIELDS

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

0x80041291

SYNC_E_METADATA_ACTIVE_TRANSACTION_REQUIRED

The operation requires an active transaction.

0x80041292

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.

0x80041293

SYNC_E_METADATA_OPERATION_NOT_ALLOWED_WITH_UNCOMMITTED_CHANGES

The operation failed because the replica metadata contains uncommitted changes.

0x80041294

SYNC_E_METADATA_INVALID_OPERATION

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

0x80041295

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.

0x80041296

SYNC_E_METADATA_PROVIDERS_HAVE_NO_COMMON_CHANGE_UNITS

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

0x80041297

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.

0x80041298

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.

0x80041299

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.

0x80041300

Requirements

Header: Metastoreerrors.h

See Also

Concepts

Sync Framework Metadata Storage Service Components