Sync Framework Error Codes

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

Remarks

Error code

Description

Error code value

SYNC_E_ID_FORMAT_MISMATCH

The ID format does not match the format that is specified by the ID format schema.

0x80041000

SYNC_E_INVALID_OPERATION

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

0x80041001

SYNC_E_REPLICA_NOT_FOUND

The specified replica cannot be found in the specified IReplicaKeyMap object.

0x80041002

SYNC_E_CHANGE_COUNT_MISMATCH

The number of destination item versions does not match the number of source item changes.

0x80041003

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.

0x80041004

SYNC_E_KNOWLEDGE_DECREASED

The knowledge unexpectedly contains fewer items than it did previously.

0x80041005

SYNC_E_CHANGE_NOT_IN_KNOWLEDGE

The specified change version is not contained in the specified knowledge object.

0x80041006

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.

0x80041007

SYNC_E_HAS_NO_DATA

Item data does not exist for the specified item.

0x80041008

SYNC_E_CHANGE_NEEDS_KNOWLEDGE

The specified item change object does not contain a made-with knowledge object.

0x80041009

SYNC_E_RANGE_OUT_OF_ORDER

A range of items is not in the expected order, or a range override is specified incorrectly.

0x8004100A

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.

0x8004100B

SYNC_E_DESERIALIZATION

Serialization or deserialization cannot be performed.

0x8004100C

SYNC_E_SINGLE_RANGE_ONLY

An ISyncFullEnumerationChangeBatch object contains more than one group of changes.

0x8004100D

SYNC_E_ITEM_HAS_CHANGE_UNITS

The attempted operation is not valid because the specified item has change units.

0x8004100E

SYNC_E_ITEM_HAS_NO_CHANGE_UNITS

The attempted operation is not valid because the specified item does not have change units.

0x8004100F

SYNC_E_ITEM_HAS_NO_VERSION_DATA

The attempted operation is not valid because the specified item has no version data.

0x80041010

SYNC_E_OBJECT_NEEDS_STATE

A required ISyncSessionState object is not specified.

0x80041011

SYNC_E_INVALID_VERSION

The specified version is not supported.

0x80041015

SYNC_E_DUPLICATE_ITEM

An entry already exists in the specified replica key map for the specified replica ID or replica key.

0x80041016

SYNC_E_INVALID_ORDER_FOR_VECTOR_ELEMENTS

The specified clock vector elements are in the wrong order.

0x80041017

SYNC_E_INVALID_SYNC_TIME

The specified SYNC_TIME value is not valid.

0x80041018

SYNC_E_INCOMPLETE_REPLICA_KEY_MAP

The specified replica key map is incomplete.

0x80041019

SYNC_E_INVALID_REPLICA_KEY

A clock vector element has a replica key that is not in the replica key map.

0x8004101A

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 clock vector contained in the IKnowledgeBuilder object.

0x8004101B

SYNC_E_BATCH_NEEDS_KNOWLEDGE

A change batch object does not contain a learned knowledge object

0x8004101C

SYNC_E_INTERNAL_ERROR

An internal error occurred in Sync Framework. This error code supports the Sync Framework infrastructure and should not be used directly from your code.

0x8004101D

SYNC_E_CHANGE_BATCH_IS_READ_ONLY

The change batch object is read-only.

0x8004101E

SYNC_E_DATA_MODIFIED_CONCURRENTLY

Item data changed unexpectedly.

0x8004101F

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.

0x80041020

SYNC_E_FILTER_NOT_SUPPORTED

The source provider does not support the specified filter.

0x80041021

SYNC_E_LOAD_CONFLICT_DATA_FAILED

The requested data could not be loaded. This occurs when a recoverable error is set while data is being loaded, or if data conversion fails. Possible resolutions include deferring the conflict or resolving the conflict without change data.

0x80041022

SYNC_E_INVALID_SERIALIZATION_VERSION

The specified serialization version is not supported or cannot be used.

0x80041023

SYNC_E_MARKER_MISMATCH

The specified marker is invalid.

0x80041024

SYNC_E_FORGOTTEN_KNOWLEDGE_NOT_CONTAINED

A forgotten knowledge object is not contained by its associated knowledge object.

0x80041025

SYNC_E_ACTIVE_CHANGE_APPLICATION_CONTEXT

The operation cannot be completed because an active change application context already exists.

0x80041026

SYNC_E_ITEM_LIST_FILTERED_FULL_ENUMERATION_NOT_SUPPORTED

Recovery synchronization cannot be performed when an item filter is in use.

0x80041027

SYNC_E_FULL_ENUMERATION_MUST_BE_USED

A change was specified as a recovery synchronization change, but the change application service is not in recovery synchronization mode.

0x80041028

SYNC_E_BATCH_NEEDS_FILTER_FORGOTTEN_KNOWLEDGE

A required filter forgotten knowledge is not set in the change batch.

0x80041029

SYNC_E_CONSTRAINT_CONFLICT_NOT_ALLOWED

A constraint conflict cannot be reported while processing the current save action.

0x8004102A

SYNC_E_SOURCE_DOES_NOT_TRACK_FILTER

The source provider does not track the specified filter.

0x8004102B

HRESULT_FROM_WIN32(ERROR_MORE_DATA)

The specified buffer is not large enough to accommodate the return value.

0x800700ea

Requirements

Header: Synchronizationerrors.h

See Also

Concepts

Sync Framework Core Components