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

Exchange Rate Service - Connection to local Server

(0) ShareShare
ReportReport
Posted on by 5

We are trying to setup another Website containing an xml file (used floatrates xml structure as an example) hosted on the same IIS instance as our MS Dynamics NAV2016 webapp. 

Our problem is we are getting an Error 406 when we click on the Preview after creating the import.

NAVOneError.png

It sees the XML file whilst we setup the process but once the process has been setup and we want to preview the results we get that error. All settings on our IIS Website are set to defaults and we have (seemingly) nothing blocking comms between the Website and NAVOne instance.

I have checked the IIS logs and I can see the connection is successful when setting up the Exchange Rate Service (Web Response 200) but when clicking on Preview the IIS server returns 406

We can connect to the address directly from any browser with no issues.

Any ideas on how we can resolve would be great thanks.

  • Suggested answer
    MahGah Profile Picture
    15,445 on at
    RE: Exchange Rate Service - Connection to local Server

    Hi

    I have tried many XML server with BC SaaS for exchange rate and had no issue. But when I tried XML with HTTP then it failed. Can you change the HTTP to HTTPS and try? Also if you use Postman (https://www.postman.com/) and use your link in your network what is the result?

    In addition, do you have any firewall that block anything internally?

  • Francois.Coetzee Profile Picture
    5 on at
    RE: Exchange Rate Service - Connection to local Server

    Seems like there are no more suggestions here. We'll keep trying on our end and see if we can come up with a solution.

  • Francois.Coetzee Profile Picture
    5 on at
    RE: Exchange Rate Service - Connection to local Server

    Hi

    In this instance we are not using TLS for communication so it is a straight forward http request. Because both the Website that is hosting the XML data file and the NAV Application is residing on the same server (and port 80 is not open to any other PCs on the network) we figured http would suffice.

    Unless the access method of the Exchange Rate Services has changed in NAV2018 I am doubtful upgrading would resolve the issue. And unfortunately this decision is out of my control.

    We are trying to find a solution whereby we can feed the Exchange Rates automatically (using our own source file) using the current version of NAV.

    Rgds

    Francois

  • Marco Mels Profile Picture
    on at
    RE: Exchange Rate Service - Connection to local Server

    Hello,

    We have had questions about the requirements to use Tls1.2. Here we are using http. Is that correct? As we do not support Dynamics NAV 2016 anymore, if possible, I would suggest you consider an upgrade to a supported release or at least to latest available CU for Dynamics NAV 2016. It may not resolve this specific error, but it is the right  thing to do. First support releases for Dynamics NAV is the 2018 release.

    Thanks.

  • Francois.Coetzee Profile Picture
    5 on at
    RE: Exchange Rate Service - Connection to local Server

    Thanks Marco.

    Yes, I have read through that Error and did all the IIS Server Side suggestions/changes (e.g ensured .xml was a valid listed MIME type) from various articles on the Web but still no luck.

    Does anyone know what happens in the back end of NAV2016 for the Exchange Rate Services  ?

    • How it connects to the endpoint?
    • Does it do any validation checks before initiating the http GET to the xml file?
    • Does it use RESTful API as connectivity?

    It seems there is little to no information on the workings of this on the internet.

  • Marco Mels Profile Picture
    on at
    RE: Exchange Rate Service - Connection to local Server

    Hello,

    This is a very generic error, so I can only refer to the general information about it (you may have seen already):

    https://httpstatuses.com/406

    Thanks.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans