Fetching anaplan export defenition failing with HTTP 500 Error

Highlighted
Occasional Contributor

Fetching anaplan export defenition failing with HTTP 500 Error

Hi Experts ,

 

I'm new to Anaplan and working with anaplan REST API's .

I'm trying to fetch the export defenition from anaplan using postman . I have 4 export ID's for which I need to fetch the metadata .

 

One of the export ID gives me the right metadata structure as output when i use a GET method and call the below 

https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/exports/{exportId} \ -H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \ -H "Content-Type:application/json"

 

However , rest three , when I try the same it fails with Status code 500 , Internal server error .

I know it is a generic error code , but would like to understand the possible reasons for this . Im not able to check in anaplan directly since I donot have admin access .

 

Any pointors will be highly appreciated .

 

Thanks ,

Nitheesh

1 REPLY 1
Highlighted
Master Anaplanner/Community Boss

Re: Fetching anaplan export defenition failing with HTTP 500 Error

@Nitheesh 

With postman, you'll need to run two actions. The first one is a "POST" Export Action (this creates the file). The second is the "GET" action to download the file.

The good news is that the Export ID and the fileID are the same.

 

POST
url = https://api.anaplan.com/1/3/workspaces/{wGuid}/models/{mGuid}/exports/{ExportID}/tasks
 
GET
https://api.anaplan.com/1/3/workspaces/{wGuid}/models/{mGuid}/files/{FileID}/chunks
 
And don't forget your header parameter
'Accept''application/octet-stream'

Jared Dolich