Set-QADUser & set-QADObject Error : Exception has been thrown by the target of an invocation.

I have tried to update the following virtual attribute (edsvaAssociateLMSAccountWithUser) from TRUE  to Yes ($UpdateValue) and I am getting the following error using both the Set-QADUser & set-QADObject commands:

set-QADObject $SamAccountName -objectAttributes @{edsvaAssociateLMSAccountWithUser=$UpdateValue} -proxy

set-QADUser $SamAccountName -objectAttributes @{edsvaAssociateLMSAccountWithUser=$UpdateValue} -proxy

Any help is appreciated!