When the delegate that is assigned to RetryPolicy.HandleException executes, the TaskFailureDetails property: ErrorType is (unknown).
Because of this, IsCausedBy cannot resolve the Exception Type that caused the failure.
This only happens with Activity Functions. It does not happen with Sub-Orchestration Functions.
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.DurableTask" Version="1.2.2" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" />