
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Qlik AEM API for May 2023 release
Hello,
I am trying to use Qlik AEM API to import task
task_url = <Host>/attunityenterprisemanager/api/v1/servers/<servername>/tasks/test?action=import
task = "C\scripts\test.json"
responseImportTask = requests.post(task_url,task, verify=True, headers=session_token)
Am getting the below error:
Failed to Import task from AEM. Error: {"error_code":"DESERIALIZE_TO_TYPE","error_message":"Failed to deserialize json to type ReplicationDefinitionExport
Please assist.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. before you try the API , if you take the test.json file and try to import from the QEM UI, into the Replicate Server does it works ?
2. is your test.json file for one task or many tasks?
3. try to export a task from QEM UI and task that same exported json, import from UI , if works then try to use that for API import.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @Steve_Nguyen for your quick response.
# 1. Do you mean to export test.json from Replicate server and import the same to QEM. Please confirm.
#2. test.json is only for one task
#3. It works when I export the test.json from QEM UI and import the same test.json to Replicate Server. However, I get the same error when I use it in importtask API
Please suggest.
