Print View

Error "Cannot validate argument on parameter Name" when discovering applications in XenDesktop 7

Issue

When adding applications to a desktop group in XenDesktop 7, the following error may be seen:

Error Id: XDDS:13E0B86A

Exception:
    Citrix.Console.Models.Exceptions.ScriptException Cannot validate argument on parameter 'Name'. The character length of the 66 argument is too long. Shorten the character length of the argument so it is fewer than or equal to "64" characters, and then try the command again.
       at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ExecutionResults`1 results, ICmdletExecutionHost host)
       at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)
       at Citrix.Console.PowerShellSdk.ApplicationService.Scripts.FindNonClashingApplicationNameScript.CheckRemoteNames(IEnumerable`1 names)
       at Citrix.Console.PowerShellSdk.Shared.Scripts.FindNonClashingNameScript.VerifyNamesAvailable()
       at Citrix.Console.PowerShellSdk.Shared.Scripts.FindNonClashingNameScript.RunScript()
       at Citrix.Console.PowerShellInteraction.PowerShellScript`1.Run()
       at Citrix.Console.PowerShellSdk.ApplicationService.PSApplicationService.DetectNameClashAndRecommendNames(IEnumerable`1 applicationNames, IEnumerable`1 localApplicationNames, IProgressReporter progressReporter, Canceller canceller)
       at Citrix.Console.DesktopGroups.UI.Pages.ApplicationSelectionPageViewModel.ApplicationsFound(IEnumerable`1 discoveredApplications, Canceller canceller)
       at Citrix.Console.Common.ThreadPoolWorkQueue.Worker()
    
    DesktopStudio_ErrorId : UnknownError
    Sdk Error Message : Cannot validate argument on parameter 'Name'. The character length of the 66 argument is too long. Shorten the character length of the argument so it is fewer than or equal to "64" characters, and then try the command again.
    Sdk Error ID : ParameterArgumentValidationError,Citrix.Broker.Admin.SDK.TestBrokerApplicationNameAvailableCommand
    ErrorCategory : NotSpecified
    DesktopStudio_PowerShellHistory : FindNonClashingApplicationNameScript
    3/01/2014 12:29:37 PM
    
    Test-BrokerApplicationNameAvailable  -AdminAddress 'xd7.domain.com:80' -Name @('Microsoft SQL Server Migration Assistant for Access','Microsoft SQL Server Migration Assistant for Access 32-bit','Adobe Reader X','Receiver','ConnectWise PSA','Google Chrome','LabTech Control Center','Microsoft Access 2010','Database Compare 2013','Spreadsheet Compare 2013','Excel 2013','SkyDrive Pro 2013','InfoPath Designer 2013','InfoPath Filler 2013','Lync 2013','Big Blue','Access 2013','Telemetry Log for Office 2013','Telemetry Dashboard for Office 2013','Publisher 2013','Lync Recording Manager','OneNote 2013','Outlook 2013','PowerPoint 2013','Visio 2013','Project 2013','Project Server 2013 Accounts','Word 2013','MYOB AccountRight Plus 20135 AU','Register for Updates','Install AccountRight API','Set Library Location','TeamViewer 8','VMware vSphere Client','Windows Media Player','Internet Explorer','Backup Exec Agent Utility','Wordpad','Windows Explorer','Microsoft Office 2010 Upload Center','Send to OneNote 2013','Office 2013 Language Preferences','Office 2013 Upload Center','Calculator','Character Map','Disk Cleanup','Command Prompt','Microsoft SQL Server Migration Assistant for Access Command Prompt','Ease of Access','dfrgui','displayswitch','Private Character Editor','IIS Manager','iSCSI Initiator','Magnify','Memory Diagnostics Tool','Group Policy Management','Storage Explorer','Sync Center','System Configuration','System Information','Paint','Remote Assistance','Remote Desktop Connection','Narrator','Notepad','Data Sources ODBC','On-Screen Keyboard','Resource Monitor','Security Configuration Wizard','Snipping Tool','Sound Recorder','Windows PowerShell with Citrix XenApp Migration Module','Windows PowerShell','Windows PowerShell Modules','XPS Viewer','Windows PowerShell x86','Windows PowerShell with Citrix XenApp Migration Module x86')
     : Cannot validate argument on parameter 'Name'. The character length of the 66 argument is too long. Shorten the character length of the argument so it is fewer than or equal to "64" characters, and then try the command again.
    	+ CategoryInfo : InvalidData: (:) [Test-BrokerApplicationNameAvailable], ParentContainsErrorRecordException
    	+ FullyQualifiedErrorId : ParameterArgumentValidationError,Citrix.Broker.Admin.SDK.TestBrokerApplicationNameAvailableCommand

Resolution

This is due to an item in the All Users Start Menu being longer than 64 characters. To resolve the issues, temporarily move or rename items from "C:\ProgramData\Microsoft\Windows\Start Menu" sub-folders to allow discovery to complete successfully.

Products

Citrix XenDesktop 7.x

Created: 3rd January 2014
Updated: 3rd January 2014

Print View

© 2005-2024 Jamie Morrison