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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Error on submitting invoice to zatca through electronic invoicing with ZATCA

(0) ShareShare
ReportReport
Posted on by 93

Hello Experts

We have implement electronic invoicing and integrated with zatca on production environment, we generate and invoice and we submit it to zatca this error appear:

KSA: A date MUST be formatted YYYY-MM-DD, in accordance to the “Calendar date complete representation“ as specified by ISO 8601:2004, format YYYY-MM-DD.

when we generate another invoice it was successfully submitted to zatca and the status was completed, this issue also is facing me on sanbox environment, when we have checked the XML file the date format was correct.

Any help please.

BR

Categories:
  • Suggested answer
    CU-1234529-002 Profile Picture
    631 on at

    Hi,

    This generic error message is actually used by ZATCA for several different date fields, not just the main Issue Date, including Due Date, Billing Reference Issue Date for credit or debit notes, Actual Delivery Date, and Latest Delivery Date. So even though your IssueDate looks correct, the real culprit could be a different date field that only appears on certain invoice types, which would explain why it's intermittent.

    Worth checking: if this invoice is a credit note, debit note, or references a preceding invoice, check the Billing Reference Document Date, since that's often pulled from a different source and can end up blank or malformed. Also check whether Actual Delivery Date or Latest Delivery Date is populated correctly on the failing invoices, and whether Due Date comes through properly if payment terms are involved.

    Best way to confirm is to compare the full raw XML of a failing invoice against a successful one side by side, specifically the IssueDate, DueDate, Delivery, and BillingReference elements, rather than just checking IssueDate alone.

  • Martin Dráb Profile Picture
    241,635 Most Valuable Professional on at

    You're asking in the general forum, therefore it's not clear which D365 product you mean, and you didn't mention it in the text either.

     

    Is it about Finance and Operations?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 46 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 35

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 33 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans