Trying to access the Citrix Director pages or accessing the database directly over an Open Data Protocol (OData) query fails. The following are some examples on the error message that is encountered:
Director pages fail with an 'Unexpected error' message.
OData query in the browser fails with the exception message of 'Format of the initialization string does not conform to the specification'.
If the Site and the Monitor are in the same database, the site services will also fail.
Note: These errors may also be caused by other issues that are not related to this topic.
Name the monitoring database without a whitespace. For Example: instead of naming the monitor database as 'Monitor 01' name it as 'Monitor01'.
For cases where the monitor database already exists, complete the following steps:
On the Delivery Controller, using PowerShell, first nullify the Monitor DataStore connection and then point it to the renamed database:
IMPORTANT! To get the existing monitor connection string before the renaming process, then use the following command: Get-MonitorDbConnection
When the database has a whitespace in the database name, any Citrix Director queries to the Monitor Service OData API will fail because the OData queries cannot access a database with a space in the name.
Note: This issue can also happen when you are using port number for SQL in the connection string and there is a whitespace between the database name and the port number.