Hello,
I am trying to set up a certificate to run my batch scripts instead of having my username and password included in the batch scripts. I have confirmed that the batch script works when including my username, and then manually typing in my password; however, when I replace the information with a new certificate that I just created today, I get the following error message:
"Anaplan API: The Credentials supplied were invalid."
In the command prompt window, this error happens right after the following:
"Using C:\Users\jprince\Desktop\anaplan-connect-1-3-3-3\anaplan-connect-1-3-3-3.jar"
Here is the script text I am using in the batch script:
@echo off
set AnaplanUser="C:\Users\jprince\Desktop\anaplan-connect-1-3-3-3\certificate-260963260461973179890353199737974574378.cer"
set WorkspaceId="8a81b09d5abf5098015af2e09a942669"
set ModelId="057E8A4AB3A142A58D4EBF7EC3D4C526"
set Operation=-file "Inventory Report - Australia January 2017_FG Detail.csv" -put "C:\Users\jprince\Desktop\anaplan-connect-1-3-3-3\0. Current Batch\Inventory Report - Australia January 2017_FG Detail.csv" ^ -import "** Import Australia Finished Goods" -execute -output "C:\Users\jprince\Desktop\anaplan-connect-1-3-3-3\0. Current Batch\0. Current errors files\Australia Finished Goods Errors.csv"
rem *** End of settings - Do not edit below this line ***
setlocal enableextensions enabledelayedexpansion || exit /b 1
cd %~dp0
if not %AnaplanUser% == "" set Credentials=-user %AnaplanUser%
set Command=.\AnaplanClient.bat %Credentials% -workspace %WorkspaceId% -model %ModelId% %Operation%
@echo %Command%
cmd /c %Command%
pause
Is there something wrong with my syntax? Or my certificate?