Skip to main content

Query Data Comparison Subtask Details

Query the execution details of a specified data comparison subtask.

Request URL: /openapi/v1/comparedata/queryTaskExecInfo

Request Method: GET

Before You Call

You can obtain execId in either of the following ways:

Request Parameters

ParameterTypeRequiredDescriptionExample
execIdStringYesData comparison subtask ID. In most cases, use lastExecId from the main task response or data from the start task response.315337

How to Use the Returned Value

data.taskId is the main task ID that this subtask belongs to. If you need to view the main task configuration again, pass this value to Query Data Comparison Main Task Details.

Request Example

{
"execId": 315337
}

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID, which can be used for troubleshooting and tracing.Hg4d2OLN-DJJKnOZnEELv6ZUdFHc8LBG
dataObjectSubtask execution details object.See the field descriptions below

Subtask Fields

ParameterTypeDescriptionExample
idStringData comparison subtask ID.315337
taskIdStringMain task ID that this subtask belongs to.cd-tepmjmnj6o
statusStringTask status. success means completed, failed means failed, starting means starting, and running means running.starting
onlySourceRowsIntegerNumber of rows that exist only in the source.0
onlyTargetRowsIntegerNumber of rows that exist only in the target.0
errorMessageStringError message. It contains details when the subtask fails or encounters an exception.""
differenceRowsIntegerNumber of rows that are different between source and target.0
skipTableCountIntegerNumber of tables skipped during comparison.0

Successful Invocation Example

{
"success": true,
"requestId": "Hg4d2OLN-DJJKnOZnEELv6ZUdFHc8LBG",
"data": {
"id": 315337,
"createTime": "2026-05-08 08:35:40Z",
"updateTime": "2026-05-08 08:35:40Z",
"taskId": "cd-tepmjmnj6o",
"status": "starting",
"accountId": "1708516390626159",
"errorMessage": "",
"execType": "manual",
"tableCount": 0,
"sourceTotalRows": 0,
"targetTotalRows": 0,
"sourceCompletedRows": 0,
"targetCompletedRows": 0,
"onlySourceRows": 0,
"onlyTargetRows": 0,
"differenceRows": 0,
"sameRows": 0,
"skipTableCount": 0
}
}