diff --git a/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportListHttpTrigger.cs b/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportListHttpTrigger.cs index 5f2bd46..109c6e8 100644 --- a/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportListHttpTrigger.cs +++ b/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportListHttpTrigger.cs @@ -81,7 +81,7 @@ private async Task> CheckStatusOfSettl { var updatedReport = settlementReport; - if (settlementReport.Status == SettlementReportStatus.InProgress) + if (settlementReport.Status == SettlementReportStatus.InProgress && settlementReport.RequestId != null) { var instanceInfo = await durableTaskClient .GetInstanceAsync(settlementReport.RequestId.Id, getInputsAndOutputs: true) diff --git a/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj b/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj index 5da03e4..239ccfe 100644 --- a/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj +++ b/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj @@ -22,7 +22,6 @@ -