{"title":"Codeunit 9070 Document Errors Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9070-document-errors-mgt/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":9070,"name":"Document Errors Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/9070-document-errors-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9070-document-errors-mgt/source/","path":"src/Layers/W1/BaseApp/Utilities/DocumentErrorsMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:9079":{"name":"Background Error Handling Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9079-background-error-handling-mgt/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"},"codeunit:1330":{"name":"Instruction Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/"},"page:42":{"name":"Sales Order","url":"https://jonas-paprotka.de/ref/page/42-sales-order/"},"page:43":{"name":"Sales Invoice","url":"https://jonas-paprotka.de/ref/page/43-sales-invoice/"},"page:44":{"name":"Sales Credit Memo","url":"https://jonas-paprotka.de/ref/page/44-sales-credit-memo/"},"page:6630":{"name":"Sales Return Order","url":"https://jonas-paprotka.de/ref/page/6630-sales-return-order/"},"page:50":{"name":"Purchase Order","url":"https://jonas-paprotka.de/ref/page/50-purchase-order/"},"page:51":{"name":"Purchase Invoice","url":"https://jonas-paprotka.de/ref/page/51-purchase-invoice/"},"page:52":{"name":"Purchase Credit Memo","url":"https://jonas-paprotka.de/ref/page/52-purchase-credit-memo/"},"page:6640":{"name":"Purchase Return Order","url":"https://jonas-paprotka.de/ref/page/6640-purchase-return-order/"}},"procs":[{"name":"BackgroundValidationEnabled","line":91,"kind":"procedure","params":0,"steps":[[93,"ext","codeunit",9079,"BackgroundValidationFeatureEnabled",0],[96,"call","IsShowDocumentCheckFactboxNotificationEnabled",0]]},{"name":"CheckShowEnableBackgrValidationNotification","line":102,"kind":"procedure","params":0,"steps":[[104,"ext","codeunit",9079,"BackgroundValidationFeatureEnabled",0],[107,"call","CheckInitNotifications",0],[109,"call","IsBackgroundValidationNotificationEnabled",0],[112,"call","IsShowDocumentCheckFactboxNotificationEnabled",0],[115,"call","SendEnableBackgroundValidationNotification",0]]},{"name":"SendEnableBackgroundValidationNotification","line":119,"kind":"procedure","access":"local","params":0,"steps":[[123,"call","GetEnableBackgroundValidationNotificationID",0]]},{"name":"EnableShowDocumentCheckFactbox","line":133,"kind":"procedure","params":1,"steps":[[135,"call","EnableShowDocumentCheckFactboxNotification",0],[136,"call","DisableBackgroundValidationNotification",0]]},{"name":"DontShowAgainEnableBackgroundValidationNotification","line":139,"kind":"procedure","params":1,"steps":[[141,"call","DisableBackgroundValidationNotification",0]]},{"name":"DisableBackgroundValidationNotification","line":144,"kind":"procedure","params":0,"steps":[[148,"ext","table",1518,"SetStatus",2],[148,"call","GetEnableBackgroundValidationNotificationID",0],[149,"ext","table",1518,"InsertDefault",4],[150,"call","GetEnableBackgroundValidationNotificationID",0]]},{"name":"EnableBackgroundValidationNotification","line":153,"kind":"procedure","params":0,"steps":[[157,"ext","table",1518,"SetStatus",2],[157,"call","GetEnableBackgroundValidationNotificationID",0],[158,"ext","table",1518,"InsertDefault",4],[159,"call","GetEnableBackgroundValidationNotificationID",0]]},{"name":"EnableShowDocumentCheckFactboxNotification","line":162,"kind":"procedure","params":0,"steps":[[166,"ext","table",1518,"SetStatus",2],[166,"call","GetShowDocumentCheckFactboxNotificationID",0],[167,"ext","table",1518,"InsertDefault",4],[168,"call","GetShowDocumentCheckFactboxNotificationID",0]]},{"name":"DisableShowDocumentCheckFactboxNotification","line":171,"kind":"procedure","params":0,"steps":[[175,"ext","table",1518,"SetStatus",2],[175,"call","GetShowDocumentCheckFactboxNotificationID",0],[176,"ext","table",1518,"InsertDefault",4],[177,"call","GetShowDocumentCheckFactboxNotificationID",0]]},{"name":"IsBackgroundValidationNotificationEnabled","line":180,"kind":"procedure","params":0,"steps":[[184,"ext","codeunit",1330,"IsMyNotificationEnabled",1],[184,"call","GetEnableBackgroundValidationNotificationID",0]]},{"name":"IsShowDocumentCheckFactboxNotificationEnabled","line":187,"kind":"procedure","params":0,"steps":[[191,"ext","codeunit",1330,"IsMyNotificationEnabled",1],[191,"call","GetShowDocumentCheckFactboxNotificationID",0]]},{"name":"CheckInitNotifications","line":204,"kind":"procedure","access":"local","params":0,"steps":[[208,"call","GetEnableBackgroundValidationNotificationID",0],[209,"call","EnableBackgroundValidationNotification",0],[210,"call","GetShowDocumentCheckFactboxNotificationID",0],[211,"call","DisableShowDocumentCheckFactboxNotification",0]]},{"name":"OnInitializingNotificationWithDefaultState","line":215,"kind":"procedure","access":"local","params":0,"steps":[[217,"ext","codeunit",9079,"BackgroundValidationFeatureEnabled",0],[218,"call","CheckInitNotifications",0]]},{"name":"OnModifyRecordEventSalesOrderSubform","line":222,"kind":"procedure","access":"local","params":3,"steps":[[224,"call","BackgroundValidationEnabled",0],[225,"call","SetFullDocumentCheck",1],[226,"ext","page",42,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventSalesInvoiceSubform","line":231,"kind":"procedure","access":"local","params":3,"steps":[[233,"call","BackgroundValidationEnabled",0],[234,"call","SetFullDocumentCheck",1],[235,"ext","page",43,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventSalesCrMemoSubform","line":240,"kind":"procedure","access":"local","params":3,"steps":[[242,"call","BackgroundValidationEnabled",0],[243,"call","SetFullDocumentCheck",1],[244,"ext","page",44,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventSalesReturnOrderSubform","line":249,"kind":"procedure","access":"local","params":3,"steps":[[251,"call","BackgroundValidationEnabled",0],[252,"call","SetFullDocumentCheck",1],[253,"ext","page",6630,"RunBackgroundCheck",0]]},{"name":"OnAfterOnAfterGetRecordSalesOrder","line":258,"kind":"procedure","access":"local","params":2,"steps":[[260,"call","BackgroundValidationEnabled",0]]},{"name":"OnAfterOnAfterGetRecordSalesInvoice","line":265,"kind":"procedure","access":"local","params":2,"steps":[[267,"call","BackgroundValidationEnabled",0]]},{"name":"OnAfterOnAfterGetRecordSalesCreditMemo","line":272,"kind":"procedure","access":"local","params":2,"steps":[[274,"call","BackgroundValidationEnabled",0]]},{"name":"OnAfterOnAfterGetRecordSalesReturnOrder","line":279,"kind":"procedure","access":"local","params":2,"steps":[[281,"call","BackgroundValidationEnabled",0]]},{"name":"OnModifyRecordEventSalesOrder","line":286,"kind":"procedure","access":"local","params":3,"steps":[[288,"call","BackgroundValidationEnabled",0],[289,"call","SetFullDocumentCheck",1],[290,"ext","page",42,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventSalesInvoice","line":295,"kind":"procedure","access":"local","params":3,"steps":[[297,"call","BackgroundValidationEnabled",0],[298,"call","SetFullDocumentCheck",1],[299,"ext","page",43,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventSalesCreditMemo","line":304,"kind":"procedure","access":"local","params":3,"steps":[[306,"call","BackgroundValidationEnabled",0],[307,"call","SetFullDocumentCheck",1],[308,"ext","page",44,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventSalesReturnOrder","line":313,"kind":"procedure","access":"local","params":3,"steps":[[315,"call","BackgroundValidationEnabled",0],[316,"call","SetFullDocumentCheck",1],[317,"ext","page",6630,"RunBackgroundCheck",0]]},{"name":"OnAfterGetCurrRecordSalesDocCheckFactbox","line":322,"kind":"procedure","access":"local","params":1,"steps":[[326,"event","OnBeforeOnAfterGetCurrRecordSalesDocCheckFactbox",1],[330,"call","BackgroundValidationEnabled",0],[331,"call","SetFullDocumentCheck",1],[334,"ext","page",43,"RunBackgroundCheck",0],[336,"ext","page",42,"RunBackgroundCheck",0],[338,"ext","page",44,"RunBackgroundCheck",0],[340,"ext","page",6630,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseOrderSubform","line":346,"kind":"procedure","access":"local","params":3,"steps":[[348,"call","BackgroundValidationEnabled",0],[349,"call","SetFullDocumentCheck",1],[350,"ext","page",50,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseInvoiceSubform","line":355,"kind":"procedure","access":"local","params":3,"steps":[[357,"call","BackgroundValidationEnabled",0],[358,"call","SetFullDocumentCheck",1],[359,"ext","page",51,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseCrMemoSubform","line":364,"kind":"procedure","access":"local","params":3,"steps":[[366,"call","BackgroundValidationEnabled",0],[367,"call","SetFullDocumentCheck",1],[368,"ext","page",52,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseReturnOrderSubform","line":373,"kind":"procedure","access":"local","params":3,"steps":[[375,"call","BackgroundValidationEnabled",0],[376,"call","SetFullDocumentCheck",1],[377,"ext","page",6640,"RunBackgroundCheck",0]]},{"name":"OnAfterOnAfterGetRecordPurchaseOrder","line":382,"kind":"procedure","access":"local","params":2,"steps":[[384,"call","BackgroundValidationEnabled",0]]},{"name":"OnAfterOnAfterGetRecordPurchaseInvoice","line":389,"kind":"procedure","access":"local","params":2,"steps":[[391,"call","BackgroundValidationEnabled",0]]},{"name":"OnAfterOnAfterGetRecordPurchaseCreditMemo","line":396,"kind":"procedure","access":"local","params":2,"steps":[[398,"call","BackgroundValidationEnabled",0]]},{"name":"OnAfterOnAfterGetRecordPurchaseReturnOrder","line":403,"kind":"procedure","access":"local","params":2,"steps":[[405,"call","BackgroundValidationEnabled",0]]},{"name":"OnModifyRecordEventPurchaseOrder","line":410,"kind":"procedure","access":"local","params":3,"steps":[[412,"call","BackgroundValidationEnabled",0],[413,"call","SetFullDocumentCheck",1],[414,"ext","page",50,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseInvoice","line":419,"kind":"procedure","access":"local","params":3,"steps":[[421,"call","BackgroundValidationEnabled",0],[422,"call","SetFullDocumentCheck",1],[423,"ext","page",51,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseCreditMemo","line":428,"kind":"procedure","access":"local","params":3,"steps":[[430,"call","BackgroundValidationEnabled",0],[431,"call","SetFullDocumentCheck",1],[432,"ext","page",52,"RunBackgroundCheck",0]]},{"name":"OnModifyRecordEventPurchaseReturnOrder","line":437,"kind":"procedure","access":"local","params":3,"steps":[[439,"call","BackgroundValidationEnabled",0],[440,"call","SetFullDocumentCheck",1],[441,"ext","page",6640,"RunBackgroundCheck",0]]},{"name":"OnAfterGetCurrRecordPurchDocCheckFactbox","line":446,"kind":"procedure","access":"local","params":1,"steps":[[450,"event","OnBeforeOnAfterGetCurrRecordPurchDocCheckFactbox",1],[454,"call","BackgroundValidationEnabled",0],[455,"call","SetFullDocumentCheck",1],[458,"ext","page",51,"RunBackgroundCheck",0],[460,"ext","page",50,"RunBackgroundCheck",0],[462,"ext","page",52,"RunBackgroundCheck",0],[464,"ext","page",6640,"RunBackgroundCheck",0]]}]}