Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EU VAT Registration No. Validation - issue #7140

Closed
CChub402 opened this issue Aug 19, 2022 · 5 comments
Closed

EU VAT Registration No. Validation - issue #7140

CChub402 opened this issue Aug 19, 2022 · 5 comments

Comments

@CChub402
Copy link

CChub402 commented Aug 19, 2022

1. Describe the bug

When EU VAT REgistration No. Validation service enabled in Service connections as shown below,

image

We get the following error when a VAT registration number is entered in customer, vendor or contact card page

A call to System.Xml.XmlDocument.Load failed with this message: '>' is an unexpected token. The expected token is '"' or '''. Line 1, position 55.

image

2. To Reproduce
Search for Service connections in Business central web client, and select the option "EU VAT Registration No. Validation service" and enable it.
Open Customer card page and type in a value for "VAT Registration No." field.

3. Expected behavior
"VAT Registration No." validation check goes through without any error.

4. Actual behavior
An error occurs with the message "A call to System.Xml.XmlDocument.Load failed with this message: '>' is an unexpected token. The expected token is '"' or '''. Line 1, position 55"

5. Versions
In every Business central versions

@dannoe
Copy link

dannoe commented Aug 22, 2022

@devKomak
Copy link

@dannoe
Copy link

dannoe commented Aug 23, 2022

Sorry, I didn't notice I posted an non-official microsoft yammer group. (and it's even in german 😅)
Heres a link for the official microsoft dynamics nav yammer: https://www.yammer.com/dynamicsnavdev/#/threads/show?threadId=1867655035756544

For SaaS an update/hotfix should be released this week.
For OnPrem - NAV 2018 and forward a CU will be released in september
For OnPrem before NAV 2018 no update is planned. You can try to fix it yourself. A user posted this:
grafik

Another user posted he had to upgrade 2 Codeunits on NAV 2017:

Codeunit 248 VAT Lookup Ext. Data Hndl
Codeunit 1290 SOAP Web Service Request Mgt.

@CChub402
Copy link
Author

Perfect. Thanks. It works

@MarcGretener
Copy link

In case the user is using NAV2016 the hotfix applies to Codeunit 248 and 1290 as suggested.
The hotfix in Codeunit 248, is stated above, however the function SetContentType does not exist in Codeunit 1290

  1. In codeunit 1290 add the Global variable GlobalContentType, DataType Text

  2. Add the function SetContentType:
    image

  3. Modify function BuildWebRequest:
    image

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants