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

Notifications

Announcements

No record found.

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 102

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!

Categories:
I have the same question (0)
  • Adis Profile Picture
    6,048 Super User 2025 Season 2 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
    102 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
    102 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans