cdhayward / Enable-TeamsDRUser

PowerShell GUI to manage Teams user settings for Direct Routing
16 stars 1 forks source link

Filter failed to return unique result #1

Open rnliseb opened 2 years ago

rnliseb commented 2 years ago

I usually have no issues with this script, however when assigning a phone number that was previously assigned to someone else, I got this error during the "enabling enterprise voice step":

`Filter failed to return unique result, "[SipAddress : sip:user@domain.com] [LineURI : tel:+xxxxxxxxxxxx] [PrivateLine : tel:+xxxxxxxxxxxx] "

I ran the powershell manually, and it applied no problem: Set-CsUser -Identity user@domain.com -OnPremLineURI tel:+xxxxxxxxxxxx -EnterpriseVoiceEnabled $true

cdhayward commented 2 years ago

Hi the "Filter failed to return unique result" is a Teams error and is most likely just the Teams backend being slow after removing the original number.

The script is running the same Set-CsUser command (Line 410) Set-CsUser -Identity $SipAddress -OnPremLineURI $txtb_LineURI.text -EnterpriseVoiceEnabled $true

rnliseb commented 2 years ago

Yeah I saw that the script runs the exact same thing, strange - I did wait 24 hours after removing the number and tried both ways just after another