Skip to content

Add community knowledge file: avoid raising events inside try functions#31

Open
jeffreybulanadi wants to merge 1 commit into
microsoft:mainfrom
jeffreybulanadi:contrib/events-try-functions
Open

Add community knowledge file: avoid raising events inside try functions#31
jeffreybulanadi wants to merge 1 commit into
microsoft:mainfrom
jeffreybulanadi:contrib/events-try-functions

Conversation

@jeffreybulanadi

@jeffreybulanadi jeffreybulanadi commented Jun 15, 2026

Copy link
Copy Markdown

Adds avoid-raising-events-inside-try-functions to community/knowledge/events/.

When an [IntegrationEvent] is raised inside a TryFunction body, any error a subscriber throws is silently caught and discarded. The subscriber's logic fails but the caller never knows. The fix is to raise the event before entering the TryFunction, so only the operation that genuinely needs error isolation lives inside it.

Includes .good.al and .bad.al sibling samples.

@jeffreybulanadi jeffreybulanadi marked this pull request as ready for review June 15, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant