Skip to content
English
  • There are no suggestions because the search field is empty.

Save-VaultFile does not download all files and accessing the return object throws an error

Issue

When using the Save-VaultFile Cmdlet some files might not be downloaded, accessing the return object throws a NullReferenceException: 

2025-06-19 11:11:15,762 [Pipeline Execution Thread] WARN  powerVault.Cmdlets.Cmdlets.Vault.Facade.VaultPropertyReader - VaultPropertyReader.RetrievePropertyValuesFromVault([ {Jet_Engine_Model.iam}, {Rear Casing.ipt}, and 148 more ]) | Failed, exception = {NullReferenceException}.
System.NullReferenceException: Object reference not set to an instance of an object.

Cause

The cause for this issue is currently unknown. We suspect it is related to the file associations of the file you are trying to download.

Solution

Use the Get-VaultFile Cmdlet with the -DownloadPath argument or use the Vault API to download files instead.