Update-VaultFile throws "Failed to update properties for file: "

When using Update-VaultFile to change a newly added Vault property the error "Failed to update properties for file: " is thrown

Issue

When using Update-VaultFile to change a newly added Vault property the error "Failed to update properties for file: <filename>" is thrown.

Cause

This happens because Vault properties are only read when connecting to Vault. If a new property is added to Vault, but powerJobs Processor or the PowerShell session is not restarted then powerVault will not be aware of the new property.

Solution

Restart powerJobs Processor, VsCode or whatever application is having the issue