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, ...
Suggested Answer

Project invoice XML references the wrong invoice

(4) ShareShare
ReportReport
Posted on by 14

In D365 Finance & Operations, free text invoices generate the correct XML, but project invoices do not. When printing/sending a project invoice, the generated XML incorrectly references the first invoice ever created instead of the current invoice being posted.


Expected:
The XML should show the current project invoice number and details.


Actual:
The XML pulls invoice identifiers from the first historical invoice, causing incorrect invoice references in the output (i.e. if we are in project invoice SI817-012345, and print/send this, the XML generated will be for invoice SI817-000001).


Notes:
Issue only occurs for project invoices; free text invoices work correctly.


Question for the community:
Has anyone seen this issue where project invoice XML binds to the first historical invoice instead of the current one?
Is there guidance on what needs to be done to fix this?

Categories:
I have the same question (2)
  • André Arnaud de Calavon Profile Picture
    303,706 Super User 2026 Season 1 on at
    Hi,
     
    Can you tell more about your setup and technology used for generating these XML files? Are you using standard features (which one), an ISV, or customizations?
  • Gabriele Labunskaite Profile Picture
    14 on at
    Hi Andre, 
     
    I am using standard functionality, I have imported the XML format from the Microsoft repository and I have set this format up under Sales Ledger parameters > Electronic documents (see below) 
     
     
    I have also set this up in print management, see below
     
     
    I have done the exact same setup for free text invoices, and these invoices generate correctly. However, it is projects that seems to be having an issue and not generating the correct invoice for the XML.
     
    As far as I am aware, we do not have any customisations. 
     
    Let me know if you need further information. 
     
    Thanks
    Gabby
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,839 Super User 2026 Season 1 on at
    Hi,

    Do you want to use e-Invoicing?
    Ref. to the screenshot from Customer parmaeters > Electronic documents, it will assigned configuration for sending an invoice electronally (Send button) while on the next screenshot shared, it is realted to printing or veiwing a document.

    If you use standard configuration like OIOUBL Project invoice, it should work.


    For more info, you can check PEPPOL BIS Billing 3.0 – DynFOTech
  • Gabriele Labunskaite Profile Picture
    14 on at
    Hi Alireza, 
     
    That is correct, this setup is to allow our Belgium entity to send invoices electronically as per the new January 2026 mandate. 
     
    In regards to project invoices, no matter the function used - print, view or send - they all fail to generate the correct invoice on the XML invoice. However, If we run the standard SSRS report, it picks up the correct invoice number we are trying to send. But, the XML generates the very first project invoice created- as if it is struggling to pull through the correct Record ID when generating the XML?
     
    Thank you for sharing the link to DynoFOTech, I have used this website for my setup and followed the steps listed, as well as the steps on the Microsoft Learn pages: https://learn.microsoft.com/en-us/dynamics365/finance/localizations/belgium/emea-bel-e-invoices. However, there is no stipulation on further project setup, which could be causing the issue.
     
    When you have setup project invoices for other countries for e-invoicing - was there any additional setup required? Did you run into the same issue as we have?

    Thanks
    Gabby

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans