codeunitPlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Codeunit 28 "Error Message Management"

Base Application · System.Utilities

Across versions

  1. BC23present
  2. BC243 procedures added
  3. BC254 procedures removed, 1 procedures added
  4. BC261 procedures removed
  5. BC271 procedures changed
  6. BC28-30unchanged

Neighbourhood 75 connected objects and pages

Codeunit 29 "Error Message Handler" (event subscribers, 10 links)Error Message HandlerCodeunit 30 "Error Context Element" (event subscribers, 3 links)Error Context ElementCodeunit 481 "Check Dimensions" (calls, 24 links)Check DimensionsCodeunit 80 "Sales-Post" (calls, 12 links)Sales-PostCodeunit 90 "Purch.-Post" (calls, 12 links)Purch.-PostCodeunit 442 "Sales-Post Prepayments" (calls, 11 links)Sales-Post PrepaymentsCodeunit 444 "Purchase-Post Prepayments" (calls, 11 links)Codeunit 408 "DimensionManagement" (calls, 9 links)DimensionManagementCodeunit 9068 "Check Purch. Doc. Backgr." (calls, 9 links)Codeunit 9072 "Check Sales Doc. Backgr." (calls, 9 links)Check Sales Doc. Backgr.Codeunit 13 "Gen. Jnl.-Post Batch" (calls, 7 links)Gen. Jnl.-Post BatchCodeunit 1380 "Batch Processing Mgt." (calls, 6 links)Codeunit 1509 "Notification Entry Dispatcher" (calls, 6 links)Notification Entry DispatcherCodeunit 6620 "Copy Document Mgt." (calls, 6 links)Codeunit 9079 "Background Error Handling Mgt." (calls, 5 links)Background Error Handling Mgt.Codeunit 9084 "Check Service Doc. Backgr." (calls, 5 links)Check Service Doc. Backgr.Codeunit 1371 "Sales Batch Post Mgt." (calls, 4 links)Sales Batch Post Mgt.Codeunit 1372 "Purchase Batch Post Mgt." (calls, 4 links)Codeunit 5286 "Data Check Mgt. SAF-T" (calls, 4 links)Data Check Mgt. SAF-TCodeunit 8800 "Custom Layout Reporting" (calls, 4 links)Codeunit 8811 "Customer Statement via Queue" (calls, 4 links)Codeunit 11 "Gen. Jnl.-Check Line" (calls, 3 links)Codeunit 19 "Gen. Jnl.-Post Preview" (calls, 3 links)Codeunit 31 "Last Error Context Element" (calls, 3 links)Codeunit 373 "Bank. Acc. Recon. Post Preview" (calls, 3 links)Codeunit 393 "Reminder-Issue" (calls, 3 links)Codeunit 449 "Job Queue Start Codeunit" (calls, 3 links)Codeunit 450 "Job Queue Error Handler" (calls, 3 links)Codeunit 5988 "Serv-Documents Mgt." (calls, 3 links)Codeunit 7092 "Expense Report Batch Post Mgt." (calls, 3 links)Report 5707 "Batch Post Transfer Orders" (calls, 3 links)Codeunit 1000 "Job Calculate WIP" (calls, 2 links)Codeunit 13697 "Data Check SAF-T DK" (calls, 2 links)Codeunit 20415 "Qlty. Tracking Integration" (calls, 2 links)Codeunit 30 "Error Context Element" (calls, 2 links)Codeunit 443 "Sales-Post Prepayment (Yes/No)" (calls, 2 links)Codeunit 445 "Purch.-Post Prepmt. (Yes/No)" (calls, 2 links)Codeunit 5261 "Audit File Export Mgt." (calls, 2 links)Codeunit 5285 "Audit Data Check SAF-T" (calls, 2 links)https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extension-errors-recommendations (Learn pages)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · System.Utilities · BC23-30 · source at 4e6a307c · facts from BC29

Events published

Procedures

  • Activate(var ErrorMessageHandler: Codeunit "Error Message Handler"): Boolean Δ BC27
  • Activate(var ErrorMessageHandler: Codeunit "Error Message Handler"; ClearError: Boolean): Boolean Δ BC27
  • IsActive(): Boolean
  • Finish(ContextVariant: Variant)
  • FinishTopContext()
  • IsTransactionStopped(): Boolean
  • GetCurrCallStack(): Text
  • ShowErrors(Notification: Notification)
  • ShowErrors(RegisterID: Guid)
  • ThrowError(ContextErrorMessage: Text; DetailedErrorMessage: Text) − BC26
  • GetFieldNo(TableNo: Integer; FieldName: Text): Integer
  • FindFirstErrorMessage(var ErrorMessage: Text[250]): Boolean
  • GetErrors(var TempErrorMessage: Record "Error Message" temporary): Boolean
  • GetErrorsInContext(ContextVariant: Variant; var TempErrorMessage: Record "Error Message" temporary): Boolean
  • GetLastError(var ErrorMessage: Text[250]): Integer
  • GetLastErrorID(): Integer
  • GetCachedLastErrorID(): Integer
  • LogError(SourceVariant: Variant; ErrorMessage: Text; HelpArticleCode: Code[30])
  • LogContextFieldError(ContextFieldNo: Integer; ErrorMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30])
  • LogMessage(NewMessageType: Option; ContextFieldNo: Integer; InformationMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean
  • LogErrorMessage(ContextFieldNo: Integer; ErrorMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean
  • LogSimpleErrorMessage(ErrorMessage: Text): Boolean
  • LogTestField(SourceVariant: Variant; SourceFieldNo: Integer): Boolean
  • LogTestField(SourceVariant: Variant; SourceFieldNo: Integer; ExpectedValue: Variant): Boolean
  • LogFieldError(SourceVariant: Variant; SourceFieldNo: Integer; ErrorMessage: Text): Boolean
  • InsertTempLineErrorMessage(var TempLineErrorMessage: Record "Error Message" temporary; RecordId: RecordId; TableNo: Integer; FieldNo: Integer; Description: Text; CallStack: Text) + BC24
  • CollectErrors(var TempLineErrorMessage: Record "Error Message" temporary)
  • LogLastError()
  • FldRefHasValue(FldRef: FieldRef): Boolean
  • GetErrorsFromResultValues(Values: List of [Text]; var TempErrorMessage: Record "Error Message" temporary)
  • AddSubContextToLastErrorMessage(Tag: Text; VariantRec: Variant)
  • ParseErrorText(JSON: Text; var TempErrorMessage: Record "Error Message" temporary)
  • ErrorMessage2JSON(var ErrorMessage: Record "Error Message"): Text
  • PackErrorMessagesToResults(var TempErrorMessage: Record "Error Message" temporary; var Results: Dictionary of [Text, Text])
  • LogWarning(ContextFieldNo: Integer; WarningMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean
  • LogWarning(WarningMessage: Text): Boolean
  • LogInformation(ContextFieldNo: Integer; InformationMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean
  • LogInformation(InformationMessage: Text): Boolean
  • PopContext(var ErrorContextElement: Codeunit "Error Context Element"): Integer
  • PushContext(var ErrorContextElement: Codeunit "Error Context Element"; ContextVariant: Variant; ContextFieldNo: Integer; AdditionalInfo: Text[250]): Integer
  • GetLastContext(var ErrorMessage: Record "Error Message"): Boolean
  • BuildActionableErrorInfo(ErrorTitle: Text; ErrorMessage: Text; RecId: RecordId; ActionMessage: Text; ActionCodeunuitId: Integer; ActionName: Text): ErrorInfo + BC24 + BC24 + BC25
  • BuildActionableErrorInfo(ErrorTitle: Text; ErrorMessage: Text; RecId: RecordId; ActionMessage: Text; ActionCodeunuitId: Integer; ActionName: Text; ActionDescription: Text): ErrorInfo + BC24 + BC24 + BC25
  • BuildActionableErrorInfo(ErrorTitle: Text; ErrorMessage: Text; SysId: Guid; ActionMessage: Text; ActionCodeunuitId: Integer; ActionName: Text; ActionDescription: Text): ErrorInfo + BC24 + BC24 + BC25
  • GetTopContext(var ErrorMessage: Record "Error Message"): Boolean

Plus 13 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.

Called by

Documented on Microsoft Learn

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: "Error Message Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources