HomeError code lexicon › BR-CO-20
BR-CO-20 Field BG-26 Calculation and consistency rules (BR-CO)

Fix BR-CO-20: Invoice line period date (BT-134/BT-135) missing

[BR-CO-20]-If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date

BR-CO-20 in your own invoice? Upload the file and find every error in seconds.

What does BR-CO-20 mean?

If a period is used for an invoice line, the start or the end date must be set. That way the period is defined.

Common causes of BR-CO-20

How to fix BR-CO-20

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BG-26 along this XPath://ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod
  2. Apply the fix. If an invoice line period (BG-26, 'ram:BillingSpecifiedPeriod' inside the line) is used, at least the start date (BT-134, 'ram:StartDateTime') or the end date (BT-135, 'ram:EndDateTime') must be filled. Add one of the two dates in the line period group or remove the empty group.
  3. Validate again. Save the file and validate it again to check that BR-CO-20 is no longer reported.
Concrete fix

If an invoice line period (BG-26, 'ram:BillingSpecifiedPeriod' inside the line) is used, at least the start date (BT-134, 'ram:StartDateTime') or the end date (BT-135, 'ram:EndDateTime') must be filled. Add one of the two dates in the line period group or remove the empty group.

XPath//ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<ram:SpecifiedLineTradeSettlement>
  <ram:BillingSpecifiedPeriod>
  </ram:BillingSpecifiedPeriod>
</ram:SpecifiedLineTradeSettlement>
Correct
<ram:SpecifiedLineTradeSettlement>
  <ram:BillingSpecifiedPeriod>
    <ram:StartDateTime>
      <udt:DateTimeString format="102">20260401</udt:DateTimeString>
    </ram:StartDateTime>
  </ram:BillingSpecifiedPeriod>
</ram:SpecifiedLineTradeSettlement>

Frequent questions about BR-CO-20

How does BR-CO-20 differ from BR-CO-19?
BR-CO-19 concerns the invoicing period on document level (BG-14), BR-CO-20 the period of a single invoice line (BG-26). The rule is the same: at least a start or an end date.
Where does the invoice line period sit in CII?
In 'ram:BillingSpecifiedPeriod' inside 'ram:SpecifiedLineTradeSettlement' of the respective line, with 'ram:StartDateTime' (BT-134) and 'ram:EndDateTime' (BT-135).

Related error codes

Check BR-CO-20 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice