Anaplan Connect 400 error

Options

Manually upload file works but run process with Anaplan Connect gets an error
Who knows the reason?


C:\Users\admin>C:\Anaplan\Batch\AnaplanClient.bat -keystore "C:\Anaplan\Certificate\keystore.jks" -keystorepass "xxxxxxx" -keystorealias "xxxxx" -workspace "workspaceid" -model "modelid" -service "
https://api.anaplan.com"
-auth "
https://auth.anaplan.com"
-chunksize 1 -file "100000000001" -put "C:\Anaplan\tmp\SE0651012024060714071806100000001.csv" -process "111000000001" -execute -output "C:\Anaplan\tmp\error.txt"
Absolute path to JAVA 8 or Java 11 or Java 17 executable not provided. Will attempt to figure out path from JAVA_HOME or Windows registry...
Found Java executable from JAVA_HOME "C:\Program Files\Java\jdk-17", at C:\Program Files\Java\jdk-17\bin\java.exe...
Current Java version = 17.0

Running Anaplan Connect...
Using Class-Path: C:\Anaplan\Batch\anaplan-connect-4.2.1-jar-with-dependencies.jar
2024-06-12 12:00:14 INFO 15296 |-- Initializing Service...
2024-06-12 12:00:14 INFO 15296 |-- Authenticating via Certificate...
2024-06-12 12:00:31 INFO 15296 |-- ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
2024-06-12 12:00:31 INFO 15296 |-- Uploading file: C:\Anaplan\tmp\SE0651012024060714071806100000001.csv
2024-06-12 12:00:33 INFO 15296 |-- The file "C:\Anaplan\tmp\SE0651012024060714071806100000001.csv" has been uploaded as 100000000001.
2024-06-12 12:00:36 INFO 15296 |-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
2024-06-12 12:00:36 INFO 15296 |-- Running Process: XXXXXXXXXX (111000000001)
2024-06-12 12:00:36 ERROR 15296 |-- Anaplan API: {
"status" : {
"code" : 400,
"message" : "Bad Request"
},
"path" : "/2/0/workspaces/workspaceid/models/modelid/processes/111000000001/tasks",
"timestamp" : "2024-06-12T03:00:36.859550Z"
}

Answers

  • One reason for a 400 status is if no locale is supplied when creating the task - perhaps try setting it manually using eg "-locale en_US"

  • pyrypeura
    Options

    Hi,

    Do you have correct values for your workspace ID and model ID?

  • Hi,
    Issue with the request, such as incorrect or missing parameters in the API call. Do you think they are good?