TDM Import/Export fails - 'unable_to_send_request_to_TDMModelService'
search cancel

TDM Import/Export fails - 'unable_to_send_request_to_TDMModelService'

book

Article ID: 384549

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

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'

Environment

TDM Portal 4.10

Cause

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:

  • tdmweb.jobs.cleanupFrequency
  • tdmweb.jobs.cleanOlderThan

And as a result, the Job was deleted.

Resolution

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.

Additional Information

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.