Why is my RDM exporting failing with a RDMException?

Question

 

RDM export API is failing and is not working properly. 

{   "errorCode": 400,   "errorMessage": "Task with type [exportLookups] is running",   "innerErrorData": {     "exception": "com.reltio.rdm.RDMException:Task with type [exportLookups] is running",     "stack": [       "com.reltio.rdm.service.TaskService.create at TaskService.java, line 35",       "com.reltio.rdm.rest.controller.ExportController.createTask at ExportController.java, line 96",       "com.reltio.rdm.rest.controller.ExportController$$FastClassBySpringCGLIB$$a687be1b.invoke at , line -1",       "org.springframework.cglib.proxy.MethodProxy.invoke at MethodProxy.java, line 204",   

We have to try to resubmit it, but an export API failed message has occurred.  Why is this happening?

 

Answer

 

The error message is self-explanatory. "Task with type [export lookups] is running". I see RDM export lookups 7c304ad5-9651-441b-aa58-1bf1de1e31cd is running.  This can be checked by processing the following API in POSTMAN.

 

Request:

GET https://{{rdm-service}}/tasks/{{tenantId}}
Authorization: Bearer {{token}}

Response

[
  {
    "id": "0093e14f-5335-4823-b64b-46bedd967fe9",
    "type": "reindex",
    "tenantId": "forTask",
    "createdBy": "andrey.hudyakov@reltio.com",
    "createdTime": 1503397780502,
    "status": "NOT_STARTED",
    "parameters": {
        "uris": [
            "rdm/Country/RF",
            ...
            "rdm/Country/USA"
        ]
    }
  }
]

If any tasks are processing, this is the cause.  Any task can be completed by perform the following

 

Request:

DELETE https://{{rdm-service}}/tasks/{{tenantId}}
Authorization: Bearer {{token}}

Response

{
    "status": "success"
}

Related Documentation:

Our Doc Links can change over time, so please search for the Documentation based on the titles shared below. Thank you.

  • RDM Task API

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.