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.

Saurav Dhyani


Popular posts from this blog

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing - 

Dynamics 365 Business Central 2021 release wave 2 (BC19) Released.

Hi Readers, As we all were expecting Microsoft have Released Business Central 2021 Release Wave 2 Today a.k.a BC19. In this article we will see what all is announced with the General Availability.  Starting Today Customers & Partners can start using Business Central 19. #msdyn365bc #bc19

Error After Restore SQL Backup of NAV 2013 Database

Hi all, we are facing a conman issue during restoring a SQL Database backup restored for NAV 2013. While Trying to run object from Object Designer we get below listed error (even the service is configured properly) - --------------------------- Microsoft Dynamics NAV Development Environment --------------------------- There are no NAV Server instances available for this database. You must ensure that a NAV Server instance is running and is configured to use the database before you perform this activity. --------------------------- OK    ---------------------------