Wen a group is null I get the following message: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
Example: If one CultureAdvice has no DosageApplication error occurs
var CultureVisit = await _repositoryCultureVisit.Entities.Where(cv => cv.Id == query.Id)
.Include(ca => ca.CultureAdvices).ThenInclude(p => p.Product).ThenInclude(s => s.SaleUnit)
.Include(ca => ca.CultureAdvices).ThenInclude(da => da.DosageApplication)
document.MailMerge.RemoveEmptyGroup = true;
document.MailMerge.RemoveEmptyParagraphs = true;
We have confirmed that the reported issue with “ArgumentOutOfRangeException
throws while calling ExecuteNestedGroup() method” is a defect and we have
logged a defect report. We will include the fix for this defect in our weekly
NuGet release, which is estimated to be available on three weeks. We will
let you know once the fix is included in the weekly release.
The status of this bug can be tracked through the below link:
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Jean, As promised
earlier, we have included the fix for the reported issue with “ArgumentOutOfRangeException
throws while calling ExecuteNestedGroup() method” in our latest weekly
NuGet release (v220.127.116.11).
Please use the below link to download our latest weekly NuGet:
The status of this bug task can be tracked through the below link:
Note: We will include this fix in our 2022 Volume 4 Service Pack release which will be available in end of January 2023.
Perfect timing, got the latest weekly NuGet and I confirm that it is resolved. Thank you.