web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Send X-Rechnung Bug "Buyer Reference"

(3) ShareShare
ReportReport
Posted on by 6
Dear Community,
 
We are experiencing the following issue in our environment (Business Central 27, German localization, current version) when exporting an XRechnung (E-Invoice):

The mandatory field Buyer Reference (BT-10) is not being output in the generated XML, even though:
  • The field “Ihre Referenz” (“Your Reference”) is filled out with a value in the sales order and posted sales invoice (e.g., “IhreRef49”).
  • In the E-Belegdienst “XRECHNUNG” under “Export – Buyer Reference,” the mapping is set to “Ihre Referenz” and “Buyer Reference Required” is activated.
  • The “Elektronische Belegformate” (Electronic Document Formats) table has been extended to include “XRECHNUNG,” and is configured with codeunit 13916 (“Export XRechnung Document”).
Despite these settings and data, the <cbc:BuyerReference> element is not written in the exported XML and the XRechnung is rejected by the validator with error [BR-DE-15] “The element ‘Buyer reference’ (BT-10) must be provided”.
Screenshots of the relevant settings and invoices, as well as the generated XML, can be provided.
We kindly ask for clarification:
  • Is this a known bug in BC27 or codeunit 13916?
  • How can the mapping be correctly activated so that Buyer Reference is reliably included in the export?
  • Is there a hotfix, update, or workaround to ensure the Buyer Reference (as required by the XRechnung standard, BT-10) is written to the XML?
Thank you for your support!
 
Best regards,
Kai
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    3,196 on at
    Send X-Rechnung Bug "Buyer Reference"
    Hello,
     
    Updating to the latest BC27 cumulative update usually resolves it.
    If updating isn’t possible, a small event subscriber can be used as a workaround to force the Buyer Reference into the XML.
     
    Regards,
    Oussama Sabbouh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,106

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,291 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,010 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans