Skip to main content

Dynamics NAV / MSDYN365BC - The Hostname could not be parsed or Invalid.

Hi Readers,

This is a quick blog about some recent findings that we had during a Project.

This is in relation to the URL specified in the service tier.

In this article, we will see what kind of issues can happen due to invalid URL is Service Tier and How to fix those issues that you found.

Multiple Errors that this article will help to fix -
  1. The Hostname could not be parsed.
  2. Invalid URI: The hostname could not be parsed.

Let's start it where these Error messages will appear -

1. When you try to use Help About This Page, client crash with Error Message - The Server was unable to process the request. The Application will close.



2. Approval Emails are generating the wrong URL.

3. Approval Notifications are not be sent via Job Queue with Error Message The Hostname could not be parsed.



4. Issues in Web Services, wrong URL.

Investigation - 

I love to start my investigation from Event Viewer. When I started checking here is what I Found -  The Hostname could not be parsed.




When I tested trick in my book and did not find anything. Then I created a new service map to the database and everything started working fine.

What Next?
I compared both service tier Files, and there was the culprit.

So What You need to check?

  • Check all the URL's that you have mapped in the service tier.
  • There are 04 URLs in one Service where you can mess up.
  • Web Client URL - Check the suggestion in the Last tab as shown below.
  • Windows Client Base URL - Check the suggestion in the Last tab as shown below. It normally starts with DynamicsNAV:// which we miss most of the time.



  • SOAP Base URL - Check the suggestion in the Last tab as shown below.
  • ODATA Base URL - Check the suggestion in the Last tab as shown below.

Once you set all these 04 URLs correctly, restart your services and you should be good to go.

Hope this article helps to fix issues if you get stuck in a project.


Regards,
Saurav Dhyani
www.sauravdhyani.com

Comments

  1. Glad I found this article about virtual assistant. Keep writing
    helpful articles like this one. I'll definitely visit this blog
    to read more.

    ReplyDelete

Post a Comment

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searching for the error i figured out the issue was due to - Design change in NA

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.