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 :
Small and medium business | Business Central, N...
Suggested Answer

Error creating XML with PEPPOL

(2) ShareShare
ReportReport
Posted on by 110
I'm doing tests with Italian localization for electronic sales invoices. With XML export with PEPPOL I get this error message: 
 
Error message: 
Country/Region does not exist. Identification fields and values: Code=''
 
AL call stack:
"PEPPOL Management"(CodeUnit 1605).GetCountryISOCode line 4 - Base Application by Microsoft
"PEPPOL Management"(CodeUnit 1605).GetAccountingSupplierPartyPostalAddr line 22 - Base Application by Microsoft
"Sales Invoice - PEPPOL BIS 3.0"(XmlPort 1610)."AccountingSupplierParty - OnBeforePassVariable"(Trigger) line 11 - Base Application by Microsoft
 
The Country field has been inserted in company information, in Countries/Region (with ISO code) and also in the customer.
Where else could I check?
 
Thank you.
I have the same question (0)
  • Vahid Ghafarpour Profile Picture
    12,090 Super User 2025 Season 2 on at
    Verify that CodeUnit 1605 "PEPPOL Management" is correctly configured and that there are no customizations interfering with the GetCountryISOCode method
     
  • Gerardo Rentería García Profile Picture
    25,157 Most Valuable Professional on at

    Hi, good day
    You can check if this column is configured in the country where you are working on the document.

    Best Regards
    Gerardo

  • GV-08111304-0 Profile Picture
    110 on at
     
    In the configuration of table 9 (Country/Region) I set the ISO Code and Numeric ISO Code...
     
     
    Maybe it refers to an ISO Code from another table?

    I don't know if you use the Italian localization, here we also have a codeunit for the "Public Administration", using that generates the xml, if I select PEPPOL I get this error.
  • GV-08111304-0 Profile Picture
    110 on at
    I analyzed the code of codeunit 1605, the ISO code takes it from sales header and company information, it is present in both fields.

    Do you have other ideas?
  • Gerardo Rentería García Profile Picture
    25,157 Most Valuable Professional on at
    Hi
    Do you work with a responsibility center?
     
    best
    GR
  • GV-08111304-0 Profile Picture
    110 on at
     
    No, the responsibility center field is not filled in the sales header.
  • Suggested answer
    keoma99 Profile Picture
    138 on at
    Check if the country codes in company info, customer page, the original sales order or sales invoice are all filled. check in the original sales document the customer address, the shipment and invoice address data. after posting check the resulting posted sales invoice if all country/region fields have the correct value or if they are empty. Test the whole thing in a different company. Maybe there are customizations or weak setups, which cause that.
     
     
    Dipl.Ing. Franz Kalchmair
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,275 Super User 2025 Season 2 on at
  • GV-08111304-0 Profile Picture
    110 on at
    Hi, @keoma99

    I checked everywhere you said, the Country/region field is filled in everywhere: on customer, sales header. I have no freight or shipping, only invoice.
     
    I tried with Cronus, it generates the XML file but the country code is missing inside. It generates it, but it is not correct..

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans