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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Error issuing an electronic invoice in Electronic Invoicing with a customized ER format

(3) ShareShare
ReportReport
Posted on by 108

I am trying to issue an electronic invoice using Electronic Invoicing in Dynamics 365 Finance and Operations. I created a custom format in Electronic Reporting (ER), derived from the standard UBL Sales Invoice and PEPPOL Sales Invoice formats.

The format runs successfully in Reporting Configurations within ER, where I can generate an XML file that fully meets the required specifications. To include additional fields, I derived the standard "Invoice Model", ensuring that all mappings are correctly configured. I have thoroughly verified that the mappings are properly set up, and the custom model has already been successfully used in other F&O features, such as generating invoice documents in the Free Text Invoice module.

However, when using Electronic Invoicing, deriving the standard PEPPOL feature, and applying my custom ER format, I receive an error in the submission log. The error refers to a JSON file that does not contain the new fields added in my custom model, specifically in the InvoiceCustomer definition. 

To investigate further, I mapped the field where the error occurs to an existing standard field. This resolved the error for that specific field, but as soon as the system encounters another new field from the derived model, the same issue occurs again.

Given that I can successfully generate a file in Reporting Configurations, my main questions are:

  1. Is it possible to modify the JSON structure referenced in the error to include the fields from my custom model?
  2. Is there any configuration/feature that might be missing in order for Electronic Invoicing to recognize the new fields?

Any guidance on resolving this issue would be greatly appreciated.

Thank you!

print_errorlog.png
Categories:
I have the same question (0)
  • Adis Profile Picture
    6,651 Super User 2026 Season 1 on at
    Hi,
     
    Could you open the format configuration and press "Validate"?
     
    You should receive a list at the very bottom with all the missing mappings.
     
    Kind regards, Adis
     
  • António Coelho Profile Picture
    108 on at
    Hi Adis,
    The format works fine and it is validated. The issue persists when running on the electronic invoicing feature
  • Verified answer
    António Coelho Profile Picture
    108 on at
    Hi everyone, I am glad I was able to solve the issue. In electronic document parameters, electronic document model mapping should be the same model mapping of the format as well as the legal entity where the format is running.
    After that, if I submit a new document, the json file of BusinessDocumentDataModel is based on my derived data model and the electronic invoicing runs successfully. However, if I resubmit a electronic document with previous errors, I'm still going to get the same old errors. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 657

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 615 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans