Summary
This article discusses an error shown in the WebUI.log when the name passed to MSMQ is too long for MSMQ to process.
Symptoms
The following error is shown in the webui.log:
[ERROR 2017-01-13 14:44:00,902 34460ms UnhandledErrors ] An unexpected error occurred (bc4b74c7-1228-41cd-9822-49b36301ce92) Flexera.MessageQueue.MessageQueueInitializationException: Cannot write to queue; the current user may not have sufficient permissions, or the host address may be incorrect. Queue address: FormatName:DIRECT=OS:http\private$\\DEMCHP9909XSRV.NSN-INTRA.NET\fnmsBatchProcessIncoming at Flexera.MessageQueue.Microsoft.MicrosoftQueueBase`1.OpenQueue(QueueAccessMode mode) at Flexera.MessageQueue.Microsoft.MicrosoftQueuePublisher`1.WriteMessage(T messageBody)
Rerunning the Powershell scripts does not resolve the issue
Resolution
This issue is caused by the length of the name in the following line of the WebUI.log:
FormatName:DIRECT=OS:http\private$\\DEMCHP9909XSRV.NSN-INTRA.NET\fnmsBatchProcessIncoming
The section 'DEMCHP9909XSRV.NSN-INTRA.NET' can be a maximum of 14 characters for use with MSMQ. The following query can be used to change the specified name:
UPDATE ComplianceSetting SET SettingValue='DEMCHP9909XSRV' WHERE SettingName = 'BatchSchedulerHostName'
An enhancement has been raised in FNMS-40374 to improve the quality of the logging for this issue