---
id: guideline/microsoft/knowledge/events/external-business-events-require-commit-for-notification
type: guideline
title: External business event notifications require a committed transaction
summary: Notifications for an ExternalBusinessEvent are sent only after the current transaction commits. If that transaction rolls back, the notification is not sent, even if the event was raised before the error. This differs from reasoning about AL BusinessEvent or IntegrationEvent subscribers.
tier: official
language: en
tags:
  - externalbusinessevent
  - business-event
  - transaction
  - commit
  - rollback
  - notification
system: development
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-02T00:15:44.908Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: e0d984e7f82b18384bd76bba363986662c4f414a
evidence:
  - kind: guideline
    url: https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/events/external-business-events-require-commit-for-notification.md
    title: "microsoft/BCQuality: External business event notifications require a committed transaction"
    date: "2026-11-30"
    commit: 863acaa2bcbd27d73e72d02527c65c8dc5af5d01
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcquality/291
repo_path: microsoft/knowledge/events/external-business-events-require-commit-for-notification.md
layer: microsoft
kind: rule
domain: events
bc_version:
  - 22..
technologies:
  - al
countries:
  - w1
application_area:
  - all
examples: 2
identifiers:
  - ExternalBusinessEvent
  - BusinessEvent
  - IntegrationEvent
  - EventCategory
---

# External business event notifications require a committed transaction

> Notifications for an ExternalBusinessEvent are sent only after the current transaction commits. If that transaction rolls back, the notification is not sent, even if the event was raised before the error. This differs from reasoning about AL BusinessEvent or IntegrationEvent subscribers.

[Rule on GitHub](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/events/external-business-events-require-commit-for-notification.md) · microsoft layer · events · BC 22.. · tier official · derived

## Description

Notifications for an `ExternalBusinessEvent` are sent only after the current transaction commits. If that transaction rolls back, the notification is not sent, even if the event was raised before the error. This differs from reasoning about AL `BusinessEvent` or `IntegrationEvent` subscribers.

The attribute is available from runtime 11.0 (BC 22); Microsoft's business events overview describes the feature as preview. The samples use BC 22 syntax; on BC 23 and later, import `System.Integration` for `EventCategory`.

## Best Practice

Use external business events to notify consumers of business outcomes whose transaction can commit. A raise within that transaction is valid: it does not itself commit, and notification waits for the transaction to commit. Do not flag such a raise merely because it precedes the commit.

If a failed operation must be reported externally, design failure reporting so it does not depend on a notification raised in the transaction being rolled back. Do not add an unconditional `Commit()` solely to force a notification; preserve the operation's required atomicity.

See sample: [`external-business-events-require-commit-for-notification.good.al`](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/events/external-business-events-require-commit-for-notification.good.al).

## Anti Pattern

Raise an external business event as a failure notification and then roll back the same transaction, while relying on the notification to reach the external consumer. The rollback discards the notification, so the consumer is not notified of that failure.

See sample: [`external-business-events-require-commit-for-notification.bad.al`](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/events/external-business-events-require-commit-for-notification.bad.al).

## References

- [Business events overview: receive notifications](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/business-events-overview#receive-notifications-of-business-events)
- [ExternalBusinessEvent attribute](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/attributes/devenv-externalbusinessevent-attribute)
- [AL runtime versions](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-choosing-runtime)

## Examples

- [Good: external-business-events-require-commit-for-notification.good.al](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/events/external-business-events-require-commit-for-notification.good.al)
- [Bad: external-business-events-require-commit-for-notification.bad.al](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/events/external-business-events-require-commit-for-notification.bad.al)

## Changed by

- [#291 Document external business event transaction behavior](../../../../changes/bcquality/291.md), 2026-11-30

---

From microsoft/BCQuality at 863acaa, MIT License, Copyright (c) 2026 Microsoft Corporation ([license](../../../LICENSE-BCQuality.txt)).
