#211 knowledge(error-handling): a bare [TryFunction] call propagates its error
AL quality knowledge clarifies that bare calls to TryFunction procedures propagate errors rather than suppressing them, preventing false defect reports about error handling.
- 9files
- 8AL files
- 0objects
Pull request · merged into main on 2026-11-17 by pri-kise · 9 files (+95 -20), 8 AL · fix · tier official · reviewed (checked by Opus)
What changed
- New article documents that bare TryFunction calls propagate errors and should not be flagged as suppressed failures
- Updated anti-pattern examples to require visible error handling code like GetLastErrorText checks to match the documented anti-pattern
- Corrected misleading wording in related articles that suggested try functions always catch errors regardless of return value usage
- Agent review rules updated to reference both bare-call and error-catching articles with matching evidence requirements
- Prevents incorrect suggestions to wrap bare calls with if-not-then-Error logic that could expose customer content
AL objects touched
microsoft/knowledge/error-handling/bare-tryfunction-call-propagates-errors.md: added, not in the BC? snapshot yetmicrosoft/knowledge/error-handling/ignored-tryfunction-return-disables-try-semantics.bad.al: modified, not in the BC? snapshotmicrosoft/knowledge/error-handling/ignored-tryfunction-return-disables-try-semantics.good.al: modified, not in the BC? snapshotmicrosoft/knowledge/error-handling/ignored-tryfunction-return-disables-try-semantics.md: modified, not in the BC? snapshotmicrosoft/knowledge/events/avoid-raising-events-inside-try-functions.good.al: modified, not in the BC? snapshotmicrosoft/knowledge/events/avoid-raising-events-inside-try-functions.md: modified, not in the BC? snapshotmicrosoft/knowledge/performance/use-tryfunction-for-error-catching-not-rollback.md: modified, not in the BC? snapshotmicrosoft/skills/review/al-error-handling-review.md: modified, not in the BC? snapshot
Context
- Systems: development
- From the description: “A bare call propagates. Do not report it as swallowed, and do not ask for capture-and-re-raise.”
Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).