PoShPACLI
PoShPACLI copied to clipboard
Open-PVSafe is throwing errors, still opening the safe
trafficstars
Your issue may already be reported. Please search existing issues before creating one.
Your Environment
Windows Server 2012 R2
- PowerShell Version: 5.1 build 14409 revision 1005
- PoShPACLI Version: 2.1.27
- PACLI Version: v10.10
- CyberArk Version: v10.10
Expected Behaviour
The specified safe should open without any errors.
Current Behaviour
When using Open-PVSafe in a PowerShell script: Open-PVSafe -safe $safetoopen the following error messages are thrown:
Cannot index into a null array. At line:137 char:5
-
[PSCustomObject] @{ -
~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation (:) [], RuntimeException + FullyQualifiedError : NullArray
Possible Solution
The errors were not displayed when using the following call:
Open-PVSafe -safe $safetoopen -ErrorAction SilentlyContinue
Steps to Reproduce (for bug reports)
1 . attempt to open a safe using Open-PVSafe -safe
Context
Create safes and populate them with test password objects to test a DBScript from CyberArk Suppor
t.