While trying to export a single project in TDM Portal 4.10.261.0, we see the export job fails with the following message:
'unable_to_send_request_to_TDMModelService'
TDM Portal 4.10
While investigating the TDM Portal debug logs, we found the following as the cause of the failure.
TDMImportExportService.log:
[ExportData-job-<Job_ID> ] --- [U:][M:][P:] c.c.t.c.c.ClientBase: Failed to invoke 'https://CA47PWVCDO307:443/TDMModelService/api/ca/v1/datamodel/export?projectId=<project_ID>&versionId=<version_ID>'
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : "{"status":500,"errorCode":"500 INTERNAL_SERVER_ERROR","errorMsg":"Server encountered an error processing the request. See server logs for more details","errorDetail":"","timestamp":"2024-12-17T17:34+0000"}"
Inside the TDMModelService.log, we find more detail:
[U:integrator][M:GET][P:/api/ca/v1/datamodel/export] c.c.t.d.c.DataModelController: RequestID: 207, Module: Datamodel_Service, GET /ca/v1/datamodel/export
[U:integrator][M:GET][P:/api/ca/v1/datamodel/export]c.c.t.d.s.DataModelImportExportService$$EnhancerBySpringCGLIB$$b011d4ce: Export Data Model - START.
[U:integrator][M:GET][P:/api/ca/v1/datamodel/export] c.c.t.c.e.h.GlobalExceptionConvertor: HTTP Error - INTERNAL SERVER ERROR: Exception: 404 : "{"status":404,"errorCode":"","errorMsg":"Job with Id: 3516 does not exist","errorDetail":"","timestamp":"2024-12-17T17:34+0000"}"
org.springframework.web.client.HttpClientErrorException$NotFound: 404 : "{"status":404,"errorCode":"","errorMsg":"Job with Id: 3516 does not exist","errorDetail":"","timestamp":"2024-12-17T17:34+0000"}"
Engineering is unable to determine the exact cause. It could be due to automatic job cleanup has been enabled, which is controlled by the following parameters, in the application.properties file:
And as a result, the Job was deleted.
Engineering has provided a fix in TDMWeb-4.10.265.0 that will ignore the missing job, and continue with the export.
The patch is available for download from the Test Data Manager (TDM) Support Patches page.
Note: When exporting from one TDM Portal to another TDM Portal, both Portal servers, must be running the exact same build release of TDM Portal.