You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the script against a CUCM node v12.5 and you attempt to add a phone you get the following error:
WARNING: [13:13:15][Invoke-PSCUCMAxlQuery] Failed to execute AXL entity addPhone. AXL Error: Cannot insert a null into
column (device.fklocation). (-391) | The remote server returned an error: (500) Internal Server Error.
It appears that the "$locationName" variable needs to either be defaulted or have a switch to allow you to add that in order for the command to work.
The text was updated successfully, but these errors were encountered:
Is this the New-PSCUCMPhone function? Or is this directly calling Invoke-PSCUCMAxlQuery? I'll have to take a look at the code and if Cisco has a sandbox CUCM 12.5 as all my work was for 11.5 as that's the environment I administered.
I'm sorry, i forgot to put all the relevent information, it is on a v12.5 SU3 box. The command being run (after connecting) is: Add-PSCUCMPhone -Name "CSFZBSmith" -Product "Cisco Unified Services Framework" -DevicePoolName "Default" -Protocol "SIP"
Then i get the error above.
Once I figured out that the Product needed the word Client in there, I was able to reproduce this in a DevNet SandBox. I found that removing the Location completely allowed the command to add the phone. I've pushed this as a minor release to the Gallery. I'd really like to flesh this command out further and actually handle adding other things, I just haven't had the cycles.
When using the script against a CUCM node v12.5 and you attempt to add a phone you get the following error:
It appears that the "$locationName" variable needs to either be defaulted or have a switch to allow you to add that in order for the command to work.
The text was updated successfully, but these errors were encountered: