---
id: change/bcapps/12308
type: change
title: "#12308 Don't block approval workflow when foreground notification email fails"
summary: Prevent approval workflow blocking when foreground notification email delivery fails by logging errors instead of raising exceptions mid-transaction.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit notification entry dispatcher
  - table notification schedule
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-10-18T00:55:12.265Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: a6df5599a8b2559c92826fb58a63ddc5dc2f93a5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12308
    title: "microsoft/BCApps#12308: Don't block approval workflow when foreground notification email fails"
    date: "2026-10-08"
    commit: a6df5599a8b2559c92826fb58a63ddc5dc2f93a5
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/1509
    - object/table/1513
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/across-setting-up-workflow-notifications
      title: Setting up approval workflow notifications
      label: possibly related
      why: Documents approval workflow notifications and notification setup configuration.
      by: model
number: 12308
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12308
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-08T20:10:17Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 110
  deletions: 4
  al: 2
apps:
  - Base Application
objects_touched:
  - key: codeunit/1509
    page: codeunit/1509
    type: codeunit
    id: 1509
    name: Notification Entry Dispatcher
    app: Base Application
    status: modified
  - key: table/1513
    page: table/1513
    type: table
    id: 1513
    name: Notification Schedule
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13626
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13626
fixes_issues: []
work_items:
  - 652915
systems:
  - administration
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12308 Don't block approval workflow when foreground notification email fails

> Prevent approval workflow blocking when foreground notification email delivery fails by logging errors instead of raising exceptions mid-transaction.

[Pull request](https://github.com/microsoft/BCApps/pull/12308) · merged into `main` (BC30) on 2026-10-08 by darjoo · 3 files (+110 -4), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Foreground instant notifications for delegated users no longer raise errors when email delivery fails
- Failed notifications are logged to telemetry and shown to users as notifications with Details action instead of blocking workflows
- Failed Notification Entries retain error details and remain available for later dispatch
- New internal flag SetRunInForeground distinguishes foreground dispatch path from job queue path
- Workflow response steps can now complete successfully despite email delivery failures
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 1509 "Notification Entry Dispatcher"](../../objects/codeunit/1509.md), Base Application: modified
- [Table 1513 "Notification Schedule"](../../objects/table/1513.md), Base Application: modified

## Also merged into

- [#13626](https://github.com/microsoft/BCApps/pull/13626) into `releases/29.x` on 2026-11-05

## Context

- Work items: AB#652915
- Labels: Team: Integrations
- Systems: administration

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Setting up approval workflow notifications](https://learn.microsoft.com/dynamics365/business-central/across-setting-up-workflow-notifications) — possibly related: Documents approval workflow notifications and notification setup configuration. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
