PACLI Fails to run, CMD returns error code 17
95
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:11 PM
Symptom
When attempting to run a PACLI script the following error is returned
Cannot communicate with PACLI server. Issue PACLI init. error code: 17.
This happens with multiple versions of PAS/PACLI (9.9.5, 10.6, 10.8) and appears to be linked to the RETRIEVEFILE command.
Environment
9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8 Component: Cyber-Ark API/SDK Functional Area: PACLI
Cause
This issue is caused by a open bug. The actual issue is that a required dll can't be called if the script is run from a different directory than the PACLI install directory. The script will run if the running directory is the same as the Install directory.
Resolution
You can workaround this issue by editing the %PATH% environment variable to include the PACLI install directory.