Admin cannot edit some of the published applications.
Affected applications: Dual Admin APP-V Applications
Error displayed:
More details:
Action Name: APP_ApplicationProperties
Exception:
StudioErrorId : UnknownError
Error Source : CitrixAppVService
Sdk Error Message : Cannot process command because of one or more missing mandatory parameters: AppVPublishingServer.
When you select APP-V application in WebStudio (Applications node), App-V publishing server is not displayed in Details tab:
Please note: This article, examples and solution applies to environments where only a single APP-V server pair (Management/Publishing server) is used. Examples below show a very simple scenario.
In environments with multiple APP-V servers configured it is expected to have multiple broker machine configurations and solution is more complex.
We strongly recommend Customers to contact Citrix Support.
Verify if the link between Applibrary and Broker is broken.
1 - Open Powershell on the Delivery Controller as administrator.
2 - Check UID of the record stored in AppLibrary:
Get-AppLibAppVServer
Example:
3 - Check Configuration Slot used by APP-V Dual Admin mode:
Get-BrokerConfigurationSlot -Name AppV
Example:
4 - Check Broker Machine Configuration used by APP-V Dual Admin (ConfigurationSlotUid = Uid from the Step 3)
Get-BrokerMachineConfiguration -ConfigurationSlotUid 2
Example:
What we can see above:
Uid from Step 2 = 2
LeafName from Step 4 = 1
This is the issue. The LeafName value is not the same as Applibrary AppVServer Uid.
Workaround/Solution:
1 - Publish a new App-V application to Delivery Group. You can delete it after. Publishing will create a new broker machine configuration.
2 - Check Broker Machine Configuration used by APP-V Dual Admin (Remember to used correct ConfigurationSlotUid):
Get-BrokerMachineConfiguration -ConfigurationSlotUid 2
Example:
As you can see we have 2 configurations now. New configuration has LeafName value = 2 which is matching Uid from AppLibrary.
3 - Reassociate existing application with a new Broker Machine Configuration (Uid = 3)
From the output above we know that there is application with Uid=11 associated with old configuration (Uid = 2)
4 - Remove application from Configuration:
Get-BrokerMachineConfiguration -Uid 2 | Remove-BrokerMachineConfiguration -Application 11
5 - Add Application to a new Configuration (Uid = 3)
Get-BrokerMachineConfiguration -Uid 3 | Add-BrokerMachineConfiguration -Application 11
6 - Update Application Metadata
Set-BrokerApplicationMetadata -Name Citrix_DesktopStudio_MachineConfigurationUid -Value 3 -ApplicationId 11
App-V Server record removed from AppLibrary. Admin removed server using Remove-AppLibAppVServer cmdlet.
The link between Broker (Machine configuration) and AppLibrary (AppVServer) broken.