diff --git a/PROMS/Volian.Print.Library/PDFConsistencyCheckReport.cs b/PROMS/Volian.Print.Library/PDFConsistencyCheckReport.cs index f9418c7f..4967fabf 100644 --- a/PROMS/Volian.Print.Library/PDFConsistencyCheckReport.cs +++ b/PROMS/Volian.Print.Library/PDFConsistencyCheckReport.cs @@ -368,7 +368,10 @@ namespace Volian.Print.Library string trtitle = "From Procedure " + newValue; if (trs.ContainsKey(trtitle)) { - trs[trtitle].Add(string.Format("According to {0} the destination is: {1}", pi.DisplayNumber, ItemInfo.ConvertToDisplayText(trc.TransitionValue)), ItemInfo.ConvertToDisplayText(trc.TransitionValue) == fromText); + // B2021-024: : For Working Draft, Report All Procedures Inconsistencies gives Argument Exception in report + // If the value is already in the dictionary, don't add it. + if (!trs[trtitle].ContainsValue(ItemInfo.ConvertToDisplayText(trc.TransitionValue) == fromText)) + trs[trtitle].Add(string.Format("According to {0} the destination is: {1}", pi.DisplayNumber, ItemInfo.ConvertToDisplayText(trc.TransitionValue)), ItemInfo.ConvertToDisplayText(trc.TransitionValue) == fromText); } else {