ANAPLAN API : Get dump files from process with any action

Highlighted
New Contributor

ANAPLAN API : Get dump files from process with any action

Hello, 

 

I'have an issue, when i tried to retreive the dump file from a process with multiple actions, the API returns a 404 status code.

 

The URL called : https://api.anaplan.com/2/0/workspaces/[WORKSPACE_ID]/models/[MODEL_ID]/processes/[PROCESS_ID]/dumps/[OBJECT_ID]

 

Where the Object Id comes from the task result where "failureDumpAvailable" is set to true.

 

Can someone help me ?

 

Regards.

Adrien

4 REPLIES 4
Highlighted
Community Boss

Re: ANAPLAN API : Get dump files from process with any action

I think you're missing /tasks/[TASK_ID] in between [PROCESS_ID] and /dumps

Highlighted
New Contributor

Re: ANAPLAN API : Get dump files from process with any action

Thanks,

 

But now i've a new status code "406 Not acceptable".

 

In Task Result : 

"failureDumpAvailable"true,
        "objectId""112000000158",
        "objectName""Failures for Import 158",
        "successful"true
 
the end of the url to obtains the dump :
/processes/118000000053/tasks/A6B904C19C47452FA73B64385D9DEF5D/dumps/112000000158",
Highlighted
Community Boss

Re: ANAPLAN API : Get dump files from process with any action

If you provided an Accept header in the request, it should include application/octet-stream. Other reasons for that status are if the task ID didn't relate to a process but some other action, the task hadn't completed when you requested the dump, or possibly you ran the same import again after this task.

 

Highlighted
New Contributor

Re: ANAPLAN API : Get dump files from process with any action

Thanks,


I had put a wrong Accept header value, with 'application/octet-stream' value, it's work.

 

Thanks