Exception calling "BeginPublishContactInformation" with "3" argument(s)
Hello,
I tried using the module
Publish-SfBContactInformation -CustomActivityId 5 -Availability Away -PersonalNote "Getting Coffee" -Location "@Kitchen"
unfortunately it fails with the following error:
PS C:\Users\MyUser> Publish-SfBContactInformation -CustomActivityId 4 -Availability Away -PersonalNote "Getting Coffee" -Location "The Kitchen"
MethodInvocationException: C:\Users\MyUser\Documents\PowerShell\Modules\PSProductivityTools\0.7\Functions\Publish-SfBContactInformation.ps1:132
Line |
132 | $Publish = $Self.BeginPublishContactInformation($ContactI …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "BeginPublishContactInformation" with "3" argument(s): ""
MethodInvocationException: C:\Users\MyUser\Documents\PowerShell\Modules\PSProductivityTools\0.7\Functions\Publish-SfBContactInformation.ps1:134
Line |
134 | $Self.EndPublishContactInformation($Publish)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "EndPublishContactInformation" with "1" argument(s): "Invalid asyncResult"
I have Office Professional 2016 32-bit on Windows 10 Pro 64-bit
I have also installed the necessary SDK: lyncsdk86.msi
Unfortunately I do not know how to fix this. Must the id exist in the CustomPreference.xml?
This works:
Publish-SfBContactInformation -CustomActivityId 4 -PersonalNote $PersonalNote -ErrorAction Stop
Location does not work:
Publish-SfBContactInformation -CustomActivityId 4 -PersonalNote $PersonalNote -ErrorAction Stop -Location "Kitchen"
Publish-SfBContactInformation : Exception calling "BeginPublishContactInformation" with "3" argument(s): ""
At line:1 char:1
+ Publish-SfBContactInformation -CustomActivityId 4 -PersonalNote $Pers ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Publish-SfBContactInformation], MethodInvocationException
+ FullyQualifiedErrorId : OperationException,Publish-SfBContactInformation
able to retrieve the information LocationName:
$([Microsoft.Lync.Model.LyncClient]::GetClient()).ContactManager.GetContactByUri("[email protected]").GetContactInformation('LocationName')
Kitchen
So perhaps the administrator disabled this functionality?
Hi,
Yes, admin restriction might be the culprit.
Unfortunately, I am not using SfB anymore, so I am unable to test.