API Anaplan Connect Export Action give no data


API Anaplan Connect Export Action give no data

I can set a batch file that works and exports data, a small bit, but if I switch the action to a different one, it returns only headers.

This is the exact file minus username:password and action name and path are removed.


To be clear, the action run by hand exports a csv and the data is all there.

If I run it via API/Anaplan Connect, it does not fail, it just does NOT include any data other than the headers/column names


@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

set AnaplanUser=
set WorkspaceId="8a81b09c652b03b101654519bfe258d4"
set ModelId="DD17AA9F21E34DEEB412DCAB475D4E29"
set ServiceUrl="https://api.anaplan.com"
set AuthUrl="https://auth.anaplan.com"

set FilePath="<MYFILEPATH>\Test.csv"

set Operation=-debug -service %ServiceUrl% -auth %AuthUrl% -workspace %WorkspaceId% -model %ModelId% -export %Export% -execute -get %FilePath%

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 -d -d %Credentials% %Operation%
@echo %Command%
cmd /c %Command%


Re: API Anaplan Connect Export Action give no data

It was user configuration. User error.