---
id: object/table/8022
type: object
title: Table 8022 "Contract Billing Err. Log"
summary: Table 8022 "Contract Billing Err. Log" in Subscription Billing (Microsoft.SubscriptionBilling). 10 fields, 4 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - subscription billing
versions:
  introduced: "29"
  last_changed: null
  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: 5366cc0e4ac505c9bb7f4caaad61dfd5ac5ecb48abce8bd6d1733a37addc3ca8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Billing/Tables/ContractBillingErrLog.Table.al
    title: src/Apps/W1/Subscription Billing/app/Billing/Tables/ContractBillingErrLog.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 8022
name: Contract Billing Err. Log
caption: Contract Billing Error Log
namespace: Microsoft.SubscriptionBilling
app: Subscription Billing
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 10
  procedures: 5
  events: 0
  subscribers: 0
relations:
  out: 10
  referenced_by: 1
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 8022 "Contract Billing Err. Log"

> Table 8022 "Contract Billing Err. Log" in Subscription Billing (Microsoft.SubscriptionBilling). 10 fields, 4 public procedures. Introduced in BC29, still in BC30.

Subscription Billing · Microsoft.SubscriptionBilling · captioned "Contract Billing Error Log" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Billing/Tables/ContractBillingErrLog.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Contract Billing Error Log |
| DataClassification | CustomerContent |
| LookupPageId | Contract Billing Err. Log |
| DrillDownPageId | Contract Billing Err. Log |
| Permissions | tabledata "Contract Billing Err. Log" = rmid, tabledata "Billing Line" = rm |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Entry No. | Integer | Specifies the unique entry number for the error log record. | AutoIncrement |
| 3 | Billing Template Code | Code[20] | Specifies the billing template code that was being processed when the error occurred. | TableRelation [Table 8060 "Billing Template"](../table/8060.md) ("Billing Template".Code) |
| 4 | Error Text | Text[250] | Specifies the error message that occurred during the auto contract billing process. |  |
| 5 | Subscription | Code[20] | Specifies the subscription number that was being processed when the error occurred. | TableRelation [Table 8057 "Subscription Header"](../table/8057.md) ("Subscription Header"."No.") |
| 6 | Subscription Entry No. | Integer | Specifies the subscription line entry number that was being processed when the error occurred. | TableRelation [Table 8059 "Subscription Line"](../table/8059.md) ("Subscription Line"."Entry No.") |
| 7 | Subscription Contract No. | Code[20] | Specifies the subscription contract number that was being processed when the error occurred. | TableRelation [Table 8052 "Customer Subscription Contract"](../table/8052.md) ("Customer Subscription Contract"."No.") |
| 8 | Contract Line No. | Integer | Specifies the contract line number that was being processed when the error occurred. | TableRelation [Table 8062 "Cust. Sub. Contract Line"](../table/8062.md) ("Cust. Sub. Contract Line"."Line No." where("Subscription Contract No." = field("Subscription Contract No."))) |
| 9 | Contract Type | Code[20] | Specifies the contract type that was being processed when the error occurred. | TableRelation [Table 8053 "Subscription Contract Type"](../table/8053.md) ("Subscription Contract Type".Code) |
| 10 | Assigned User ID | Code[50] | Specifies the user ID assigned to handle this error. | TableRelation [Table 91 "User Setup"](../table/91.md) ("User Setup"."User ID"); DataClassification EndUserIdentifiableInformation |
| 11 | Salesperson Code | Code[20] | Specifies the salesperson code associated with the contract that had an error. | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) (Salesperson/Purchaser) |

## Keys

- PK: Entry No. (clustered)

## Procedures

- `InsertUnspecificLog(ErrorText: Text[250])` (internal)
- `InsertLogFromBillingTemplate(BillingTemplateCode: Code[20]; ErrorText: Text[250])` (internal)
- `InsertLogFromSubscriptionLine(BillingTemplateCode: Code[20]; SubscriptionLine: Record "Subscription Line"; ErrorText: Text[250])` (internal)
- `DeleteEntries(DaysOld: Integer)`

Plus 1 local procedures.

## Relations

- drill-down page [Page 8113 "Contract Billing Err. Log"](../page/8113.md)
- lookup page [Page 8113 "Contract Billing Err. Log"](../page/8113.md)
- Salesperson Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Subscription Contract No.: TableRelation [Table 8052 "Customer Subscription Contract"](../table/8052.md)
- Contract Type: TableRelation [Table 8053 "Subscription Contract Type"](../table/8053.md)
- Subscription: TableRelation [Table 8057 "Subscription Header"](../table/8057.md)
- Subscription Entry No.: TableRelation [Table 8059 "Subscription Line"](../table/8059.md)
- Billing Template Code: TableRelation [Table 8060 "Billing Template"](../table/8060.md)
- Contract Line No.: TableRelation [Table 8062 "Cust. Sub. Contract Line"](../table/8062.md)
- Assigned User ID: TableRelation [Table 91 "User Setup"](../table/91.md)

## Referenced by

1 fields in 1 objects relate to this table (TableRelation or CalcFormula).

- [Table 8070 "Subscription Billing Cue"](../table/8070.md): Errors Automated Billing

## Pages and codeunits on this table

- [Page 8113 "Contract Billing Err. Log"](../page/8113.md) (source table)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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). 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: "table", object_name: "Contract Billing Err. Log")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
