Symptoms

Task related for Lync phone number assignment task with the following error:

Application configuration script reported errors: 'Execution problem. See the inner exception.
Command execution stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Filter failed to return unique result, "[SipAddress : sip:test.user@domain.com] [LineURI : tel:+123123123] [PrivateLine : tel:+123123123] "

Cause

The issue can occur if the task is trying to assign phone number to Lync account while the same phone number is used by another object in Lync infrastructure (e.g. another user, call group, conference dial in settings etc.)

Resolution

To resolve the issue it is needed to find out the object which has the same number:

Get-LyncNumberAssignment -Number "+123123123"
LineUri       : TEL:+123123123
DisplayName   : TEST
SipUri        : sip:testconf@test.com
Type          : DialInConf
RegistrarPool : testpool.com

and reassign it if needed. For example, it can be achieved using this script.

Internal content