Troubleshooting E-Invoice Errors
If an e-invoice is not created or not sent, the cause is usually missing or incorrect data. In most cases, you can fix such errors yourself:
If this does not solve the problem, contact JustOn Support.
Users and administrators share the work:
- Users (accounting, billing) review the invoice and the account and correct their data.
- Administrators correct the business entity, tax rules, permissions and the e-invoice configuration. Before the first invoice run, they can check the e-invoice setup.
Identifying Error
- Open the detail view of the affected invoice.
-
Check the field
E-Invoice Status.E-Invoice Status Meaning Next Step Not CreatedNo e-invoice has been created yet. Create the e-invoice, see Creating E-Invoices. Validation ErrorThe e-invoice has been created but has failed the validation. It cannot be sent. Open the validation report (step 3). Created With WarningsThe e-invoice is valid but the validation has produced warnings. Open the validation report (step 3) and decide whether to correct the data. Distribution ErrorThe e-invoice has been created, but sending it via Peppol or Avalara ELR has failed. Read the field E-Invoice Error.In Peppol QueueIn Avalara QueueThe e-invoice has been transferred to the distribution provider. Check the field E-Invoice Provider Status. -
To open the validation report, click its name in the Notes & Attachments related list (
einvoice_<invoice-date>_<invoice-number>_<einvoice-format>_validation_report).The report lists the violated rules, each with a rule ID like
BR-CO-26orFX-SCH-A-000031and a short description.The rule ID or the error message is the key for the next step.
For details on the status fields and the validation report, see Reviewing E-Invoice Status.
Looking Up Cause
Most validation rules come from the e-invoice standards themselves – EN 16931 (BR-...), XRechnung (BR-DE-...), ZUGFeRD/Factur-X (FX-...) and Peppol (PEPPOL-EN16931-...). The following table lists the messages that occur most frequently in practice and what they mean in JustOn Billing & Invoice Management. For the source of every e-invoice element, see E-Invoice Data Mapping.
| Message or Symptom | Cause | Solution | Who |
|---|---|---|---|
[BR-CO-26] In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present. |
The e-invoice does not identify the seller. If at least one invoice line item has the VAT category code O, the e-invoice omits the seller VAT identifier, see E-Invoice Data Mapping. |
On the business entity, specify the E-Invoice Sender Legal Identifier. | Admin |
FX-SCH-A-000031 Value of '@schemeID' is not allowed. |
The business entity field E-Invoice Sender Legal ID Scheme holds an address scheme like 9930. |
9930 identifies the e-invoice sender address (VAT ID), not a legal identifier. Specify an ISO 6523 code, or leave the field empty. |
Admin |
[PEPPOL-EN16931-R010] Buyer electronic address MUST be provided |
The e-invoice recipient address is missing. It is required for XRechnung and Peppol BIS Billing, not for ZUGFeRD. | On the invoice, specify E-Invoice Recipient Address and E-Invoice Recipient Scheme Id, for example the buyer's VAT ID with 9930, see E-Invoice Address and Scheme. |
User |
| Validation error on the buyer VAT identifier (BT-48) | The account field VATIN holds the tax number (German Steuernummer) instead of the VAT ID, or contains spaces. | Specify the VAT ID without spaces, like DE123456789. If the buyer has no VAT ID, leave the field empty. |
User |
[BR-11] The Buyer postal address shall contain a Buyer country code (BT-55).[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80). |
The invoice fields Billing Country Code or Shipping Country Code are empty – even if the address specifies a country. The e-invoice takes the country code, not the country name. The code fields are copied from the account only if the Salesforce State and Country/Territory Picklists are enabled. | Enable the picklists and select the country in the account's billing and shipping address, see State and Country/Territory Picklists. Then cancel the affected invoices and create them again, see Correcting Data and Recreating E-Invoice. | Admin |
[BR-DE-9] Das Element "Buyer post code" (BT-53) muss übermittelt werden.[BR-DE-11] Das Element "Deliver to post code" (BT-78) muss übermittelt werden, ... |
The billing or the shipping address lacks the postal code. XRechnung requires it. | Add the postal code to the account's billing or shipping address. Then cancel the affected invoices and create them again, see Correcting Data and Recreating E-Invoice. | User |
BR-FX-EN-04, or the schema error ApplicableHeaderTradeSettlement found where ApplicableHeaderTradeDelivery is expected (ZUGFeRD) |
The e-invoice has neither a delivery date nor a delivery country. | Complete the account's shipping address, at least the country. Then cancel the affected invoices and create them again, see Correcting Data and Recreating E-Invoice. | User |
Document type code 218 instead of 380 (ZUGFeRD, Peppol BIS Billing) |
The invoice field Type is set to Final. |
Final is meant for the final invoice after partial, progress or deposit invoices. For regular invoices, leave Type empty. |
User |
| Seller email address (BT-43) missing | The business entity field Email Sender is empty. | Specify Email Sender – it also sets the sender address of invoice emails. Alternatively, map BT-43, see Configuring Custom E-Invoice Field Mappings. | Admin |
[BR-CO-27] Either the IBAN or a Proprietary ID (BT-84) shall be used. |
The IBAN on the business entity is missing or invalid, for example because it contains spaces. | Specify the IBAN without spaces. | Admin |
VAT breakdown items of VAT category ... and rate ... have different VAT exemption reasons |
Invoice line items with the same VAT category and rate carry different VAT exemption reasons. | Align the VAT exemption reasons of the involved tax rules, see Preparing Tax Rules. | Admin |
E-Invoice status ... not allowed for E-Invoice sendingInvoice status ... not allowed for E-Invoice sending |
The invoice or the e-invoice is in a status that does not allow sending. | See E-Invoice Status Not Allowed for Sending. | User |
The invoice is meant to be sent by email, but Send E-Invoice fails or the E-Invoice Status changes to In Peppol Queue. |
Send E-Invoice distributes via Peppol or Avalara ELR only. | For the distribution channel Email, click Send. This sends the invoice email with the e-invoice attached, see Emailing Invoices. |
User |
| Invoice emails are not sent from a sandbox. | The sandbox's email deliverability is set to System email only. |
Set the access level to All email, see Checking Email Deliverability. |
Admin |
SMP entry NOT found or SMP lookup not successful (Peppol) |
The recipient's e-invoice address is not registered in the Peppol Network. | Search the recipient in the Peppol Directory, or ask the recipient for their Peppol ID. | User |
| Invoices finalized by an integration user, like cancellations created via an interface, have a PDF but no e-invoice and no validation report. | The integration user's profile has no access to the connected app JustOn Platform. | Add the profile to the connected app, see Enabling App Access for JustOn Platform. Then create the missing e-invoices manually. | Admin |
ZUGFeRD is not available as a format when configuring custom e-invoice field mappings. |
The invoice field E-Invoice Format lacks the picklist value ZUGFeRD. |
Add the picklist value ZUGFeRD to the field E-Invoice Format on the Invoice object. |
Admin |
| The PDF preview of a draft invoice shows an error or a blank page. | Salesforce blocks the preview in an inline frame. | See Why does the PDF preview display a blank page? | Admin |
Distribution Error with Avalara ELR, the error points to the country mandate. |
The Avalara ELR country mandate is inactive or does not match the recipient country. | Activate or correct the country mandate, see Setting Up Avalara ELR. The e-invoice does not have to be created again. | Admin |
E-Invoice Status Not Allowed for Sending
Before transferring an e-invoice to the Peppol Network or to Avalara ELR, JustOn Billing & Invoice Management checks the invoice status and the E-Invoice Status. If one of them does not allow the distribution, the action fails with an error that names the blocking status:
E-Invoice status Not Created not allowed for E-Invoice sending
E-Invoice status Validation Error not allowed for E-Invoice sending
Invoice status Draft not allowed for E-Invoice sending
| Blocking Status | Solution |
|---|---|
Invoice status Draft |
Finalize the invoice first, see Invoice Finalization. |
E-Invoice status Not Created |
Create the e-invoice, see Creating E-Invoices, or enable Create Missing E-Invoices when sending multiple e-invoices, see Sending Multiple E-Invoices. The check evaluates the field E-Invoice Status, not the attached file. An invoice in this status is therefore offered the e-invoice creation even if an e-invoice file is already attached. |
E-Invoice status Validation Error |
The e-invoice must not be distributed. Correct the data and create the e-invoice again, see Correcting Data and Recreating E-Invoice. |
For the complete rules, see E-Invoice Status Transitions.
Correcting Data and Recreating E-Invoice
-
Correct the data as described in the table above.
Address data is copied from the account to the invoice and cannot be changed once the invoice is finalized. If the error lies in such data, correct the source data – typically the account –, then cancel the invoice with a reason like
incorrect address data, see Canceling Invoices, and create it again. Continue with the new invoice. -
On the invoice, click Create E-Invoice.
If the e-invoice status component is configured, it offers Recreate E-Invoice in the status
Validation Error. Both actions create the e-invoice again. -
Check that the
E-Invoice Statusnow showsCreated. -
Send the invoice.
- By email: use Send
- Via Peppol or Avalara ELR: use Send E-Invoice
Info
Distribution Error does not require a new e-invoice if the cause was a problem at the distribution provider or in its configuration rather than in the invoice data. In this case, just send the e-invoice again, see Recovering From Distribution Errors.
Checking E-Invoice Setup
Before the first invoice run, administrators can rule out the most frequent setup errors:
- Business entity
Tax ID,E-Invoice Sender AddressandE-Invoice Sender Scheme Id,Email Sender,IBANwithout spaces. SpecifyE-Invoice Sender Legal ID Schemeonly together with a legal identifier and only with an ISO 6523 code.- Accounts
VATINwith a VAT ID, not a tax number. For XRechnung also the e-invoice recipient address, scheme and buyer reference.- Tax rules
VAT Category Codespecified on every tax rule.- Country codes
- Salesforce State and Country/Territory Picklists enabled, so that invoices receive
Billing Country CodeandShipping Country Codefrom the account. - Quantity units
- Maintained for all units used on invoice line items.
- Connected app JustOn Platform
- Accessible for all profiles that finalize invoices, including the integration user.
- Sandbox test
- Create one invoice, one credit and one cancellation each, and review the validation reports.
For details, see Preparing E-Invoice Source Data, Enabling E-Invoice Creation and E-Invoicing Quickstart.
Contacting JustOn Support
Open a ticket in the JustOn Support Portal in the following cases:
- You have reviewed the validation report and worked through the table above, but the error persists.
- The message is not listed above, and the validation report does not help.
- Errors occur that are not related to your data, like errors during the invoice finalization.
Info
If Avalara ELR reports an error while processing the document, check the document status first, see Reviewing Avalara ELR Document Status. For errors on the Avalara side, open a case with Avalara.
To help us help you quickly, include the following information in your ticket:
- ID of the affected org (production or sandbox)
- Invoice numbers and links to the affected invoices
- E-invoice format and distribution channel, for example XRechnung by email
- Values of the fields
E-Invoice StatusandE-Invoice Error - Rule ID or message from the validation report
- What you have already checked or changed
For details, see How to file a support request with JustOn? To resolve the issue, you may have to grant login access to JustOn Support.