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 Metadata Storage Service is used to create replica metadata and then a earlier version of 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. |
Requirements
Header: Metastoreerrors.h