# DurableTaskDeliveryException

Package: [Microsoft.Orleans.Durable](/orleans/docs/api/csharp/microsoft.orleans.durable/) 10.0.0-alpha.1

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskDeliveryException.cs#L26)

```csharp
[Orleans.GenerateSerializer]
[Orleans.Alias(Orleans.Durable.Tasks.DurableTaskDeliveryException)]
public sealed class DurableTaskDeliveryException : Exception
```

Represents the start of a durable task whose invocation the starter's outbox dead-lettered without a confirmed outcome, so whether the task's grain ran the task is unknown.

## Remarks

The outbox dead-letters an invocation which it couldn't confirm before Messaging's `OutboxRetryTimeout` elapsed, or which the task's grain fenced because its admission cutoff had passed. In either case an earlier attempt may have reached the grain, which may have stored and run the task, and lost only its acknowledgement. The starter's record of the task fails with this exception: awaiting the task, or a `ScheduleAsync` which awaits its acceptance, throws it. The outbox's dead letters hold the invocation for inspection.

Treat the outcome as unknown. Before starting the work again under another task identifier, establish whether it ran, for example by polling the task on its grain or by checking the effects which it makes, so its side effects aren't duplicated.

## Constructors

- [DurableTaskDeliveryException(TaskId, GrainId, string)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskdeliveryexception/constructors/constructor-orleans-durable-tasks-taskid-orleans-runtime-grainid-string-ab9f1a45/)

## Properties

- [Target](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskdeliveryexception/properties/target-9991e674/)
- [TaskId](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskdeliveryexception/properties/taskid-ad26ebc7/)
