Skip to main content
Business Central forum
Suggested answer

VAT number validation fails since last week

editSubscribe (1) ShareShare
ReportReport
Posted on by 22

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

Categories:
  • Suggested answer
    keoma Profile Picture
    keoma 32,671 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 59,766 Super User 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 154 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,152 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,152 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 22 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.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans