can anyone please help debug what's going on here ...
# gooddata-cloud
s
can anyone please help debug what's going on here and why it's returning 500 when I try to download the csv that's initiated with this csv:
bac9f1bc8b29a9a7652f2cd8872c69e7212572db
m
Hi Sasha, if you are exporting a table in CSV format, you will always need to use executionResult. The executionResult is for the data pulled in the background and that is ready to be exported when accessing data through the API. For example:
Copy code
curl $HOST_URL/api/v1/actions/workspaces/914717b587f94f6c856e6a1a06fd7315/export/tabular \
-H 'Authorization: Bearer $API_TOKEN' \
-H 'Content-Type: application/json' \
-X POST \
-d '{
    "format": "CSV",
    "fileName": "revenue_per_country",
    "executionResult": "69268c79371ce9e2940c9de92e3025bb03c62b7f"
}
'
The export is failing on our end with the following error:
Copy code
"Not Found\",\"status\":404,\"detail\":\"Result not found in result cache\",\"resultId\":\"000c6989e09682b4eb9ce7f617a8073c5cb51f93
s
at 8 AM EST it was failing with an error 500
it worked all week
m
Could you please send me the payload to
Copy code
$HOST_URL/api/v1/actions/workspaces/<workspace_id>/execution/afm/execute
? Or if the table exists in the UI, you can send me the link. Feel free to DM me with this info. TIA.