I have a script that does:
Get-Annotations -EntityName $entityName -CustomAttribute $customAttributeName -ErrorAction Ignore
This fails as follows:
Get-Annotation error: Value cannot be null.
Parameter name: collection
I know that I am passing in a correct entity name and a correct custom attribute name.
"collection" is not even a parameter to the Get-Annotation command?!
I also tried to get the entity object first, and pipe that into Get-Annotation, but same result!
Has anybody seen this before? What is wrong here? Is it an issue in the PowerCLI module maybe?
Thanks Luc. Yes I started a new PowerShell window and sometimes that does not show the error.
We are using PowerCLI module version 188.8.131.5238434.
Will try upgrade to 12.5.
Thanks for your feedback!
Thank you! We upgraded to the latest version of PowerCLI 12.5.
Was something actually fixed around this in latest version?
In the first test we did, the issue didn't show, but that could be a chance?