E-invoice error explained
Code 384 in BT-3 marks a corrected invoice.
Code 384 in BT-3 marks a corrected invoice. It should point to the invoice it corrects: number (BT-25) and preferably date (BT-26) in group BG-3. The rule is a warning, but without the reference the buyer can hardly match the correction.
If the code 384 (Corrected invoice) is used in the element Invoice type code (BT-3), PRECEDING INVOICE REFERENCE BG-3 should be present at least once.
Source: KoSIT configuration XRechnung 3.0.2 (31 Jan 2026).
Add ram:InvoiceReferencedDocument inside ram:ApplicableHeaderTradeSettlement with ram:IssuerAssignedID (the original invoice number) and ram:FormattedIssueDateTime (its date). Many German companies correct with a cancellation or credit note (381) plus a new invoice (380). The reference to the original belongs in BG-3 in that case too.
Wrong (CII)
<rsm:ExchangedDocument>
<ram:TypeCode>384</ram:TypeCode>
</rsm:ExchangedDocument>
<!-- no ram:InvoiceReferencedDocument -->Right (CII)
<rsm:ExchangedDocument>
<ram:TypeCode>384</ram:TypeCode>
</rsm:ExchangedDocument>
<!-- in ram:ApplicableHeaderTradeSettlement: -->
<ram:InvoiceReferencedDocument>
<ram:IssuerAssignedID>RG-26-0042</ram:IssuerAssignedID>
<ram:FormattedIssueDateTime>
<qdt:DateTimeString format="102">20260915</qdt:DateTimeString>
</ram:FormattedIssueDateTime>
</ram:InvoiceReferencedDocument>Sales / Project Operations: Sales and Project Operations have no e-invoice output out of the box. In the WBS Invoice Accelerator for Dynamics 365 code 384 is not used. Credit notes and cancellation invoices become 381 and carry the invoice in Invoice reference as the BG-3 reference.
Check your invoice for free. The validator shows every finding with an explanation and its location in the XML.