Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

VAT number validation fails since last week

Posted on by 24

Good morning forum,

Start last week we have an issue with the VAT validation. When executed (by entering a valid VAT in a customer card) we get an XML error.

It states that the call is not successful because System.Xml.XmlDocument.Load has failed. I've looked at the operation of the service http://ec.europa.eu/taxation_customs/vies/services/checkVatService and that seems all in order when called from Postman. I looked also at the template that is used for this call, but can't find a way to see the actual template that is used in this call.

Do any of you experience the same problem?

pastedimage1660546477584v1.png

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: VAT number validation fails since last week

    Every national finance authority within the EU should provide its own web service for that issue too.

    for austria goto: www.bmf.gv.at/.../BMF_UID_Abfrage_Webservice_2.pdf

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    RE: VAT number validation fails since last week

    Hi, I'm sorry I haven't tried it.
    You can copy the original button and create a new one. But since some local methods can't be called, I don't know if this is possible without trying it.

    I hope this will give you some hints.

    Thanks.

    ZHU

  • AntonisK Profile Picture
    AntonisK 171 on at
    RE: VAT number validation fails since last week

    For some bc on prem versions ( like v16 ) where the event is not available but its not NAV which is easier to modify the base app , is there any other way to temporarily fix this bug without having to modify the base app?

    Adding NorthW, yzhums  in the conversation as well!

  • RE: VAT number validation fails since last week

    Good afternoon;

    Exact same issue and message when trying to check VAT for EU (worked before) both for customers and vendors cards.

    The issue was forwarded to our BC support partner, hoping for a quick fix, because we fear it may jeopardize the sepa paying slip.

    thanks,VIEs-Check-in-BC_5F00_Capture-d_1920E900_cran-2022_2D00_08_2D00_17-145601.png

  • RicoTrobisch Profile Picture
    RicoTrobisch 10 on at
    RE: VAT number validation fails since last week

    We have on BC V18 OnPrem Customer. The mentioned Eventpublishe doesn’t exist and we don’t want to customize the Base App.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: VAT number validation fails since last week

    Solution for older NAV versions is described here (it’s basically the same):

    www.beyond365.de/.../fix-online-validation-of-vat-registration-nos-for-older-versions

  • RicoTrobisch Profile Picture
    RicoTrobisch 10 on at
    RE: VAT number validation fails since last week

    Hi Stefano,

    thx for this workaround. Unfortunately this Event doesn't exist in older BC OnPrem versions. :(

    At least I can fix this for my Saas Customers. ;)

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: VAT number validation fails since last week

    Yes you need to create an AL extension to apply the above fix.

    Microsoft is aware of this problem, no ETA for an official fix now (so recommendation is to fix it as per my answer above).

  • Raymond Roesink Profile Picture
    Raymond Roesink 24 on at
    RE: VAT number validation fails since last week

    Hi Stefano, I understand that you use this code to overrule/amend the existing code that is triggered by this event. I'm fairly new to BC programming but I think you put this in an AL extension and load it in Dynamics?

  • J-Philippe Profile Picture
    J-Philippe 10 on at
    RE: VAT number validation fails since last week

    Same problem and your solution does work.

    Thank you.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans