CurrReport.Skip: separate current-trigger exit from later triggers
CurrReport.Skip() omits the current record from the report dataset.
- microsoftlayer
- reportingdomain
- 0examples
- 1pull request
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
- Report.Skip() remarks, pinned source: dataset omission and remaining triggers; not an explicit same-trigger continuation guarantee.
- Microsoft’s by-design explanation for reportextension Skip.
- Existing BC 28.4 Windows-container run, artifact
nightly-windows-bc28.4-41034608607: externally supplied results from a third-party suite on the Microsoft runtime, not a BCQuality execution or Microsoft-owned test suite. Its pinned direct-call source, direct-call assertions, and extension-trigger assertions distinguish same-trigger statements from record progression and later dispatch. Processing-only traces do not themselves prove dataset emission. - Correction provenance: issue #200 and PR #183 comment.
Changed by
From microsoft/BCQuality at aaaf6c1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).