eInvoice Sender for Microsoft Dynamics 365 BC - en-US
This documentation covers the essential functions for daily use of DEXPRO eInvoice Sender. For advanced configuration and technical details, refer to the expert setup options and contact support as needed.
- System Requirements
- Installation
- Configuration & Administration
- Permission sets
- DEXPRO Core
- eInvoice Sender Setup
- Customer and Vendor Setup
- OAuth 2.0 Setup
- VAT clauses and VATEX codes
- XRechnung field assignment
- Payload provenance
- Application / Usage
- FAQ
- Document Status
- Artifacts (GoBD audit history)
- Validation Findings
- Rule Setup
- KoSIT Report
- The sending pipeline and Job Queue
- Live compliance check (FactBox)
- Payment method and unit of measure mapping
- Extensibility (developers)
System Requirements
System requirements for using eInvoice Sender for Dynamics 365 BC
Supported Microsoft Dynamics 365 Business Central versions
Microsoft Dynamics 365 Business Central integration is possible from the following version due to minimum technical requirements:
Supportet Microsoft Dynamics 365 Business Central Versions
The prerequisite for operation is that the respective Microsoft Dynamics 365 Business Central version is still in regular support. The extended support is excluded.
Supported Digivoice Versions
A licensed Digivoice system is required to use the eInvoice Sender in Microsoft Dynamics 365 Business Central and for operation.
License: Valid Digivoice License/Credentials
Installation
Licenses
Microsoft
Information about the Microsoft Business Central licenses.
DIGIVOICE
The DEXPRO Digivoice system that should be connected to Business Central requires a valid customer license.
Obtaining the DEXPRO module
Detailed Information are here.
OnPrem
For OnPrem installations, an runtime package with the required apps is provided upon request of a registered reseller / partner. These modules are added to the customer license by the partner and then imported into Microsoft Dynamics Business Central. It should be noted that the DEXPRO Core module forms the basis for all DEXPRO modules and must therefore be imported first.
Cloud
For cloud installations, you only need the Microsoft AppSource. This is where the required DEXPRO modules are downloaded.
Setup Wizard
This wizard guides the user step by step through the different facilities of the module.
Guided Setup Wizard
Step 1: Welcome
- Review the introduction
- Enable Expert Settings if you need advanced configuration options
Step 2: Basic Setup Information
Configure the fundamental settings for electronic invoicing:
- Base URL: Web service endpoint for document generation
- Access credentials: Authentication details
- Default settings: Standard configuration options
Step 3: Payment Information (if Expert Mode enabled)
- Configure payment method mappings
- Set up bank account details
- Define payment terms
Step 4: Validation Settings (if Expert Mode enabled)
- Configure document validation rules
- Set field validation patterns
- Define mandatory field requirements
Step 5: Final Review
- Review all settings
- Click Finish to complete setup
Manual Setup Options
Access additional setup through DEXPRO eInvoice Setup page:
Actions Available:
- Document Queue: View and manage pending documents
- Process Log: Review processing history and errors
- Customer Setup: Configure customer-specific settings
- Vendor Setup: Configure vendor-specific settings
Mappings Section:
- Payment Term Keywords: Map payment terms to XRechnung codes
- UoM Code Mappings: Map units of measure to international standards
Configuration & Administration
Permission sets
In order to use the modules, the appropriate authorization set must be assigned to the respective users.
The following are supplied with:
-
DXP Core Admin - DEXPRO Core Administrator
-
DXP Core User - DEXPRO Core User
- DXP eInvoice Admin - DEXPRO eInvoice Administrator
- DXP eInvoice User - DEXPRO eInvoice User
- DXP eInvoice Support - DEXPRO eInvoice Support (read-only access to every eInvoice table, including artifact bytes and logs, plus Execute; intended for support and audit diagnosis with no write access)
Users without an eInvoice permission set
Users who do not work with e-invoices do not need an eInvoice permission set. The standard pages and processes the app extends keep working for them, for example the posted sales, service and purchase documents, the purchase credit memo, the Payment Methods and VAT Clauses pages, postings of documents that cannot become an e-invoice (such as purchase invoices or shipments) and emails of such documents. For these users:
- the eInvoice Payment Type column on the Payment Methods page shows None;
- payment methods they create, change, rename or delete are not carried over into the e-invoice payment mapping - a user with an eInvoice permission set should then set the eInvoice Payment Type of a new or renamed payment method on the Payment Methods page;
- the KoSIT report actions on posted documents find no report, and the e-invoice field validation on the purchase credit memo stays off.
Users who post or send documents that become e-invoices (sales and service invoices and credit memos, purchase credit memos), or who work with the e-invoice pages, still need one of the eInvoice permission sets.
DEXPRO Core
The DEXPRO Core manages the individual DEXPRO apps and their documents per client.
All documents that have been entered and processed via the various DEXPRO modules in Microsoft Dynamics 365 Business Central are displayed. A global number series, which is used across all DEXPRO apps, is used to complete individual documents. This offers the advantage that users only have to work with one number series per document.
Further information can be found here.
eInvoice Sender Setup
In the eInvoice Sender setup, both the connection to the DIGIvoice system and the processing within the app are set up.
Menu
Download Configuration
This is used to download the configuration and structure of the e-invoice documents.
Related
Document Queue
You can access the document queue via this menu item.
Process Log
You can access the process log of transactions with Digivoice via this menu item.
Customer Setup
You can access the customer-specific setup via this menu item.
Vendor Setup
You can access the vendor-specific setup via this menu item.
OAuth 2.0 Setup
This menu item takes you to the OAuth 2.0 setup for authentication on the Digivoice system.
Mappings
- Payment Term Keywords
- Unit of Measure Codes
- XR Field Structure
General
In this FastTab, you can activate/deactivate the use of this app and set up the connection to the Digivoice system.
Export Settings
The standards for the export are saved here.
XRechnung 3.0 defaults
The export defaults ship pre-configured for the current XRechnung 3.0 standard. The Business Process Type and Specification Identifier are the two profile fields that identify the e-invoice standard against which each document is generated:
- Business Process Type - default urn:fdc:peppol.eu:2017:poacc:billing:01:1.0.
- Specification Identifier - default urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0 (the XRechnung 3.0 CIUS identifier).
These defaults ensure generated documents declare conformance to XRechnung 3.0. Only change them if you are targeting a different profile and you understand the downstream validation impact.
E-invoice in email sending
When a document is sent through the Business Central email (the Email action on a posted document), the app completes the email. Two fields control the attachments:
- Add eInvoice to Email Attachments – attaches the e-invoice in the format of the sending profile.
- Keep Standard PDF with ZUGFeRD – with the ZUGFeRD sending profile, the ZUGFeRD PDF replaces the document's standard PDF. When this field is on, the standard PDF stays in the email as well. It is off by default.
The following applies:
- Only the standard PDF that Business Central attaches as <document type> <No.>.pdf is replaced. All other attachments – such as terms and conditions, incoming-document files or attachments of other extensions – always stay.
- The app only handles the document that is actually being sent. Emailing an issued reminder leaves the email unchanged: the reminder PDF stays the attachment, and no e-invoice is created for the reminded invoices.
- When App Enabled is off, the app does not change outgoing emails at all – neither the attachments nor the recipient and CC.
If another extension renames the standard PDF so that the document number is missing from the file name, the app does not recognise it as the standard PDF. It then stays in the email next to the ZUGFeRD PDF.
Document attachments in the e-invoice
With Add Document Attachments to eInvoice switched on, the attachments of the posted document are embedded in the e-invoice as supporting documents - each with its content, its MIME code and its file name including the extension. The field is off by default, because everything embedded goes to the customer: switch it on only if all attachments of your posted documents may be passed on.
- Only the file types XRechnung allows for embedded documents are embedded: pdf, png, jpg/jpeg, csv, xlsx and ods. Attachments of any other type, and attachments without content, are left out; the e-invoice itself is still created.
- The e-invoice file that the app itself attaches to the posted document (Add eInvoice to Document Attachments) is not embedded again.
- File names must be unique within a document: two attachments with the same name and extension make the e-invoice fail the KoSIT check.
- The compliance check reports an attachment with a file type that is not allowed, and a file name used more than once, as a warning (rule VAL-ATT-001).
eInvoice Compliance Check
Here you will find the settings for the compliance check.
Document Queue
Here you can specify how long the entries are to be kept.
Expert Settings
The Show Expert Settings toggle hides advanced, low-level configuration by default. It is a UI-only switch (it is not stored in the setup). When you enable it, the following additional groups become visible on the setup page:
- XRechnung - profile identifiers and XRechnung-specific export defaults (see XRechnung 3.0 defaults above).
- XML Validation - settings controlling schema/schematron validation of the generated XML.
- Validation Patterns - the regular-expression patterns used by the compliance rules.
- Object Schemas - the schema definitions describing the document object structure.
Leave Expert Settings switched off during normal operation. These groups define how documents are built and validated - incorrect changes can cause generation or validation to fail.
The behaviour of individual compliance rules (enable/disable, severity override, category and stage) is configured separately - see the Rule Setup page.
Customer and Vendor Setup
Customer-Specific Settings
Access via DEXPRO eInvoice Setup → Customer Setup
Configuration Options:
- Override Contact Email: Use different email than default
- CC Email Address: Additional recipients set in CC when sending
- Automatically Send Documents: Enable/disable automatic document sending
- Default Sending Profile: Default format for this customer
- Buyer Reference: Customer-specific reference requirements
Vendor-Specific Settings
Similar configuration available for vendors for purchase credit memos.
Email Templates
The system uses Word-based email templates:
Available Templates:
- SalesInvoiceEmail.docx: Sales invoice emails
- SalesCreditMemoEmail.docx: Sales credit memo emails
- ServiceInvoiceEmail.docx: Service invoice emails
- PurchaseCreditMemoEmail.docx: Purchase credit memo emails
Template Features:
- Professional formatting
- Dynamic content insertion
- Company branding
- Multi-language support
OAuth 2.0 Setup
The OAuth 2.0 / Open Id users and their access tokens are managed here.
VAT clauses and VATEX codes
When an invoice line is not taxed at the standard or a zero rate - an intra-community supply, a reverse-charge supply, a tax exemption - the e-invoice must state a VAT exemption reason for its VAT category: a text and a code from the EU VATEX code list. The text is the description of the VAT clause on the VAT posting setup. The Code of a VAT clause in Business Central (for example EU-19) is a free key and is never sent as the exemption reason code; instead, the app adds the field eInvoice VATEX Code to every VAT clause.
Fields and actions on the VAT Clauses page
- eInvoice VATEX Code - the VATEX code the e-invoice sends for this clause. Leave it blank to use the detected code.
- Detected eInvoice VATEX Code - the code the app recognises from the clause code and description, for example VATEX-EU-IC for "Steuerfreie innergemeinschaftliche Lieferung". It is used as long as no VATEX code is set on the clause. If it is blank or wrong, set the VATEX code on the clause.
- Suggest VATEX Codes - lists the clauses that have no VATEX code yet together with their detected code and, after you confirm the list, stores the detected codes on those clauses. Clauses for which no code was detected stay blank; set their code manually.
While the app is enabled, creating or editing a VAT clause fills in the detected code if the clause has no VATEX code yet. A VATEX code that is set on a clause is never overwritten - neither when you edit the clause nor by a later app version with a different detection.
The list offers the EU-wide VATEX codes that the KoSIT validator used by the Digivoice service accepts. National codes (VATEX-FR-..., VATEX-ES-...) and codes that were added to the code list only recently, such as VATEX-EU-144, VATEX-EU-146-1E or VATEX-EU-159, are not offered, because that validator would reject them.
How the code is detected
A clause code that is itself a VATEX code - VATEX-EU-IC, or EU-IC without the prefix - is taken as it is. Otherwise the app reads the code, Description and Description 2 of the clause and recognises the usual wording in German and English, common abbreviations, references to the UStG and the EU VAT Directive (for example § 4 Nr. 1b, § 6a or § 13b UStG, Art. 138, 146 or 194 of the VAT Directive) and the key terms in French, Italian, Dutch and Spanish. It detects:
- intra-community supply of goods - VATEX-EU-IC;
- reverse charge - VATEX-EU-AE;
- export outside the EU - VATEX-EU-G;
- not subject to VAT - VATEX-EU-O;
- the margin schemes for travel agents, second-hand goods, works of art and collectors' items or antiques - VATEX-EU-D, VATEX-EU-F, VATEX-EU-I and VATEX-EU-J.
Only exact patterns count. If nothing matches, or the wording fits more than one case (for example an "innergemeinschaftliche Lieferung" that also mentions "Reverse Charge"), no code is detected. Check the detected codes once and store them with Suggest VATEX Codes or set them manually; a stored code no longer depends on the detection.
VAT category of a VAT posting setup
The VAT category of an invoice line follows from its VAT posting setup:
| VAT posting setup | VAT category |
|---|---|
| VAT calculation type Reverse Charge VAT | K (intra-community supply) or AE (reverse charge) - see below |
| VAT calculation type Sales Tax with VAT % 0 | E (exempt) |
| Normal VAT or Full VAT with VAT % 0, marked as EU Service | K (intra-community supply) |
| Normal VAT or Full VAT with VAT % 0 | Z (zero rate) |
| Normal VAT or Full VAT with a VAT % above 0 | S (standard rate) |
Intra-community supply or reverse charge
Business Central posts an intra-community supply of goods and a reverse-charge supply alike with Reverse Charge VAT; only the VAT clause tells them apart. If the clause of the VAT posting setup maps to VATEX-EU-IC and the setup is not marked as EU Service, the e-invoice declares an intra-community supply (VAT category K). In every other case it declares reverse charge (VAT category AE); services to businesses in other EU countries (EU Service) are always reverse charge.
Which code the e-invoice sends
- The VATEX code of the clause, if it fits the VAT category of the line.
- Otherwise the category's own code: VATEX-EU-IC for K, VATEX-EU-AE for AE, VATEX-EU-G for G and VATEX-EU-O for O.
- An exemption (category E) has no code of its own: without a fitting clause code, the e-invoice carries only the exemption reason text.
- Lines with standard rate (S) or zero rate (Z) carry no exemption reason, so the VATEX code of their clause is not sent.
Without a VAT clause on the VAT posting setup, the app uses a generic exemption reason text for the category, for example Reverse charge or Intra-Community supply.
Validation
Rule VAL-VAT-005 reports, as a warning, VAT clauses that do not decide what they should. The e-invoice is still valid, but it may not say what you intend:
- a clause on a Reverse Charge VAT setup (not marked as EU Service) that maps to no VATEX code - the e-invoice then declares reverse charge;
- a clause on an exemption (category E) that maps to no VATEX code - the e-invoice then carries only the exemption reason text;
- a clause whose VATEX code does not fit the VAT category of its VAT posting setup;
- an intra-community supply whose buyer (the VAT country/region of the document) or ship-to country is not another EU country - check the VAT clause and the VAT Bus. Posting Group of the document.
Two rules report missing data of an intra-community supply as errors, because KoSIT would reject the e-invoice:
- BR-IC-02 - the buyer's VAT identifier is missing: enter the VAT Registration No. on the customer card (on the vendor card for a purchase credit memo).
- BR-IC-12 - the deliver-to country and the delivery date are required: complete City, Post Code and Country/Region Code of the ship-to address on the document.
The findings appear in the Live compliance check (FactBox) and in the Validation Findings; a VAL-VAT-005 finding about a clause leads to that VAT clause.
From Business Central 28.4 on, Microsoft's PEPPOL app adds a VATEX code field of its own to the VAT clause. The eInvoice Sender does not read it, so that the e-invoice does not depend on another app - always maintain eInvoice VATEX Code.
XRechnung field assignment
A field assignment writes a value into an XRechnung field that Business Central does not fill by itself - the payee of a factored invoice, a third address line, a note on an invoice line. Every assignment is a sentence in three parts: which XRechnung field is written, for which documents, and where the value comes from. No code and no change to the standard mapping.
Field assignments are set up on the DEXPRO eInvoice Field Assignments page. Everything they do to a document is recorded on the Payload provenance.
{add screenshot of DEXPRO eInvoice Field Assignments here}
The list is for reading: each row shows the XRechnung field, the documents the assignment applies to (Applies To), where the value comes from (Source Type and Source), whether there is a Condition, and whether the assignment is Active. Assignments that are switched off are greyed. An assignment is edited on its card. Further columns - Priority, Level, Replace Standard Value - can be added with Personalize.
The picture shows the shipped assignments, four of which are set up as an example. All of them ship without a source type, without a source and switched off - the app ships no values.
The field catalogue
The catalogue is the list of fields the generation endpoint currently accepts. It is downloaded from the endpoint, so it follows the endpoint rather than the app. Open it from the eInvoice Sender Setup page with XR Field Structure, or from the field assignments with Field Catalogue.
- XRechnung Field Path - the field, written as a dotted path such as
payee.nameorinvoiceLines.note. This path is what an assignment targets. - Description - what the endpoint says the field is for.
- Is Required - whether the endpoint requires the field.
- Level - Header or Line. It follows from the path: everything under
invoiceLines.is written once per invoice line, everything else once per document. - Filled by Standard - whether Business Central already fills the field without any configuration. A field that is neither filled here nor assigned stays empty in the e-invoice.
- Assigned - whether an active field assignment writes it.
Actions: Assign Field creates an assignment for the selected field and opens its card, Field Assignments opens the list, Create Extension downloads a small AL extension that calculates the value in code, and Refresh Field Catalogue fetches the field list from the endpoint again. Use the refresh after the endpoint has added fields; it touches nothing but this list.
Which fields can be assigned
Two kinds of field are refused, and both are refused while you are setting the assignment up rather than when a document is exported. The lookup of the XRechnung field on the card therefore does not offer them in the first place.
- Required and already filled. A field the endpoint requires and Business Central already fills is protected: "… is required by the endpoint and is already filled from Business Central. It cannot be assigned, because a wrong value there would change what the recipient is invoiced without anybody noticing." A required field the app does not fill stays open - that is the field an assignment is most often needed for.
- Repeated groups. Allowances, charges, the VAT breakdown, preceding invoice references, item attributes and classifications are repeated groups whose entries answer to no single Business Central record: "… lies inside a repeated group whose entries do not correspond to Business Central records, so there is no record an assignment could read. Only header fields and invoice line fields can be assigned."
A path that is not in the catalogue is refused as well: "… is not a field of the current endpoint. Download the field catalogue and pick a field from the list." Refresh the catalogue if you expect a field the endpoint has recently added.
Setting an assignment up
The DEXPRO eInvoice Field Assignment card follows the assignment's sentence in three sections - XRechnung Field, Applies To and Value - and shows only what the answers given so far make relevant. The document types appear once the assignment does not apply to all of them; of the four source types, only the fields of the one that is chosen are shown.
{add screenshot of DEXPRO eInvoice Field Assignment here}
XRechnung Field
- XRechnung Field Path - the field that is written, chosen from the assignable fields of the catalogue.
- Endpoint Note - what the endpoint says about the field, usually the business term of the standard, such as BT-37.
- Description - your own note on what the assignment is for.
- Active - whether the assignment is used. It can only be switched on once it is complete; otherwise the card says what is missing, for example "Choose where the value comes from first." or "Choose the table and the field the value is read from first." A new assignment is switched off.
- Replace Standard Value - whether the assignment replaces the value Business Central puts into the field by itself. It is only shown for XRechnung fields Business Central fills. When it is off, the assignment only fills the field where it is empty.
Show more also shows the Code, the Level and Required by the Endpoint. You do not have to give a code: leave it empty and it is taken from the XRechnung field. It identifies the assignment, for example in the payload provenance.
Applies To
- All Document Types - whether the assignment applies to every exported document type.
- Document Types - shown when All Document Types is off. Use the three dots to tick one or several document types in the Choose the Document Types list, for example sales invoices and sales credit memos together. You can also type the names, separated by commas.
- Condition - shown when the assignment applies to exactly one document type. Always means it applies to every document of that type. Choosing the value (or the Condition action) opens the rules of the condition; afterwards the field shows how many there are, such as 1 rule. The assignment then applies only to documents one of the rules matches - for example only to invoices with the payment method code FACTORING. Remove Condition deletes the condition with its rules.
- Priority - only shown when another assignment writes the same XRechnung field. See Several assignments on one field.
{add screenshot of Choose the Document Types here}
A condition is checked against the table of one document type - the posted header or the posted line. That is why there is no condition for several document types; the card says so in its place. If two document types each need a condition, create two assignments on the same XRechnung field. Use Tables for Rules to add the related tables a rule may read, such as the customer or the item.
Value
Source Type decides where the value comes from. It is empty until something is chosen.
- BC Field - a field in Business Central. You choose the Table and, in it, the Field. Dates and amounts are formatted the way the payload sends them.
- Fixed Value - a value that is the same on every document, entered in Value.
- Rules - the value comes from the first value rule that matches. Choosing Value Rules opens them; each rule carries the field eInvoice Assigned Value on its card, and that value is what is written. Like the condition, value rules need exactly one document type.
- Extension - an extension calculates the value in code by subscribing to OnResolveAssignmentValue. See Extensibility (developers).
A blank value is never written. An empty element in an e-invoice is worse than an absent one - the validator rejects it - so an assignment whose source yields nothing simply leaves the field alone.
The table of a BC field
Not every table of the database can be chosen as the table, only what can be reached from the document. The Choose the Source Table list says for each table, in the Connected Through column, how it hangs together with the document:
{add screenshot of Choose the Source Table here}
- The document itself - the posted document header, or for a line field the document line itself.
- Tables the document points at - such as the customer, the salesperson or the payment terms, each with the field of the document the connection runs through. The customer is listed twice, through Sell-to Customer No. and through Bill-to Customer No.: those can be two different customers, and you decide which one is meant. The card names the way, as in Customer (through Bill-to Customer No.).
- The item, resource or G/L account of a line - through the line's No., and only on lines of the matching Type: Item (through No., where Type is Item). On a G/L account line such an assignment writes nothing.
- Company Information - the same record for every document.
When the assignment applies to several document types, the list offers what all of them can reach. Sales invoices and sales credit memos point at the customer through the same fields, so it stays; "the document itself" is then called Sales Invoice Header / Sales Cr.Memo Header, and the fields on offer are the ones both tables have. When the assignment applies to all document types, only the company information is left - the document is a different table for each document type; the card points that out.
Tables whose record cannot be identified by one single value of the document, such as the ship-to address or dimension values, are not offered. For those values there are Rules or an Extension.
When you change something later
- Changing the source type - what was entered for the old source type is cleared, and the assignment is switched off until the new source is complete. If there are value rules, the card asks first and then deletes them as well.
- Changing the document types - a source that fits the new document types stays: a field of the document moves along from the invoice to the credit memo when the new table has it too. If it no longer fits, it is cleared and the assignment is switched off.
- Assignments with rules - rules belong to the table of one document type. If the assignment has a condition or value rules, changing the document type is refused rather than leaving rules behind that never match again: "This assignment has rules, and a rule is written for the table of one document type and one level. Remove the condition and the value rules first, or create a separate assignment."
Several assignments on one field
More than one assignment may target the same field: one per document type, or staggered by condition. They are tried in Priority order, lowest first, and the first one whose condition holds and which yields a value wins.
An assignment that does not fire leaves the field open for the next one - whether its condition did not match, its source was empty, or its source record could not be reached. An assignment that is refused because the standard already filled the field settles the field: no later assignment tries it.
The assignments shipped with the app
The app ships thirteen prepared assignments. They are the fields the endpoint offers, that may be assigned, and that Business Central cannot fill by itself - finding those among the paths of the catalogue is the fiddly part of setting an assignment up. Only the XRechnung field and the description are prepared: the assignments arrive switched off, without a source type and without a value. Give a row its source and switch it on, rather than switching off the twelve you do not need.
| Code | Field | What it is |
| PAYEE-NAME | payee.name | BT-59 Payee name - needed when payment does not go to the seller |
| PAYEE-ID | payee.identifier | BT-60 Payee identifier |
| PAYEE-ID-SCHEME | payee.identifierSchemeIdentifier | Scheme of BT-60, from the ISO/IEC 6523 code list |
| PAYEE-LEGAL-ID | payee.legalRegistrationId | BT-61 Payee legal registration identifier |
| PAYEE-LEGAL-SCHEME | payee.legalRegistrationIdSchemeIdentifier | Scheme of BT-61, from the ISO/IEC 6523 code list |
| SELLER-ADDRESS-3 | seller.postalAddress.addressLine3 | BT-37 Seller address line 3 - Business Central has only two |
| BUYER-ADDRESS-3 | buyer.postalAddress.addressLine3 | BT-37 Buyer address line 3 - Business Central has only two |
| DELIVERY-ADDRESS-3 | deliveryInformation.deliverToAddress.addressLine3 | BT-165 Deliver to address line 3 - Business Central has only two |
| TAX-REP-ADDRESS-3 | sellerTaxRepresentativeParty.postalAddress.addressLine3 | BT-164 Tax representative address line 3 - Business Central has only two |
| LINE-NOTE | invoiceLines.note | BT-127 Invoice line note - free text about this line |
| LINE-ORDER-LINE | invoiceLines.referencedPurchaseOrderLineReference | BT-132 Referenced purchase order line - from the buyer's own order |
| LINE-PRICE-DISCOUNT | invoiceLines.priceDetails.priceDiscount | BT-147 Item price discount included in the gross price |
| LINE-GROSS-PRICE | invoiceLines.priceDetails.grossPrice | BT-148 Item gross price - needed beside BT-147, which is subtracted from it |
Restore Default Assignments brings them back: the ones that were deleted are created again, and the ones that are still there get their shipped XRechnung field and description back. What you set up on them - the source, the documents they apply to, whether they are switched on - stays, and your own assignments are not touched.
LINE-GROSS-PRICE is the only shipped assignment with Replace Standard Value switched on. Business Central sends the gross price equal to the net price, so an assignment that may not replace it could never write anything.
What an assignment needs beside it
A field assignment creates the groups along its path, so a single assigned field can bring a whole business group into being that the document has no other content for - and the validator then rejects the invoice over the empty elements left in it. When you switch such an assignment on, the app says so:
- A payee field without the payee name. "The endpoint always writes the payee name, so a payee without one leaves an empty element behind and the invoice is rejected." The hint stops once PAYEE-NAME is active as well.
- A price discount without the gross price. "The gross price is sent equal to the net price, so a price discount on its own breaks the rule that the net price is the gross price less the discount. The app ships an assignment for the gross price." Switch LINE-GROSS-PRICE on beside it and give it the gross price.
- The seller tax representative. "An assignment to … creates a seller tax representative on every document it applies to. Where the document has none, its name, country and VAT identifier stay empty and the invoice is rejected. Give the assignment a condition that picks the documents that have one."
- The seller's tax registration number. "An assignment to … only works where the seller has no VAT identifier. The endpoint writes both into one tax registration group, which the schema refuses, so every document that carries a VAT identifier as well is rejected." This concerns
seller.taxRegistrationIdentifier.
These are hints, not refusals. Whether the companion is really needed depends on the documents the assignment applies to, and only you know those - a tax representative address line is correct on a document that has a tax representative.
Testing an assignment
Test Assignment runs one assignment against a posted document you pick - also before it is switched on, so the order is set up, test, switch on. Test All Assignments runs every active one, which is where you see an assignment quietly losing a field to another with a higher priority. If the assignment applies to several document types, the test first asks which one to test against. Nothing is sent, stored or logged.
{add screenshot of Test Field Assignments here}
The result shows the same rows the real run would record - what would be written, what it would replace, and every assignment that would do nothing, with the source that was looked in and the reason in plain words:
- "The source value is empty, so nothing was written."
- "The condition of the assignment is not met for this document."
- "None of the value rules matches this document."
- "This line is not of the type Item." - for a source that runs through the No. of a line.
- "Bill-to Customer No. is empty here, so there is no Customer to read from."
- "No subscriber of OnResolveAssignmentValue supplied a value."
- "The field was already filled by the standard mapping and this assignment may not override it."
If no assignment applies at all, the page says so: "No field assignment applies to this document. Nothing would be written, and nothing would be skipped."
Related
- Payload provenance - what the assignments did to a document that was actually generated.
- Artifacts (GoBD audit history) - the generated e-invoice the provenance belongs to.
- Extensibility (developers) - supplying a value from code.
Payload provenance
The Payload provenance answers one question after the fact: why does this value in the generated e-invoice say what it says? It records what a field assignment wrote into the payload, what it replaced, and which assignment should have fired and did not.
Only what a configuration decided is recorded. The values the standard mapping writes by itself are not logged row by row - they stand in the stored payload, and the reason for them is the app's own mapping, not a setting somebody made. A document without field assignments therefore produces no provenance at all.
Where to find it
- Artifacts - the Payload Provenance action opens the entries of the selected artifact. Because the provenance belongs to the artifact, it always answers for the exact payload that was generated, including a superseded earlier attempt.
- Document queue - the Field Assignments FactBox summarises the same entries for the queue entry in view.
The Field Assignments FactBox
{add screenshot of Field Assignments here}
- Assigned Values - how many values a field assignment wrote into the payload of this document.
- Replaced Standard Values - how many of those replaced a value Business Central had produced. These are the ones to look at first when a recipient disputes what was invoiced.
- Assignments That Did Nothing - how many assignments applied to this document but wrote nothing, for instance because their condition did not hold or their source was empty.
Each count drills down to the matching entries. The counts are facts, not verdicts: a replaced standard value is the one a reader should look at and a skipped assignment is worth a second glance, but neither is an error.
Where there is nothing to count, the FactBox says why: "No e-invoice has been generated for this entry yet." or "No field assignment applied to this document."
The entries
{add screenshot of DEXPRO eInvoice Payload Provenance here}
- XRechnung Field Path - the field the entry is about.
- Line No. - the document line the value belongs to. Zero means the document header.
- Origin - Field Assignment, Extension or Skipped.
- Assignment Code - the field assignment behind the entry.
- Source Description - the source in words: the table and field with the way to it, such as Customer (through Bill-to Customer No.) - Address 2, Fixed value, or the value rule that matched. A skipped entry names the source that was looked in as well. It is stored as it stood when the payload was built, so the entry still reads correctly after the assignment behind it has been changed or deleted.
- Value Written - the value that went into the payload.
- Value Replaced - the value Business Central had produced, where the assignment replaced it.
- Skip Reason - why an assignment wrote nothing, in plain words: for example "The source value is empty, so nothing was written." or "The condition of the assignment is not met for this document."
- Logged At - when the entry was written.
Why it is kept
The provenance is a child of the artifact, which already keeps the payload, its hashes, the API spec version and the KoSIT report. The value and the reason for it are therefore kept together and cleaned up together, and an e-invoice can be defended afterwards down to the single field: the stored payload says what was sent, and the provenance says which setting put it there.
A test run from the field assignments shows the same rows, but writes nothing: a payload that is never stored as an artifact leaves no provenance behind.
Application / Usage
Working with Electronic Invoices
Sales Documents
Sales Orders and Invoices
Sales documents such as orders and invoices now have a fact box for the e-invoice conformity check. This informs the user of the following:
- Required fields that are empty
- Validation warnings
- Compliance status
Common Missing Fields:
- Customer VAT registration numbers
- Complete billing addresses
- Valid email addresses
- Payment method codes
Posted Sales Invoices
In the Posted Sales Invoices list, you'll see:
New Fields:
- eInvoice Sent: Shows if electronic document was sent
New Actions:
{add screenshot of Posted Sales Invoice here}
- Download DEXPRO eInvoice: Download electronic document
Posted Sales Credit Memos
Similar functionality available in Posted Sales Credit Memos:
- Document status tracking
- Download action; emailing works as for invoices through the standard Email action
Service Invoices
Electronic invoicing is also available for Service Invoices with the same functionality.
Document Types and Formats
When downloading documents, you can choose from:
- XRechnung XML: Pure XML format compliant with German standards
- ZUGFeRD PDF: Hybrid PDF with embedded XML data
- XRechnung XML and Standard PDF: Both formats in a ZIP file
Sending Documents
Manual Sending
- Open any posted sales document
- Click Email, the standard Business Central action
- The app completes the email automatically:
- Attaches the e-invoice in the format of the sending profile if Add eInvoice to Email Attachments is on
- Uses the Override Contact Email as recipient and the CC Email Address as CC from the customer setup, if set
- Marks the document as eInvoice Sent once the email has been sent, and closes the document's entries in the Document Queue that are still Pending, Error or Failed as Sent, so the background processing does not send the document a second time
Which attachments the app replaces and which always stay is described on the eInvoice Sender Setup page, section E-invoice in email sending.
Automatic Processing
The system can automatically process documents through the Document Queue:
- Documents are queued when posted
- Background processing generates and sends electronic documents
- Status tracking shows processing progress
Document Management
Document Queue
Access via DEXPRO eInvoice Setup → Document Queue
Columns Displayed:
- Entry No.: Unique identifier
- XRechnung Document Type: XRechnung type code of the document (for example 380 invoice, 381 credit note)
- Source Table No.: Number of the table that holds the posted source document
- Document No.: Business Central document number
- Customer/Vendor No.: Trading partner
- Status: Current processing status
- Created Date Time: When queued
- Sending Profile: Format to be generated
- Attempts: How many times processing has failed with a retryable error
- Next Retry At: When the next retry is due
- Last Error Class: Class of the most recent failure (Retryable, Permanent or Authentication Failure)
Actions Available:
- Process Selected: Manually trigger processing of the selected entries. Each entry is processed on its own, so an error in one entry does not undo the others. At the end a message shows how many entries were processed and how many of them without success; the status of an entry shows what went wrong.
- Re-queue: Put the selected entries in status Error or Failed back to Pending with a fresh retry count, so that the next Job Queue run processes them again - for example after you corrected the data a KoSIT rejection pointed at. Entries in any other status are skipped.
- Delete: Remove from queue
Process Log
Monitor all system activities via DEXPRO eInvoice Setup → Process Log
Information Tracked:
- Processing timestamps
- Success/failure status
- Error messages
- Document details
FAQ
Here you will find questions and answers to various scenarios.
Troubleshooting
Common Issues
Document Not Generating
Check:
- All required fields are completed (use the DEXPRO eInvoice Compliance Check FactBox)
- Customer has valid email address
- VAT setup is correct
- Connection to web service is working
Email Not Sending
Check:
- Email setup in Business Central
- Customer email address validity
- SMTP configuration
- Process log for error details
Validation Errors
Common causes:
- Missing VAT registration numbers
- Invalid GLN codes
- Incomplete address information
- Unsupported payment methods
Error Resolution
Process Log Analysis
- Open Process Log from setup page
- Filter by date range or document number
- Review error messages
- Check Context field for specific issues
Document Queue Management
- Open Document Queue
- Identify failed items (status indicators)
- Use Re-queue to retry processing of entries in status Error or Failed
- Check document data before reprocessing
Getting Help
Built-in Guidance
- ToolTips: Hover over fields for explanations
- DEXPRO eInvoice Compliance Check FactBox: Shows validation issues
- Process Log: Detailed error information
Support Resources
- Check field validation messages
- Review process log entries
- Verify setup configuration
- Contact DEXPRO Solutions GmbH for technical support
Best Practices
- Complete Setup First: Run guided setup completely before processing documents
- Test with Sample Data: Process test documents before going live
- Monitor Process Log: Regularly check for processing issues
- Maintain Customer Data: Keep email addresses and VAT numbers current
- Review Document Queue: Monitor automatic processing status
Document Status
The Document Status page (DXP eInv Document Status) shows the live processing state of every document that has been picked up by the eInvoice Sender. Each row is one queued document and reflects where that document currently stands in the sending pipeline, together with any error that occurred and where the finished e-invoice was sent.
{add screenshot of Document Status here}
Per-entry information
- Status - the current processing state of the entry (see the lifecycle below).
- Processing DateTime - when the entry was last processed.
- Sent To - the recipient e-mail address the released e-invoice was transmitted to, once transmission has completed (resolved from the override e-mail, the document e-mail, or the customer/vendor card).
- Error Message - the last error reported for the entry. Populated when the status is Error or Failed; empty otherwise.
Status lifecycle
An entry moves through the following states as the pipeline processes it:
- Pending - queued and waiting to be picked up by the Job Queue.
- Processing - currently being worked on by the pipeline.
- Validated - the source data, business and invoice-model validations have passed.
- Generated - the e-invoice artifact (XML/PDF) has been generated.
- Sent - the e-invoice has been released and transmitted to the recipient. An entry that is still Pending, Error or Failed is also set to Sent when the document is sent by email outside the queue with the standard Email action, so the Job Queue does not send the document a second time.
- Error - processing stopped on a recoverable error; the entry will be retried according to the backoff schedule.
- Failed - the entry has exhausted its retries (or hit a permanent/authentication error) and has been moved to the dead-letter state. It is not retried on the backoff schedule. An entry that was rejected for its content (by the checks before generation or by KoSIT) within the last 30 days is re-queued automatically once the corrected document produces a different e-invoice; every other Failed entry needs a manual Re-queue.
Validated and Generated are intermediate milestones within a single run. A healthy document typically progresses Pending → Processing → Validated → Generated → Sent.
Actions
- Reset Status - resets an entry that is stuck in Processing back to Pending (it can only be used from Processing). It does not clear the retry counter - use Re-queue for that.
- Re-queue - moves an Error or Failed entry back to Pending, clears the retry counter, clears the error, and shows a confirmation notification so the entry is processed again on the next Job Queue run. Use this after you have corrected the underlying data problem. The document queue page offers the same action for several selected entries at once.
- Download Diagnostic Bundle - collects the status, retry state, artifact metadata (hashes, not content) and recent process-log rows into a text file for troubleshooting.
- View Process Log - opens the process log for the entry, showing the step-by-step trace of the exchange with the Digivoice system.
- View Validation Findings - opens the persisted Validation Findings from the last validation run.
- Show KoSIT Report / Download KoSIT Report - opens the official KoSIT report in the viewer, or downloads it as a file.
A Failed entry is a dead-letter. Only content rejections of the last 30 days are picked up again on their own, and only once the document produces a different e-invoice; with automatic sending switched on, such an entry is then sent to the recipient in the same Job Queue run. Every other Failed entry stays put until someone fixes the cause and uses Re-queue.
Artifacts (GoBD audit history)
The Artifacts page (DXP eInv Artifacts) is the immutable audit history of every e-invoice the app has generated. Each row records one generated artifact together with the exact inputs, validation verdict and cryptographic hashes that prove what was produced and sent. The page is designed to satisfy German GoBD requirements for the traceable, unalterable retention of business documents.
{add screenshot of Artifacts here}
Fields
- Format - the format of the stored e-invoice. It is always XRechnung XML, also with the sending profile ZUGFeRD PDF: the artifact holds the XRechnung that the KoSIT check validates, and the ZUGFeRD PDF is created when the email is sent.
- Status - the lifecycle state of the artifact: Created, KoSIT-Validated, Released, Transmitted.
- Artifact Hash - the SHA-256 hash of the stored e-invoice bytes.
- Payload Hash - the SHA-256 hash of the JSON payload (hidden by default).
- KoSIT Passed - the KoSIT validator verdict as a pass/fail flag (only meaningful once the status is KoSIT-Validated or later).
- Validator Config Version - the version of the KoSIT validator configuration used, so the verdict can be reproduced later.
- Generated At / Released At / Transmitted At - the timestamps for each milestone.
- Superseded By - if a later artifact replaced this one, a reference to the newer artifact.
Immutability and GoBD relevance
Once an artifact reaches the Released state it becomes immutable - its content, hashes and verdict can no longer change. If a document has to be re-issued, a new artifact is created and the old one is marked with Superseded By, preserving the full chain rather than overwriting history.
The SHA-256 hashes of both the source payload and the generated artifact let you prove after the fact that a stored e-invoice is byte-for-byte the one that was validated and transmitted. Together with the validator config version and the milestone timestamps, this gives the complete, tamper-evident audit trail GoBD expects.
Actions
- Download E-Invoice - downloads the generated e-invoice artifact.
- Download Payload - downloads the source payload the artifact was built from.
- Show KoSIT Report / Download KoSIT Report - opens the official KoSIT report in the viewer, or downloads it as a file.
- Payload Provenance - opens the payload provenance of this artifact: which values a field assignment wrote, which it replaced, and which assignment did not fire.
- View Source Document - navigates to the posted source business document (invoice, credit memo) the artifact was generated from.
Validation Findings
The Validation Findings page (DXP eInv Validation Result) shows the read-only, persisted findings of the last validation run for a document. Whenever the pipeline (or the live compliance check) validates a document, every rule that reported something is stored here so it can be reviewed after the fact - you are looking at the recorded result, not running the validation again.
{add screenshot of Validation Findings here}
Fields
- Rule Id - the identifier of the rule that produced the finding (for example an official BR-CO / BR-DE rule or an app-specific VAL-* rule).
- Severity - Error, Warning or Information. Errors block generation and transmission; warnings and information do not.
- Field Caption - the caption of the field the finding relates to, so you know exactly what to look at.
- How to Fix - a short, actionable hint describing the problem and how to resolve it in Business Central.
The stage a rule runs in (Source Data, Business Validation or Invoice Model) is configured on the Rule Setup page rather than shown as a column here.
Drilldown
Each finding can be drilled into to open the related record - the source document or the specific record that carries the offending value - so you can correct the data directly from the finding.
These findings are persisted from the last run. After you fix the data, re-run validation (or re-queue the document from the Document Status page) to refresh them.
Rule Setup
The Rule Setup page (DXP eInv Rule Setup) is where each individual compliance rule is configured. The app ships with a full rule catalog, and this page lets you tailor how each rule behaves - whether it runs, how severe its findings are, and how it is categorised - without touching the underlying implementation.
{add screenshot of Rule Setup here}
Per-rule configuration
- Enabled - switches the rule on or off.
- Severity Override - overrides the rule's default severity (Error, Warning or Information). Error findings block generation and transmission; Warning and Information do not.
- Category - the grouping the rule belongs to, used to organise the catalog.
- Stage - the stage the rule runs in: Source Data Validation, Business Validation or Invoice Model Validation. Source Data and Business Validation run live on unposted documents; Invoice Model runs in the sending pipeline and, when Block Posting on Validation Error is enabled, also during posting against the posted document, before the posting is committed (see Live compliance check (FactBox)).
- Description - a human-readable description of what the rule checks.
The rule list is seeded automatically the first time the page is opened, so every catalog rule appears with its default settings ready to adjust.
The rule catalog
The catalog combines two kinds of rules:
- Official rules - the standardised business rules from the EN 16931 / XRechnung specification: the BR-CO and BR-DE rules, general rules such as BR-25, BR-32 and BR-37, and the rules of the individual VAT categories (BR-S, BR-Z, BR-E, BR-AE, BR-IC, BR-G, BR-O).
- App-specific rules - additional VAL-* rules provided by the app to catch data problems earlier and more precisely.
Rules are spread across the three stages so problems surface as early as possible: SourceData checks the raw document data, BusinessValidation checks business-level constraints, and InvoiceModel checks the assembled invoice model just before generation.
Blocking-Mandatory rules
A subset of the official rules are Blocking-Mandatory: a violation of any of them is a guaranteed KoSIT rejection. These rules cannot simply be switched off. They are:
- the BR-CO arithmetic identities that guarantee the invoice totals add up correctly (BR-CO-10 and BR-CO-13 to BR-CO-17);
- BR-32 and BR-37 - every document-level allowance and charge carries a VAT category;
- BR-S-08, BR-Z-08, BR-E-08, BR-AE-08, BR-IC-08, BR-G-08 and BR-O-08 - the taxable amount of each VAT category matches the lines, allowances and charges of that category;
- BR-Z-01, BR-E-01, BR-AE-01, BR-IC-01, BR-G-01 and BR-O-01 - a VAT category other than the standard rate appears in the VAT breakdown exactly once if a line, allowance or charge uses it, and not at all otherwise.
Setting Enabled to No on such a rule is not enough on its own - the rule stays effectively active until a compliance override is confirmed. Confirming the override stamps the user and the date/time on the rule row; clearing it removes that stamp and the rule becomes effectively active again.
This is a deliberate safeguard: turning off a blocking-mandatory rule produces documents that may fail KoSIT validation and may not be legally compliant, so the decision is recorded (who confirmed it and when) to keep it auditable. Do not disable these rules unless you fully understand the consequences.
KoSIT Report
The KoSIT Report viewer (DXP eInv KoSIT Report Viewer) displays the official KoSIT Pruefbericht (validation report) for a generated e-invoice directly inside Business Central.
What is KoSIT?
KoSIT (Koordinierungsstelle fuer IT-Standards) is the German public-sector body responsible for the XRechnung standard. It publishes the official validator that checks whether an e-invoice conforms to XRechnung. When the app pre-validates a document, it runs it against this official validator; the validator returns a Pruefbericht - the authoritative validation report describing exactly which rules passed and which failed.
The viewer
The KoSIT report is produced as an HTML document. The viewer renders that HTML in a WebPageViewer control so you can read the official report - with all its formatting, rule references and pass/fail detail - without leaving Business Central.
{add screenshot of KoSIT Report here}
Action
- Download Report - saves the KoSIT report to a file so it can be archived or forwarded (for example as evidence of validation).
You can open the KoSIT report for an entry from the Document Status page or from the Artifacts page via Show KoSIT Report.
The sending pipeline and Job Queue
Every e-invoice the app produces is processed by a fixed, seven-stage pipeline. Documents are enqueued automatically when they are posted, and a recurring Job Queue entry works through the queue in the background. This page explains the stages, when documents are enqueued, and how retries and dead-lettering work.
The seven stages
- Stage 1 - Source-data validation: the raw document data is validated (SourceData rules).
- Stage 2 - Business validation: business-level constraints are validated (BusinessValidation rules).
- Stage 3 - Invoice-model validation: the assembled invoice model is validated (InvoiceModel rules).
- Stage 4 - Serialize & persist artifact: the validated payload is serialized and persisted as an immutable artifact. This is also where the field assignments are applied to the serialized payload, and what they did is recorded with the artifact.
- Stage 5 - Generate XML: the e-invoice is generated as XRechnung XML via the Digivoice API and stored as the artifact. This applies to every sending profile, because the XRechnung is what the KoSIT check validates; with the ZUGFeRD sending profile, the ZUGFeRD PDF is created when the email is sent.
- Stage 6 - KoSIT pre-validation: when Enable XML Validation is switched on in the setup, the generated document is checked against the official KoSIT validator before it leaves the system. A KoSIT rejection is a permanent failure.
- Stage 7 - Release & transmit: the artifact is released (becoming immutable) and the e-invoice is transmitted to the recipient by e-mail.
Documents that are enqueued only to be attached to the posted document or e-mail (rather than auto-sent) stop after generation at status Generated - they are not transmitted in stage 7.
Stages 1-3 must all pass before generation. If any Error-severity finding is raised, the document does not proceed - review the Validation Findings and correct the data.
When are documents enqueued?
A document is enqueued automatically at posting time for the following document types:
- Sales Invoice and Sales Credit Memo
- Service Invoice and Service Credit Memo
- Purchase Credit Memo
The recurring Job Queue
Processing is driven by a recurring Job Queue entry:
- Category: DXPEINV
- Schedule: Monday to Friday, 08:00-18:00
- Frequency: every 30 minutes
On each run the Job Queue first re-checks recently rejected entries (see below), then picks up all Pending entries and the Error entries whose retry is due, and moves them through the pipeline. Each entry is processed in its own transaction, so an error in one entry does not undo or stop the others.
Retry, backoff and dead-lettering
If a stage fails with a recoverable error, the entry goes to Error and is retried on a rising backoff schedule with added jitter to avoid bunching:
- Attempt delays: 5 minutes → 15 minutes → 1 hour → 6 hours → 24 hours, plus a small deterministic jitter (up to 59 seconds, derived from the entry number) so retries do not all fire at the same instant.
- Max Retry Attempts: default 5. When attempts are exhausted, the entry is moved to Failed (dead-letter).
Permanent errors and authentication failures do not wait for retries - they dead-letter immediately. A dead-lettered (Failed) entry is not retried on the backoff schedule; fix the cause and use Re-queue on the Document Status page (or, for several selected entries at once, on the document queue page) to reset the attempt counter and return it to Pending. The only exception is a recent content rejection, described below.
Corrected rejections are re-queued automatically
Before it processes the queue, every Job Queue run re-checks the Failed entries of the last 30 days that were rejected for their content - by the checks of stages 1-3 or by KoSIT. If the document now passes stages 1-3 and produces a different e-invoice than the rejected one, for example because the data was corrected, the entry goes back to Pending and is processed in the same run. An unchanged document is left as it is and costs no call to the Digivoice service.
Not re-queued automatically are entries that failed on an authentication error or on a permanent error reported by the Digivoice service, and rejections older than 30 days. Use Re-queue for these.
With automatic sending switched on, an entry re-queued this way is sent to the recipient without any further action. This also applies after an app update that changes the generated e-invoice: content rejections of the last 30 days are then generated again and, if they now pass, sent.
A document that is sent outside the queue with the standard Email action closes its Pending, Error and Failed entries as Sent, so the Job Queue does not send it a second time.
Live compliance check (FactBox)
The eInvoice Compliance Check FactBox gives you live e-invoice validation feedback while you are still editing an unposted document. It runs the same compliance rules the sending pipeline uses, so problems are caught before posting rather than after - when they are much cheaper to fix.
{add screenshot of Live compliance check (FactBox) here}
Where it appears
The FactBox is shown on unposted sales documents (quote, order, invoice, credit memo), service documents (order, invoice, credit memo) and the purchase credit memo. It re-evaluates as you change the document and displays the current per-document findings.
What it shows
- A green checkmark with "Document ready for DEXPRO eInvoice export!" when the document currently passes all compliance rules.
- A blocked indicator with a list of findings when it does not - each row showing the field name, severity and rule id.
Each finding can be drilled into to jump straight to the exact field that needs attention, so you do not have to hunt for the offending value.
Turning the check on or off
The live check is enabled by the master Enable Field Validation switch in the eInvoice setup, and then controlled per document area by three toggles:
- Check Sales Documents
- Check Service Documents
- Check Purchase Documents
Disable a toggle if you do not want the FactBox to evaluate documents in that area.
Block Posting on Validation Error
When Block Posting on Validation Error is enabled, the compliance findings are enforced at posting time, not just displayed. Each Error-severity finding is raised as a collectible ErrorInfo, so the user sees all blocking problems at once rather than one at a time. Every ErrorInfo carries two actions:
With Block Posting on Validation Error enabled, a document with any Error-severity finding cannot be posted until the findings are resolved. Warning and Information findings are shown but do not block posting.
Check of the posted document
The check above judges the unposted document, but the e-invoice is built from the posted one. With Block Posting on Validation Error enabled, the app therefore also checks the e-invoice the posting will actually produce: once the posted document exists, but before the posting is committed, it builds the e-invoice data from the posted document exactly as the sending pipeline does and runs the invoice-model rules - for example the BR-CO total rules and the VAT category rules. If an Error-severity finding remains, the whole posting is rolled back and nothing is posted. The user sees Posting stopped: the e-invoice would be rejected with the rule id and text of each finding and the action Open eInvoice Setup. If the e-invoice data cannot be built from the posted document at all, the posting is rolled back as well and the message states the reason.
- The check uses the same switches as the check above (Enable Field Validation and the toggle of the document area) and only covers documents that produce an e-invoice. Orders and return orders are checked only when they are invoiced.
- A posting preview is never checked or stopped.
- No call to the Digivoice service is made during posting; the KoSIT check itself still runs later in the sending pipeline.
- If a document has to be posted anyway, for example to cancel an invoice that was posted before this check existed, switch Block Posting on Validation Error off for that posting.
Block Posting on Validation Error is off by default. With the default settings every posted invoice and credit memo produces an e-invoice, consumer invoices included. Before you switch the option on, make sure that only documents for actual e-invoice recipients produce one - this is controlled by Automatically Send Documents (eInvoice setup and customer/vendor setup) and Add eInvoice to Document Attachments.
Payment method and unit of measure mapping
An e-invoice has to express payment details and quantities using standardised, internationally recognised codes rather than the free-text values used inside Business Central. This page describes the two mapping lists that perform that translation, plus the routing field that identifies the recipient.
Payment Method mapping
Each Business Central Payment Method is mapped to an eInvoice Payment Type (the standardised payment-means code required by the e-invoice format). When a document is exported, the app looks up the document's payment method and writes the mapped payment type into the e-invoice.
{add screenshot of Payment method and unit of measure mapping here}
- Payment Method - the Business Central payment method code (the eInvoice Payment Type field is added directly to the standard Payment Methods list).
- eInvoice Payment Type - the standardised payment-means code the method maps to. The available values are None, Cash Payment, Check Payment, Card Payment, Direct Debit and Bank Transfer (aligned with the UNTDID 4461 payment-means codes).
Two payment types need more than the mapping. Card Payment cannot be used for e-invoice recipients: XRechnung then requires the last digits of the card number, which Business Central does not store, so the compliance check reports an error - map such payment methods to another payment type, or use a different payment method for e-invoice recipients. Direct Debit needs a direct debit mandate on the document whose customer bank account has an IBAN or bank account number, and a SEPA creditor identifier: enter it as Creditor No. on the company bank account of the document (or on all company bank accounts, if you use only one creditor identifier).
Import Payment Methods deletes all rows of the list without asking for confirmation. Payment types you assigned by hand - including those set in the eInvoice Payment Type field on the Payment Methods page - and any other keywords are lost and replaced by the automatic detection. Check every row afterwards.
International UoM Codes
The International UoM Codes list maps Business Central units of measure to the internationally standardised unit-of-measure codes required in the e-invoice. Every quantity written to an e-invoice must reference one of these standard codes, so ensure the units of measure used on your invoiced items are represented here. On the standard Units of Measure page an Auto-Detect Standard Codes action helps assign the international code, and the International Standard Code field offers a lookup into this list.
E-Invoice Routing No.
The routing field is available on both the Customer and Vendor cards. It holds the recipient's routing identifier (for example the Leitweg-ID used by German public-sector recipients) that tells the receiving platform where to deliver the e-invoice. On the customer it is captioned E-Invoice Routing No.; on the vendor it is captioned Buyer Reference (E-Invoice Routing No.).
Complete these mappings before going live. A missing payment-type or UoM-code mapping, or a missing routing number, will surface as a compliance finding and can block generation or transmission.
Extensibility (developers)
The eInvoice Sender is built around a small set of AL interfaces so that partners and customers can extend it - add support for new document types, plug in a different reader, or add their own validation rules - without modifying the base app. This page is aimed at developers.
Interface 1 - DXP eInv Doc Exporter
Implement DXP eInv Doc Exporter to build the export payload for a given document type. It has a single method, CreateDocument(DocHeader: Variant): JsonObject - turning one kind of Business Central document into the JSON payload the pipeline serializes and sends to generation.
Implementations are bound through the extensible Export Document enum: add a value for your document type and point it at your implementing codeunit. The pipeline selects the exporter by resolving this enum, so registering a new exporter is a matter of extending it.
Interface 2 - DXP eInv Doc Reader V2
Implement DXP eInv Doc Reader V2 to provide a reader over the CIM (common information model) representation of a document - its ReadDocument method fills the CIM buffers (document, party, line, allowance/charge, payment, attachment) so rules and generation can consume the data uniformly.
The Export Document enum binds both interfaces: each enum value points at an exporter and a reader for that document type. When you add a new document type you provide both.
Interface 3 - DXP eInv IValidation Rule
Implement DXP eInv IValidation Rule to add validation rules. It has two methods: Evaluate (runs the check and appends findings) and GetMetadata (returns the rule's category, default severity, stage, description and fix hint - which is what seeds Rule Setup). A single codeunit can dispatch on the rule id and serve many rules, keeping within the object-ID budget.
Rules are bound through the extensible Validation Rule enum, which provides a dedicated CUSTOM extension point for customer- and partner-supplied rules. Add an enum value bound to your implementing codeunit, and the rule participates in validation like any built-in rule - it appears in Rule Setup where its Enabled flag, severity override and stage can be configured.
The OnCollectValidationRules event
The app publishes the OnCollectValidationRules integration event. Subscribe to it to register your rule implementations with the validation engine at runtime. This is the hook that lets an extending app contribute rules into the collection the pipeline and the live compliance check both use.
Two events for field assignments
A field assignment whose Source Type is Extension asks an extension for its value. The app publishes two integration events for this:
- OnResolveAssignmentValue -
(AssignmentCode: Code[20]; FieldPath: Text; SourceRecRef: RecordRef; var Value: Text; var IsHandled: Boolean). It is raised for each assignment whose source type is Extension; setValueandIsHandled.SourceRecRefis the posted header for a header field and the posted line for a line field, and the assignment code and the field path say which value is being asked for. Use this rather than OnBeforeSetJsonValue, which the payload serializer no longer raises. - OnLookupPostedDocument -
(ExportDocType: Enum "DXP eInv Export Document"; var DocumentRecRef: RecordRef; var Picked: Boolean; var IsHandled: Boolean). It lets an app that stores its own posted documents offer them to the field assignment test. Without a subscriber the test can only pick from the document types this app knows about.
The Create Extension action on the field catalogue writes the subscriber for you: it downloads a small AL extension for the selected field, and creates the assignment with the source type Extension that it answers for if there is none yet, and switches it on. Until the extension is installed, the document's payload provenance says that no subscriber answered.
A document type an extension adds also needs its posted tables, so that condition and value rules can be evaluated against them - supply them by subscribing to OnGetPostedTablesForDocType. Without it, rules are not available for that document type.
Together these three interfaces plus the integration event cover the main extension scenarios: new document type (Doc Exporter + Export Document enum), custom model reading (Doc Reader V2), and custom validation (IValidation Rule + Validation Rule enum, registered via OnCollectValidationRules). Field assignments add the two events described above, for a value that has to be calculated in code.