Windows Sync Error Codes

This topic lists error codes that are defined by Windows Sync. Windows Sync uses the standard IErrorInfo mechanism to report the error description and the source of the failure.

Error Code Description
SYNC_E_ID_FORMAT_MISMATCH
The ID format does not match the format that is specified by the ID format schema.
SYNC_E_INVALID_OPERATION
The operation is not valid for the current state of the object.
SYNC_E_REPLICA_NOT_FOUND
The specified replica cannot be found in the specified IReplicaKeyMap object.
SYNC_E_CHANGE_COUNT_MISMATCH
The number of destination item versions does not match the number of source item changes.
SYNC_E_CHANGE_UNIT_COUNT_MISMATCH
The number of change units in a destination item version does not match the number of change units in the corresponding source item change.
SYNC_E_KNOWLEDGE_DECREASED
The knowledge unexpectedly contains fewer items than it did previously.
SYNC_E_CHANGE_NOT_IN_KNOWLEDGE
The specified change version is not contained in the specified knowledge object.
SYNC_E_ITEM_MUST_EXIST
A synchronization provider reports that an item does not exist in its replica, although the creation version of the item is contained in the knowledge from that provider.
SYNC_E_HAS_NO_DATA
Item data does not exist for the specified item.
SYNC_E_CHANGE_NEEDS_KNOWLEDGE
The specified item change object does not contain a made-with knowledge object.
SYNC_E_RANGE_OUT_OF_ORDER
A range of items is not in the expected order, or a range override is specified incorrectly.
SYNC_E_NOT_EXPECTED_CHANGE
The order of destination item versions or change unit versions differs from the order of source item changes or change unit changes.
SYNC_E_DESERIALIZATION
Serialization or deserialization cannot be performed.
SYNC_E_SINGLE_RANGE_ONLY
An ISyncFullEnumerationChangeBatch object contains more than one group of changes.
SYNC_E_ITEM_HAS_CHANGE_UNITS
The attempted operation is not valid because the specified item has change units.
SYNC_E_ITEM_HAS_NO_CHANGE_UNITS
The attempted operation is not valid because the specified item does not have change units.
SYNC_E_ITEM_HAS_NO_VERSION_DATA
The attempted operation is not valid because the specified item has no version data.
SYNC_E_OBJECT_NEEDS_STATE
A required ISyncSessionState object is not specified.
SYNC_E_INVALID_VERSION
Specified version is not supported.
SYNC_E_DUPLICATE_ITEM
An entry already exists in the specified replica key map for the specified replica ID or replica key.
SYNC_E_INVALID_ORDER_FOR_VECTOR_ELEMENTS
The specified clock vector elements are in the wrong order.
SYNC_E_INVALID_SYNC_TIME
The specified SYNC_TIME value is not valid.
SYNC_E_INCOMPLETE_REPLICA_KEY_MAP
The specified replica key map is incomplete.
SYNC_E_INVALID_REPLICA_KEY
A clock vector element has a replica key that is not in the replica key map.
SYNC_E_NEGATIVE_RANGE_EXCEPTION
An IRangeException object that is used to build a knowledge object contains an IClockVector object that does not contain the correct clock vector.
SYNC_E_BATCH_NEEDS_KNOWLEDGE
A change batch object does not contain a learned knowledge object .
SYNC_E_INTERNAL_ERROR
An internal error occurred in Windows Sync. This error code supports the Windows Sync infrastructure and should not be used directly from your code.
SYNC_E_CHANGE_BATCH_IS_READ_ONLY
The change batch object is read-only.
SYNC_E_DATA_MODIFIED_CONCURRENTLY
Item data changed unexpectedly.
SYNC_E_ON_CREATE_MUST_FAIL_ENTIRE_ITEM
A recoverable error cannot be recorded for a change unit change when the change represents an item creation.
SYNC_E_FILTER_NOT_SUPPORTED
The source provider does not support the specified filter.
HRESULT_FROM_WIN32(ERROR_MORE_DATA)
The specified buffer is not large enough to accommodate the return value.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
Synchronizationerrors.h

See also

Windows Sync Reference