BCQuality rule · reportingReporting & Analyticsofficial - Microsoftderived - from the source, no model text

CurrReport.Skip: separate current-trigger exit from later triggers

CurrReport.Skip() omits the current record from the report dataset.

Rule on GitHub · microsoft layer · reporting · BC all · tier official · derived

Description

CurrReport.Skip() omits the current record from the report dataset. In preserved BC 28.4.53241.57274-W1 processing-only report results, a direct call in OnAfterGetRecord ended that trigger: statements after the call did not execute, the skipped parent’s child dataitem was not traversed, and processing continued with the next record.

This is different from the documented statement that remaining triggers are still called. For example, Skip() in a reportextension’s OnBeforeAfterGetRecord does not necessarily suppress the base OnAfterGetRecord or the extension’s OnAfterAfterGetRecord. Dataitem/report completion in OnPostDataItem and OnPostReport is another distinct stage, not a trigger invocation for each skipped record.

Best Practice

Do not flag statements following a direct Skip() in the evidenced OnAfterGetRecord context as side effects that still execute for the skipped record, or require an extra exit; solely to prevent that alleged continuation. The clarification prevents an incorrect finding; it does not establish identical control flow across every version, helper-procedure stack, reportextension call site, or XmlPort.

When reviewing later distinct triggers, require the visible call site, trigger relationship, and unsafe skipped-record work before reporting a defect. Do not equate omission from the dataset with suppression of all later base/extension triggers, or interpret “remaining triggers” as a guarantee that every child dataitem is traversed.

Anti Pattern

Claiming that an increment after a direct Skip() must run for the skipped record, automatically adding exit; to fix it, or making the opposite blanket claim that no later distinct trigger can run. Same-trigger reachability, later-trigger dispatch, next-record processing, child traversal, and dataset emission are separate questions.

References

Changed by


From microsoft/BCQuality at aaaf6c1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).