Anaplan colnnect: action not found
Hi,
We use Anaplan Connect 1.4.2 to automaticly do some imports (SQL/Anaplan) and lauch some actions (imports between two Anaplan modules) every night.
We have no problem with SQL/Anaplan imports, but this process doesn't work for actions between 2 modules. This message appears when the system tries to do an action:
2020-03-20 11:17:20 INFO [c.a.client.Service :83 ] 400 |-- Initializing Service...
2020-03-20 11:17:20 INFO [bstractAuthenticator:46 ] 400 |-- Authenticating via Certificate...
2020-03-20 11:17:22 ERROR [c.a.client.Program :898 ] 400 |-- Action "1. Prevision du Budget sur from INEXPLAN / 1. LOAD Previsio" not found in workspace 8a81b09d575246a50157ddfb2abe3e9d, model 0D0ABF514B7F4FB498ADBC74533C8295
2020-03-20 11:17:22 ERROR [c.a.client.Program :252 ] 400 |-- An import, export, action or process must be specified before -execute
2020-03-20 11:17:22 INFO [c.a.client.Program :775 ] 400 |-- No dump file is available.
I have checked the name of the action and the workspace and model IDs.
For information, you will find below the .bat program file:
@Echo off
rem For Windows OS : This example explains the usage of basic Authentication with Anaplan Connect.
rem It also loads a source text file and runs an Anaplan import into a module.
rem For details of how to configure this script visit https://help.anaplan.com/anapedia/Content/Downloads/DL_Downloads.html
if not defined init_ok (call 01_Definition_parametre.bat)
set AnaplanUser="%anaplan_user%:"
set WorkspaceId=%workspace_id%
set ModelId=%model_id_ine%
set ServiceUrl="https://api.anaplan.com"
set AuthUrl="https://auth.anaplan.com"
rem set FilePath="FilePath on the Client"-put %FilePath%
rem set ImportName="1. Prevision Budget Portefeuille"
set ImportName="Test action from Inexplan II / 3. Balance Generale - New"
set DumpName="%dir_erreur%Errors_INE_BudgetMissionFromINEXPLAN.txt"
set Chunksize=1
set CertPath=%CertPath%
set PrivateKey=%PrivateKey%
set Operation=-debug -service %ServiceUrl% -auth %AuthUrl% -workspace %WorkspaceId% -model %ModelId% -chunksize %Chunksize% -loadclass "net.sourceforge.jtds.jdbc.Driver" -action %ImportName% -execute -output %DumpName%
rem *** End of settings - Do not edit below this line ***
setlocal enableextensions enabledelayedexpansion || exit /b 1
cd %~dp0
if not %AnaplanUser% == "" set Credentials=-certificate %CertPath% -privatekey %PrivateKey%%
set Command=C:\anaplan-connect\AnaplanClient.bat %Credentials% %Operation%
@Echo %Command%
cmd /c %Command%
Has anyone else faced this kind of issue? Any pointers on troubleshooting this error would be greatly appreciated.
Best Answer
-
Try replacing "action" with "Import"
set Operation=-debug -service %ServiceUrl% -auth %AuthUrl% -workspace %WorkspaceId% -model %ModelId% -chunksize %Chunksize% -loadclass "net.sourceforge.jtds.jdbc.Driver" -action %ImportName% -execute -output %DumpName%
set Operation=-debug -service %ServiceUrl% -auth %AuthUrl% -workspace %WorkspaceId% -model %ModelId% -chunksize %Chunksize% -loadclass "net.sourceforge.jtds.jdbc.Driver" Import %ImportName% -execute -output %DumpName%
1
Answers
-
Thank you vey much, this works well.0