Skip to content

Commit e0c63e1

Browse files
committed
doc plug-in retry
1 parent 003ea1a commit e0c63e1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

powerapps-docs/developer/data-platform/handle-exceptions.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Handle exceptions in a plug-in (Microsoft Dataverse) | Microsoft Docs"
33
description: "Understand system behavior when a plug-in passes an exception back to the caller."
44
ms.custom: ""
5-
ms.date: 03/15/2021
5+
ms.date: 04/30/2021
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "article"
@@ -53,4 +53,13 @@ However, when any exception occurs in the plug-in code for a synchronous step, t
5353

5454
The exception message for asynchronous registered plug-ins is written to a **System Job** table, also known as the [AsyncOperation Table](reference/entities/asyncoperation.md) which can be viewed in the **System Jobs** area of the web application. No dialog will be displayed to the user. Async plug-ins do not participate in the database transaction that queued them, therefore they cannot cancel the transaction.
5555

56+
### Retry an asynchronous plug-in
57+
58+
With an asynchronous plug-in step, you can re-try when a plug-in fails. This may be due to a network error or some other re-triable error calling an external resource.
59+
60+
To retry your plug-in, use the [InvalidPluginExecutionException(OperationStatus, Int32, String)](dotnet/api/microsoft.xrm.sdk.invalidpluginexecutionexception.-ctor?view=dynamics-general-ce-9#Microsoft_Xrm_Sdk_InvalidPluginExecutionException__ctor_Microsoft_Xrm_Sdk_OperationStatus_System_Int32_System_String_) constructor using the [OperationStatus Enum](https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.operationstatus?view=dynamics-general-ce-9) `Retry` member value.
61+
62+
When your plug-in throws this type of exception, the asynchronous service will attempt to run your plug-in four times. If it doesn't succeed within four attempts it will fail.
63+
64+
5665
[!INCLUDE[footer-include](../../includes/footer-banner.md)]

0 commit comments

Comments
 (0)