---
id: object/codeunit/9079
type: object
title: Codeunit 9079 "Background Error Handling Mgt."
summary: Codeunit 9079 "Background Error Handling Mgt." in Base Application (Microsoft.Utilities). 21 public procedures, 2 event subscribers. Present since at least BC23, still in BC30, changed in BC25, BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 6abaec22fde01b1331631656cfec9df6fd644197f2b65ff0b07c51c0fd5a5044
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/BackgroundErrorHandlingMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Utilities/BackgroundErrorHandlingMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 9079
name: Background Error Handling Mgt.
namespace: Microsoft.Utilities
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 35
  events: 0
  subscribers: 2
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 30
  implements: 0
---

# Codeunit 9079 "Background Error Handling Mgt."

> Codeunit 9079 "Background Error Handling Mgt." in Base Application (Microsoft.Utilities). 21 public procedures, 2 event subscribers. Present since at least BC23, still in BC30, changed in BC25, BC28.

Base Application · Microsoft.Utilities · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/BackgroundErrorHandlingMgt.Codeunit.al) · facts from BC29

## Event subscriptions

- AfterValidateGLSetupEnableDataCheck subscribes to Table "General Ledger Setup" OnAfterValidateEvent (Enable Data Check)
- AfterValidateMyNotificationsDataCheck subscribes to Table "My Notifications" OnAfterValidateEvent (Enabled)

## Procedures

