You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: application/CohortManager/src/Functions/CohortDistributionServices/CreateCohortDistribution/CreateCohortDistribution.cs
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,23 @@ public class CreateCohortDistribution
if(participantHasException&&!ignoreParticipantExceptions)// Will only run if IgnoreParticipantExceptions is false.
77
80
{
78
81
awaitHandleErrorResponseAsync($"Unable to add to cohort distribution. As participant with ParticipantId: {participantData.ParticipantId}. Has an Exception against it",
@@ -82,13 +85,21 @@ await HandleErrorResponseAsync($"Unable to add to cohort distribution. As partic
varerrorMessage=$"Validation error: A rule triggered a fatal error, preventing the cohort distribution record with participant Id {participantData.ParticipantId} from being added to the database";
93
+
varerrorMessage=$"Participant {participantData.ParticipantId}triggered a validation rule, so will not be added to cohort distribution";
if(!excpetionFlagUpdated)thrownewIOException("Failed to update exception flag");
102
+
92
103
return;
93
104
}
94
105
_logger.LogInformation("Validation has passed or exceptions are ignored, the record with participant id: {ParticipantId} will be added to the database",participantData.ParticipantId);
@@ -109,7 +120,7 @@ await HandleErrorResponseAsync($"Unable to add to cohort distribution. As partic
109
120
}
110
121
catch(Exceptionex)
111
122
{
112
-
varerrorMessage=$"Failed during TransformParticipant or AddCohortDistribution Function.\nMessage: {ex.Message}\nStack Trace: {ex.StackTrace}";
123
+
varerrorMessage=$"Create Cohort Distribution failed .\nMessage: {ex.Message}\nStack Trace: {ex.StackTrace}";
Copy file name to clipboardExpand all lines: application/CohortManager/src/Functions/CohortDistributionServices/ValidateCohortDistributionRecord/ValidateCohortDistributionRecord.cs
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -73,11 +73,7 @@ public async Task<HttpResponseData> RunAsync([HttpTrigger(AuthorizationLevel.Ano
Copy file name to clipboardExpand all lines: tests/UnitTests/CohortDistributionTests/ValidateCohortDistributionRecordTests/ValidateCohortDistributionRecordTests.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ public async Task Run_RequestBodyInvalid_BadRequest()
0 commit comments