How to I access a failure dump of an action within a process using the API

GeorgeDuckett
Occasional Contributor

How to I access a failure dump of an action within a process using the API

I understand I can get an import's failure dump if I run the import, then get the task id, then construct a url: https://api.anaplan.com/2/0/workspaces/{WorkspaceId}/models/{ModelId}/imports/{ImportId}/tasks/{TaskId}/dump .

My issue is that i'm running a process, which runs a number of imports. One of which has a failure dump. I have the ProcessId, and TaskId of the task that ran the process, however it's not the process that has a failure dump, it's the import within that, so I can't work out the correct url.

I've tried things like "https://api.anaplan.com/2/0/workspaces/{WorkspaceId}/models/{ModelId}/processes/{ProcessId}/tasks/{TaskId}/dump" , however I just get a 404, presumably because the process itself doesn't have a dump available.

3 REPLIES 3
ashish.banka
Regular Contributor

Re: How to I access a failure dump of an action within a process using the API

@GeorgeDuckett Just wondering whether you tried running the process via API or via Anaplan platform? I would suggest to run the process via API and check for dumps. 

Also if you are running the process from Anaplan platform, you can download the failures from the platform too.

 

Hope this helps

AB 

GeorgeDuckett
Occasional Contributor

Re: How to I access a failure dump of an action within a process using the API

Hi @ashish.banka, I kicked off the process using the API. When you say run the process via the API and check for dumps I'd be running the process using url https://api.anaplan.com/2/0/workspaces/{WorkspaceId}/models/{ModelId}/processes/{ProcessId}/tasks, but then what url would I use to check for dumps against the actions that the process runs (not a dump of the process itself)? That's what I'm having issues with.

ashish.banka
Regular Contributor

Re: How to I access a failure dump of an action within a process using the API

@GeorgeDuckett You might want to follow below steps to get the dumps of failed imports which are part of process:

1) After running the process task :  https://api.anaplan.com/2/0/workspaces/{WorkspaceId}/models/{ModelId}/processes/{ProcessId}/tasks, review the task by passing tasks ID to above URL:  https://api.anaplan.com/2/0/workspaces/{WorkspaceId}/models/{ModelId}/processes/{ProcessId}/tasks/{taskID}

2) From the output of above, search for "failureDumpAvailable": true  and get the objectID for the same.

3) Pass the ObjectID of the "failureDumpAvailable": true  to the URL: https://api.anaplan.com/2/0/workspaces/{WorkspaceId}/models/{ModelId}/processes/{ProcessId}/tasks/{taskID}/dumps/{FailureDumpOjectID}

 

The ObjectID is the import ID of the action which failed as part of the process execution.

 

Hope this helps

 

AB