Set-TppAttribute generates a spurious error message (from Test-TppIdentity) when attempting to clear a custom Identity field - note that the field seems to be cleared despite the error message.
PS> $cert.Path
\VED\Policy\Certificates\etc\somecertificate
PS> Set-TppAttribute -Path $cert.Path -Attribute @{"Custom ID field"=$null} -BypassValidation
Test-TppIdentity : Cannot validate argument on parameter 'ID'. The argument is null, empty, or an element of the argument collection
contains a null value. Supply a collection that does not contain any null values and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\5.4.1\Public\Set-TppAttribute.ps1:162 char:49
+ ... thisValue | Test-TppIdentity -ExistOnly -VenafiSession $VenafiSession ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-TppIdentity], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Test-TppIdentity
Set-TppAttribute generates a spurious error message (from Test-TppIdentity) when attempting to clear a custom Identity field - note that the field seems to be cleared despite the error message.
VenafiPS version 5.4.1