404 Error while exporting files from Anaplan process task
url used: "https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/processes/{processID}/tasks/{taskID}/dumps"
response.status_code: 404
Description: When the process is run manually from Anaplan app, it runs successfully and downloads the file.
But when the process is run via Rest API and waited for the process to Complete, dump url always errors out with 404.
The output of the previous step, task output always had "failureDumpAvailable":false.
url used to check the task status and output: "https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/processes/{processID}/tasks/{taskID}"
Can some one help?
Answers
-
Hi,
endpoint for error logs is https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/processes/{processID}/tasks/{taskID}/dump not https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/processes/{processID}/tasks/{taskID}/dumps so you seem to have one extra s in your 'dump'.0 -
- Thanks for the response.
- 1. I am following the below Anaplan documentation which has extra s in the dumps:
But i tried both dumps and dump, none of them works.
2. One of the export in the process extracts the data from Anaplan which I am trying to download via rest service for the corresponding export objectID. But the dump service returns 404 error always.
0 -
Sorry. My mistake endpoint is dumps for processes and dump for individual imports.
For exports you don't take the data out from dumps endpoint but download the file as per Anaplan API documentation
. If you are proficient on python this article has good examples on both running processes and exporting data .0 -
This article helps. Thanks you so much, appreciated.!
I will try downloading the file using this file download service and revert incase of any issues.
0 -
I used the below service to download the file generated by the Process. It only downloads the header always when I run the process via rest services. But the same process ran from the Anaplan app, the file gets generated with data. Am I missing something here?
0