- `BackgroundValidationFeatureEnabled(): Boolean`
- `CleanTempErrorMessages(var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CleanItemJnlTempErrorMessages(var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CollectGenJnlCheckParameters(GenJnlLine: Record "Gen. Journal Line"; var ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CollectItemJnlCheckParameters(ItemJnlLine: Record "Item Journal Line"; var ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CollectSalesDocCheckParameters(SalesHeader: Record "Sales Header"; var ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CollectPurchaseDocCheckParameters(PurchaseHeader: Record "Purchase Header"; var ErrorHandlingParameters: Record "Error Handling Parameters")`
- `GetErrorsFromItemJnlCheckResultValues(ResultValues: List of [Text]; var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `GetErrorsFromResJnlCheckResultValues(ResultValues: List of [Text]; var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `GetErrorsFromDocumentCheckResultValues(ResultValues: List of [Text]; var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CleanSalesTempErrorMessages(var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CleanResJnlTempErrorMessages(var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `GetErrorsFromGenJnlCheckResultValues(ResultValues: List of [Text]; var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `GetErrorsFromJobJnlCheckResultValues(ResultValues: List of [Text]; var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `CleanJobJnlTempErrorMessages(var TempErrorMessage: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters")`
- `PackDeletedDocumentsToArgs(var Args: Dictionary of [Text, Text])`
- `GetDeletedDocumentsFromArgs(Args: Dictionary of [Text, Text]; var TempGenJnlLine: Record "Gen. Journal Line" temporary)`
- `FeatureTelemetryLogUptakeUsed()`
- `FeatureTelemetryLogUsage(ErrorsFound: Boolean; TableName: Text)`
- `FeatureTelemetryLogUsageSales(ErrorsFound: Boolean; TableName: Text; DocumentType: Enum "Sales Document Type")`
- `FeatureTelemetryLogUsagePurchase(ErrorsFound: Boolean; TableName: Text; DocumentType: Enum "Purchase Document Type")`

Plus 12 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 9070 "Document Errors Mgt."](../codeunit/9070.md) (7 calls: `AfterValidateMyNotificationsDataCheck → GetShowDocumentCheckFactboxNotificationID`, `CollectPurchaseDocCheckParameters → GetFullDocumentCheck`, `CollectPurchaseDocCheckParameters → GetModifiedPurchaseLineNo`, …)
- [Codeunit 53 "Translation Helper"](../codeunit/53.md) (6 calls: `FeatureTelemetryLogUsage → RestoreGlobalLanguage`, `FeatureTelemetryLogUsage → SetGlobalLanguageToDefault`, `FeatureTelemetryLogUsagePurchase → RestoreGlobalLanguage`, …)
- [Codeunit 9080 "Journal Errors Mgt."](../codeunit/9080.md) (6 calls: `CheckCleanDeletedGenJnlLinesErrors → GetDeletedGenJnlLine`, `CollectGenJnlCheckParameters → GetFullBatchCheck`, `CollectGenJnlCheckParameters → GetRecXRecOnModify`, …)
- [Codeunit 28 "Error Message Management"](../codeunit/28.md) (5 calls: `GetErrorsFromDocumentCheckResultValues → GetErrorsFromResultValues`, `GetErrorsFromGenJnlCheckResultValues → GetErrorsFromResultValues`, `GetErrorsFromItemJnlCheckResultValues → GetErrorsFromResultValues`, …)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (5 calls: `AfterValidateGLSetupEnableDataCheck → LogUptake`, `AfterValidateMyNotificationsDataCheck → LogUptake`, `FeatureTelemetryLogUptakeUsed → LogUptake`, …)
- [Codeunit 9077 "Item Journal Errors Mgt."](../codeunit/9077.md) (5 calls: `CheckCleanDeletedItemJnlLinesErrors → GetDeletedItemJnlLine`, `CollectItemJnlCheckParameters → GetFullBatchCheck`, `CollectItemJnlCheckParameters → GetItemJnlLinePreviousLineNo`, …)
- [Codeunit 9074 "Job Journal Errors Mgt."](../codeunit/9074.md) (3 calls: `CheckCleanDeletedJobJnlLinesErrors → GetDeletedJobJnlLine`, `GetErrorsFromJobJnlCheckResultValues → SetErrorMessages`, `GetErrorsFromJobJnlCheckResultValues → SetFullBatchCheck`)
- [Codeunit 9076 "Res. Journal Errors Mgt."](../codeunit/9076.md) (3 calls: `CheckCleanDeletedResJnlLinesErrors → GetDeletedResJnlLine`, `GetErrorsFromResJnlCheckResultValues → SetErrorMessages`, `GetErrorsFromResJnlCheckResultValues → SetFullBatchCheck`)

## Called by

- [Page 9121 "Journal Errors Factbox"](../page/9121.md) (6 calls: `CalcErrors → FeatureTelemetryLogUsage`, `CheckErrorsInBackground → CollectGenJnlCheckParameters`, `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, …)
- [Page 9122 "Item Journal Errors Factbox"](../page/9122.md) (6 calls: `CalcErrors → FeatureTelemetryLogUsage`, `CheckErrorsInBackground → CollectItemJnlCheckParameters`, `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, …)
- [Page 9118 "Purch. Doc. Check Factbox"](../page/9118.md) (4 calls: `CalcErrors → FeatureTelemetryLogUsagePurchase`, `CheckErrorsInBackground → CollectPurchaseDocCheckParameters`, `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, …)
- [Page 9119 "Sales Doc. Check Factbox"](../page/9119.md) (4 calls: `CalcErrors → FeatureTelemetryLogUsageSales`, `CheckErrorsInBackground → CollectSalesDocCheckParameters`, `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, …)
- [Page 9123 "Res. Journal Errors Factbox"](../page/9123.md) (4 calls: `CalcErrors → FeatureTelemetryLogUsage`, `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, `OnAfterGetCurrRecord → BackgroundValidationFeatureEnabled`, …)
- [Page 9127 "Job Journal Errors Factbox"](../page/9127.md) (4 calls: `CalcErrors → FeatureTelemetryLogUsage`, `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, `OnAfterGetCurrRecord → BackgroundValidationFeatureEnabled`, …)
- [Codeunit 9070 "Document Errors Mgt."](../codeunit/9070.md) (3 calls: `BackgroundValidationEnabled → BackgroundValidationFeatureEnabled`, `CheckShowEnableBackgrValidationNotification → BackgroundValidationFeatureEnabled`, `OnInitializingNotificationWithDefaultState → BackgroundValidationFeatureEnabled`)
- [Codeunit 9074 "Job Journal Errors Mgt."](../codeunit/9074.md) (2 calls: `InsertDeletedJobJnlLine → BackgroundValidationFeatureEnabled`, `SetJobJnlLineOnModify → BackgroundValidationFeatureEnabled`)
- [Codeunit 9076 "Res. Journal Errors Mgt."](../codeunit/9076.md) (2 calls: `InsertDeletedResJnlLine → BackgroundValidationFeatureEnabled`, `SetResJnlLineOnModify → BackgroundValidationFeatureEnabled`)
- [Codeunit 9077 "Item Journal Errors Mgt."](../codeunit/9077.md) (2 calls: `InsertDeletedItemJnlLine → BackgroundValidationFeatureEnabled`, `SetItemJnlLineOnModify → BackgroundValidationFeatureEnabled`)
- [Codeunit 9080 "Journal Errors Mgt."](../codeunit/9080.md) (2 calls: `InsertDeletedLine → BackgroundValidationFeatureEnabled`, `SetRecXRecOnModify → BackgroundValidationFeatureEnabled`)
- [Page 9117 "Service Doc. Check Factbox"](../page/9117.md) (2 calls: `CheckErrorsInBackground → FeatureTelemetryLogUptakeUsed`, `OnPageBackgroundTaskCompleted → GetErrorsFromDocumentCheckResultValues`)
- [Codeunit 9081 "Check Gen. Jnl. Line. Backgr."](../codeunit/9081.md) (1 call: `RunCheck → GetDeletedDocumentsFromArgs`)
- [Page 1020 "Job G/L Journal"](../page/1020.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 201 "Job Journal"](../page/201.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 207 "Resource Journal"](../page/207.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 253 "Sales Journal"](../page/253.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 254 "Purchase Journal"](../page/254.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 255 "Cash Receipt Journal"](../page/255.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 256 "Payment Journal"](../page/256.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 283 "Recurring General Journal"](../page/283.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 39 "General Journal"](../page/39.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 392 "Phys. Inventory Journal"](../page/392.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 393 "Item Reclass. Journal"](../page/393.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 40 "Item Journal"](../page/40.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 5628 "Fixed Asset G/L Journal"](../page/5628.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 610 "IC General Journal"](../page/610.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 99000773 "Capacity Journal"](../page/99000773.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 99000823 "Output Journal"](../page/99000823.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)
- [Page 99000846 "Consumption Journal"](../page/99000846.md) (1 call: `SetControlAppearanceFromBatch → BackgroundValidationFeatureEnabled`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Background Error Handling Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
