ErrorResolutionType Enumeration

Defines the error resolution actions that are available.

Namespace:  Microsoft.Office.BusinessApplications.Runtime
Assembly:  Microsoft.Office.BusinessApplications.Runtime (in Microsoft.Office.BusinessApplications.Runtime.dll)

Syntax

'Declaration
Public Enumeration ErrorResolutionType
'Usage
Dim instance As ErrorResolutionType
public enum ErrorResolutionType

Members

Member name Description
Cancel Cancels all pending operations related to the external item (= 2).
Retry Retries the operation that caused the error (= 3).
Replace Cancels all pending operations related to the external item and adds a new update operation to update the external item with the latest values obtained for this item from the offline data cache (= 4).

Remarks

The ErrorResolutionType values specify how to proceed after an operation on an external content type fails in the offline data cache. The offline data cache contains external content type items and allows create, update, and delete operations on these external items.

The following example shows multiple error resolution outcomes after an error occurs during an update operation in the offline data cache. Each error resolution outcome is based on the ErrorResolutionType value used. In this scenario, the following operations are defined:

Operation1: Update customer’s address to address1.
Operation2: Update customer’s address to address2.
Operation3: Delete customer.

Suppose that operation1 fails, for instance due to a loss of network connectivity. The following are the three different possible outcomes based on each ErrorResolutionType value.

  • Cancel: All operations for this external content type are canceled. The customer’s address is unchanged and the customer is not deleted.

  • Retry: Another attempt is made to change the customer’s address to address1. All other pending operations, that is the second address update and the deletion, are still queued and will be carried out if operation1 completes successfully.

  • Replace: All operations for this external content type are canceled and a new update operation is added in the queue to update the customer’s record with the newest values for this item obtained from the offline data cache. In this case, the newest values are taken from the last pending update operation and correspond to address2.

See Also

Reference

Microsoft.Office.BusinessApplications.Runtime Namespace