Symptoms
The error below prevents from successfully disabling Lync subscription:
Internal error: APS suspendable resource '18b14338-679a-418a-9e2c-f5931a7ce701' was NOT disabled.
The logs on Lync endpoint contain the error:
EXCEPTION: System.Management.Automation.ActionPreferenceStopException: Command execution stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot bind parameter 'Identity' to the target. Exception setting "Identity": "The location cannot be null or empty." at Parallels.APSCommon.PowerShellUtils.PowerShellRunspace.ExecuteScript(String scriptContent, Int32 timeout) at Parallels.Lync.Common.PowerShell.LyncPowerShellRunspace.ExecuteScript(IScript script) ... ... [2017-12-03 17:50:37.1522 8d9537b8-ed91-0003-7215-9d8d91edd201 11 ERROR] Method OrganizationsController.Disable calling failed. Reason:Execution problem: Command execution stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot bind parameter 'Identity' to the target. Exception setting "Identity": "The location cannot be null or empty." [2017-12-03 17:50:37.1522 8d9537b8-ed91-0003-7215-9d8d91edd201 11 ERROR] StackTrace: at Parallels.Lync.Common.PowerShell.LyncPowerShellRunspace.ExecuteScript(IScript script) at Parallels.Lync.Common.Actions.ResponseGroups.UpdateRgWorkflowsAction.Execute(IPowerShellRunspace runspace, IOpenApiTools openApiTools) at Parallels.Lync.Common.ActionProcessor.Execute() at Parallels.LyncHP.ProvisioningGateway.Controllers.OrganizationsController.UpdateOrganizationResources(String organizationId, Boolean enable) at Parallels.APSCommon.WebApi.ApiControllerBase.<>c__DisplayClass6.<ExecuteControllerAction>b__5() at Parallels.APSCommon.WebApi.ApiControllerBase.ExecuteControllerActionImpl(String methodName, Boolean reportErrorSensitiveInfo, Func`1 action, Object[] methodParams)
Cause
Subscription contains Lync Call Groups not completely provisioned. The corresponding provisioning tasks were canceled but the items were created on APS bus. The attribute "Identity" (representing Lync's location) was never assigned to call groups thus when subscription was being disabled, the Endpoint could not handle the items with empty "Identity" propery.
Resolution
Contact Odin Technical Support To resolve the case.