Runs
Trigger, monitor, and cancel import runs.
Retrieves the run history for a configuration, most recent first.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe configuration identifier.
7c9e6679-7425-40de-944b-e07fc1f90ae7The zero-based page number. A negative value returns HTTP 400.
0Example: 0The page size. Defaults to 20 for run history, 50 for run errors, and 25 for imported records. A value below 1 returns HTTP 400.
20The request was successful. The run history is returned.
Pagination metadata for a page of results.
The total number of elements across all pages.
1250The total number of pages.
63The current zero-based page number.
0The page size.
20The page or size query parameter is out of range. The message names the parameter.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/configs/{configId}/runs HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"totalElements": 3,
"totalPages": 1,
"number": 0,
"size": 20,
"content": [
{
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"tenant": "mytenant",
"trigger": "MANUAL",
"origin": "Dashboard",
"status": "SUCCEEDED",
"mode": "DELTA",
"startedAt": "2026-07-27T02:00:00.000Z",
"executionStartedAt": "2026-07-27T02:00:03.000Z",
"finishedAt": "2026-07-27T02:04:12.000Z",
"recordsRead": 1250,
"created": 40,
"updated": 1180,
"skipped": 25,
"failed": 5,
"deleted": 0,
"message": "Import completed with 5 record failures."
}
]
}Requests an import run for the configuration and returns immediately with the run in the QUEUED status. The run starts when a worker of the Import Service is free, usually within moments, and then has the RUNNING status. If maxConcurrentImports runs are already executing for the tenant, the run waits until one of them finishes. queueWaitingFor says what a queued run waits for. To follow the run's progress, retrieve the run or stream its progress events.
A configuration has at most one run executing and at most one run queued. The service rejects a request with a 409 Conflict response while the configuration has a run in the QUEUED, RUNNING, or RESUMABLE status. The response names that run in the details entry whose field is activeRunId. The service also rejects the request with a 409 Conflict response while a data purge is in progress for the configuration.
A scheduled run is not rejected. It is queued behind the configuration's current run and starts when that run finishes. If the schedule requests another run while the configuration's run is still queued, the service adds the request to the queued run instead of queuing a second run, and counts it in supersededRequests. The service does this only when the queued run is a real run of the whole configuration. If the queued run is a dry run, a run of selected streams, or a retry, the scheduled run waits until that run starts and is then queued behind it.
A run executes each stream's published mappings. Saved mapping changes that are not published yet are the draft mappings, and they take effect only after they are published. Publishing mappings is an administrative operation that requires the importtool.import_manage scope and is not covered in this reference. A real run, or a dry run that uses the published mappings, fixes the published mapping version of each stream when it starts, so a version published during the run applies from the next run. The run reports these versions in mappingVersions. A dry run of the draft mappings does not use published versions and does not report mappingVersions.
A stream whose mappings have never been published is not run. Its entry in the run details (streams in the response of retrieving a run) has the ABORTED status and a message that gives the reason, and the run finishes with the PARTIAL status. The service refuses the whole run when streamIds names a stream whose mappings have never been published, or when every enabled stream is in that state.
The refusal does not change the response to this request: the service still returns 200 with the run, and the run then finishes with the ABORTED status and a message that names the streams. Retrieve the run to check its final status.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe configuration identifier.
7c9e6679-7425-40de-944b-e07fc1f90ae7The run mode, FULL or DELTA. When omitted, defaults to DELTA. The value is not case-sensitive. Send one of the listed values. The service does not reject another value and runs the import as DELTA.
DELTAPossible values: When true, the run maps and validates but performs no remote writes.
falseDry-run only. Which mappings the dry run uses. published uses each stream's published mappings, which is what a real run executes. draft uses the draft mappings, so you can check them before publishing. When omitted, defaults to published. A dry run with published handles streams whose mappings have never been published in the same way as a real run. The field has no effect when dryRun is false, because a real run always uses the published mappings.
publishedExample: publishedPossible values: When true, every extracted record is rewritten, even if unchanged. It bypasses the idempotency skip-if-unchanged check. Use it to force target IDs and values to be rewritten.
falseDry-run only. How many mapped records to sample per stream for the preview returned as dryRunSample. Clamped to 1-100; defaults to 25.
25What requested this run. Examples: Dashboard, an integration scenario name, or a scheduler name. The trigger field records only how the run started, for example MANUAL. Use origin when more than one system calls this endpoint. If you omit origin or send a blank value, the service stores the trigger value. The service rejects values longer than 40 characters and values that contain control characters. It does not shorten them.
Make scenario 42The stream identifiers to run. Omit the field to run every stream in the configuration. Send a list of stream IDs to run only those streams. Do not send stream names; use the id values from the stream resource.
The service rejects an empty list. It also rejects a list that includes no stream from this configuration. Listed streams still run in the computed stream order, not in list order.
The service also rejects a stream that cannot produce data on its own. A COMPOSITE_CHILD stream with childStrategy set to EMBED is written by its parent. A child that reads values captured during the parent run also cannot run alone. Either stream without its parent would complete successfully without importing records.
["8f1b6a5c-2d7e-4a91-9c33-0b5e4d2a7f10"]The request was successful. The run has been queued.
An import run and its reconciled counters.
The run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe configuration the run belongs to.
7c9e6679-7425-40de-944b-e07fc1f90ae7The owning tenant.
mytenantWhat triggered the run. Possible values:
MANUAL– triggered with the run operation.SCHEDULED– started by the configuration's schedule.RETRY– created by retrying the failed records of an earlier run.retryOfRunIdnames that run.
MANUALPossible values: What requested the run. The origin value from the trigger request, or the trigger value when origin was omitted. Use this field to distinguish a dashboard run from a run started by an integration scenario. The field is absent on runs recorded before it existed.
DashboardThe run status. Possible values:
QUEUED– the run waits to start. Nothing has been read yet, and the run has no per-stream progress.queueWaitingForsays what the run waits for.RUNNING– the run is executing.RESUMABLE– the run was interrupted, for example by a service restart, and resumes automatically from its last checkpoint. It is not a final status.SUCCEEDED– the run finished, and every record was processed.PARTIAL– the run finished, but not completely: some records failed, a limit skipped records, or a stream was not run. Themessagefield and the per-stream progress give the details.FAILED– the run stopped because of an error.CANCELLED– the run was cancelled.ABORTED– the service refused to start the run because of the import configuration, for example mappings that have never been published or a changed target schema. Nothing was read or written.
SUCCEEDEDPossible values: The run mode.
DELTAPossible values: When the run was requested. If the run was queued first, it began executing later, at executionStartedAt.
2026-07-27T02:00:00.000ZWhen the run began executing. Equal to startedAt, or later by the time the run spent in the queue. null while the run is QUEUED, and on runs recorded before the field existed.
2026-07-27T02:00:03.000ZWhen the run finished.
2026-07-27T02:04:12.000ZQUEUED runs only. The run's position among the queued runs that can start, where 1 starts next. Runs of all tenants share the queue, and a tenant with fewer runs executing goes first. The value is approximate, because the queue changes while you read it. The field is absent when the run is not queued, when it waits for something other than a worker, or when the service has not yet calculated it.
2QUEUED runs only. What the run waits for. Possible values:
WORKER– the run waits for a free worker.queuePositiongives its place in the queue.PREVIOUS_RUN– the run waits for the configuration's current run to finish.TENANT_LIMIT– the run waits for one of the tenant's runs to finish, becausemaxConcurrentImportsruns are already executing.
The field is absent when the run is not queued, or when the service has not yet calculated it.
WORKERPossible values: The number of later scheduled run requests that were added to this run while it was queued. A configuration has at most one queued run, so a scheduled request that arrives while a real run of the whole configuration is queued does not queue a second run.
0When the latest scheduled run request counted in supersededRequests was made. Absent when supersededRequests is 0.
2026-07-27T03:00:00.000ZRecords read. The counters reconcile: recordsRead = created + updated + skipped + unresolvedParents + deleted + failed + collapsed + embedded. A client that sums only some of them will not balance.
1250Records created.
40Records updated.
1180Records skipped because they were unchanged.
25Records that failed.
5Records deleted.
0Source rows that repeat a key already imported in this run. The import keeps the last row of each repeated key and discards earlier rows. Duplicate keys do not fail the run; they mean the source feed is not unique on the key the stream imports by.
25907Child records that were not imported because their parent could not be found. Counted separately from skipped, which counts records that were already up to date.
25370Source rows that repeated a key already present in the same batch. They are merged before the write, last row wins, and counted here — so the report adds up however the source feed is batched. A repeat in a later batch is written again and counted as created or updated instead; duplicateKeys is the signal for a feed that is not unique on its key.
12Child records an EMBED composite child handed to its parent, which the parent then wrote inside its own instance. One write of the parent covers them all, so they are never counted as created or updated (that would count each line as an instance) and never as skipped (which means "already up to date"). If the parent turned out to be unchanged, failed, or absent, these are settled onto skipped, failed, or unresolvedParents once the parent's pass completes.
430A terminal status message, typically set on failure.
Import completed with 5 record failures.The streams the run was asked to execute, as sent in streamIds when it was triggered. Absent when the run executes every stream of the configuration.
["3fa85f64-5717-4562-b3fc-2c963f66afa6"]When the run retries another run's failed records, the identifier of that original run.
7c9e6679-7425-40de-944b-e07fc1f90ae7Whether the run rewrote every record, bypassing the skip-if-unchanged check.
falseWhether the run only extracted, mapped, and validated, writing nothing to the target. A dry run legitimately reports zero for every counter, so this distinguishes it from a run that wrote nothing because it failed.
falseWhether cancellation has been requested for a run that is still finishing.
falseFor a dry run, how many mapped records were kept as a sample.
10Dry-run only. Whether the dry run used the published mappings (true) or the draft mappings (false).
trueThe request is invalid. For example, dryRun is true and mappings has a value other than
published or draft.
Also returned for a run with nothing to import: every stream the run starts from reads uploaded files, and none of them has a file to read. A stream has a file to read when a file is waiting in its queue, or when it is a snapshot stream with an imported file, which the run reads again. A stream with incremental files reads each file once, so it has nothing to read when every file in its queue has been imported. The message names each stream and what to do: upload a file to its queue, or, when its latest file failed, queue that file again after fixing the cause.
Only streams that the run would execute are checked. A stream whose mappings have never been
published is not considered. A dry run, a scheduled run, and a retry are not refused for this. When
the configuration already has a run in progress, the response is 409 Conflict instead.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
The request conflicts with the current state of the resource.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
POST /importtool/{tenant}/configs/{configId}/runs HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"mode": "FULL",
"origin": "Dashboard"
}{
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"tenant": "mytenant",
"trigger": "MANUAL",
"origin": "Dashboard",
"status": "QUEUED",
"mode": "FULL",
"startedAt": "2026-07-27T02:00:00.000Z",
"recordsRead": 0,
"created": 0,
"updated": 0,
"skipped": 0,
"failed": 0,
"deleted": 0,
"supersededRequests": 0
}Retrieves a run's status together with its per-stream progress.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe request was successful. The run and its streams are returned.
A run together with its per-stream progress.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/runs/{runId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"run": {
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"tenant": "mytenant",
"trigger": "MANUAL",
"origin": "Dashboard",
"status": "SUCCEEDED",
"mode": "DELTA",
"startedAt": "2026-07-27T02:00:00.000Z",
"executionStartedAt": "2026-07-27T02:00:03.000Z",
"finishedAt": "2026-07-27T02:04:12.000Z",
"recordsRead": 1250,
"created": 40,
"updated": 1180,
"skipped": 25,
"failed": 5,
"deleted": 0,
"message": "Import completed with 5 record failures."
},
"streams": [
{
"id": "c56a4180-65aa-42ec-a945-5fd21dec0538",
"runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"streamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"streamName": "Products",
"status": "PARTIAL",
"recordsRead": 1250,
"created": 40,
"updated": 1180,
"skipped": 25,
"failed": 5,
"deleted": 0,
"message": "5 records failed validation."
}
]
}Streams a run's progress as Server-Sent Events. The service sends these events:
snapshot– sent once when the connection opens.runis the run andstreamsits per-stream entries, as returned by retrieving the run.streamscan be empty when the entries cannot be read in time; thestreamevents then fill them in.stream– sent per processed batch and when a stream finishes. CarriesrunId,streamId,streamName,status, the countersrecordsRead,created,updated,skipped,failed,deleted,collapsedandembedded, and the stream'smessage.run– sent when the run's status or totals change, for example when a queued run starts. CarriesrunId,configId,status, the run's counters, andfinished. The event withfinishedset totrueis the last one: the service then closes the stream.
An event can repeat values already sent. Each event carries complete counters, not increments.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe event stream was opened.
event: snapshot data: {"run":{"id":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","status":"RUNNING"},"streams":[{"streamName":"Products","status":"RUNNING","recordsRead":120}]} event: stream data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","streamId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","streamName":"Products","status":"RUNNING","recordsRead":240,"created":20,"updated":210,"skipped":8,"failed":2,"deleted":0,"collapsed":0,"embedded":0} event: run data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","configId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","status":"SUCCEEDED","recordsRead":1250,"created":40,"updated":1190,"skipped":15,"failed":5,"deleted":0,"collapsed":0,"embedded":0,"finished":true}Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/runs/{runId}/events HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
event: snapshot
data: {"run":{"id":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","status":"RUNNING"},"streams":[{"streamName":"Products","status":"RUNNING","recordsRead":120}]}
event: stream
data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","streamId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","streamName":"Products","status":"RUNNING","recordsRead":240,"created":20,"updated":210,"skipped":8,"failed":2,"deleted":0,"collapsed":0,"embedded":0}
event: run
data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","configId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","status":"SUCCEEDED","recordsRead":1250,"created":40,"updated":1190,"skipped":15,"failed":5,"deleted":0,"collapsed":0,"embedded":0,"finished":true}Requests cancellation of an active run. By default the cancellation is cooperative; with force=true the run is stopped immediately and its configuration is unblocked.
A run in the QUEUED status has not started, so it is cancelled immediately and gets the CANCELLED status, with or without force. A run in the RESUMABLE status can be stopped only with force=true. Without force, the request returns a 409 Conflict response.
A 409 Conflict response is also returned when the run does not exist or has already finished. In every case, the 409 Conflict response body is the same cancellation result as a 202 Accepted response, with accepted set to false.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dWhen true, hard-stops the run immediately.
falseExample: falseThe cancellation was accepted.
The outcome of a cancellation request.
The run the cancellation targeted.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dWhether a hard stop was requested.
falseWhether the cancellation was accepted. false when the run does not exist, has already finished, or has the RESUMABLE status and force was not set.
trueThe same value as accepted. Kept for clients written against an earlier response. Use accepted.
trueGiven request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Nothing was cancelled. The run does not exist, has already finished, or has the RESUMABLE status and force was not set.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
POST /importtool/{tenant}/runs/{runId}/cancel HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"force": false,
"accepted": true,
"cancelRequested": true
}Retrieves the errors recorded during a run, paginated.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe zero-based page number. A negative value returns HTTP 400.
0Example: 0The page size. Defaults to 20 for run history, 50 for run errors, and 25 for imported records. A value below 1 returns HTTP 400.
20The request was successful. The errors are returned.
Pagination metadata for a page of results.
The total number of elements across all pages.
1250The total number of pages.
63The current zero-based page number.
0The page size.
20The page or size query parameter is out of range. The message names the parameter.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/runs/{runId}/errors HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"totalElements": 5,
"totalPages": 1,
"number": 0,
"size": 50,
"content": [
{
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"streamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"naturalKey": "SKU-1001",
"targetEntity": "emporix.customEntity",
"stage": "VALIDATE",
"errorCode": "VALIDATION",
"message": "Required field 'name' is missing for natural key SKU-1001.",
"createdAt": "2026-07-27T02:03:41.000Z"
}
]
}Retrieves the source rows represented by a run's feed-quality counters.
A run reports how many source rows repeated a natural key (duplicateKeys) and how many child lines had no parent to attach to (unresolvedParents). This endpoint identifies the affected rows and returns each record's key, its parent-linking field and value, and the number of lines waiting for each missing parent.
Neither counter is a failure, so these rows are kept separately from run errors.
The rows are a capped SAMPLE, not necessarily the whole set — recorded gives how many were stored and sampleTruncated says whether a stream hit the cap. The run's own counters show the total number of affected rows; do not use the returned row count to measure the size of the problem.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dRestrict the rows to those recorded for this stream.
Restrict the rows to this kind.
Maximum number of rows to return. Defaults differ between the JSON and CSV operations.
500The request was successful. The diagnostic rows are returned.
A page of diagnostic rows with metadata that indicates whether the response contains all recorded rows or only part of a capped sample. Use recorded, cap, and sampleTruncated to interpret the page. The run's counters show the total number of affected rows.
How many rows this response contains.
500How many rows were recorded in total for this scope.
2000The per-stream, per-kind recording cap.
2000Whether at least one stream reached the cap. When true, these rows are a sample, and the run's own counters show the total number of affected rows.
trueA human-readable statement of what this response is.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/runs/{runId}/diagnostics HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"returned": 2,
"recorded": 2000,
"cap": 2000,
"sampleTruncated": true,
"note": "At least one stream hit the recording cap, so these rows are a capped SAMPLE.",
"rows": [
{
"streamName": "poLine",
"kind": "UNRESOLVED_PARENT",
"naturalKey": "ID:PO-4711",
"linkingField": "HEADER_ID",
"linkingValue": "PO-4711",
"targetType": "PURCHASE_ORDER",
"waitingLines": 7
}
]
}Returns the same rows as a CSV attachment, for opening in a spreadsheet or attaching to a ticket.
Comment lines above the header indicate whether the limit parameter restricted the response or a stream reached the recording cap. These comments preserve that context when the file is shared independently of the request.
Values are quoted. Any value beginning with =, +, -, or @ is prefixed with an apostrophe so that spreadsheet software does not interpret source-provided data as a formula.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dRestrict the rows to those recorded for this stream.
Restrict the rows to this kind.
Maximum number of rows to include. Defaults differ between the JSON and CSV operations.
50000The request was successful. The CSV file is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/runs/{runId}/diagnostics/csv HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
# capped sample: 2000 rows recorded (cap 2000 per stream) - the run's counters show the total number of affected rows
stream,kind,key,linkingField,linkingValue,targetType,waitingLines,occurrence
poLine,UNRESOLVED_PARENT,ID:PO-4711,HEADER_ID,PO-4711,PURCHASE_ORDER,7,Starts a new run that reprocesses only the records that failed in the given run, instead of the whole source. The new run is returned immediately in the QUEUED status and starts when a worker is free. It reports its own progress. The original run is left untouched and keeps its counters.
As with a run that you trigger, the service rejects the retry with a 409 Conflict response while the configuration has a run in the QUEUED, RUNNING, or RESUMABLE status, or while a data purge is in progress for it. A 409 Conflict response is also returned when the run cannot be retried:
The run is still active.
The run has no failed records that a retry can re-read.
A failed stream reads from a source that cannot fetch specific records by key, such as an HTTP source.
A file that the run read has been removed or replaced since the run.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe request was successful. The retry run has been queued.
An import run and its reconciled counters.
The run identifier.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe configuration the run belongs to.
7c9e6679-7425-40de-944b-e07fc1f90ae7The owning tenant.
mytenantWhat triggered the run. Possible values:
MANUAL– triggered with the run operation.SCHEDULED– started by the configuration's schedule.RETRY– created by retrying the failed records of an earlier run.retryOfRunIdnames that run.
MANUALPossible values: What requested the run. The origin value from the trigger request, or the trigger value when origin was omitted. Use this field to distinguish a dashboard run from a run started by an integration scenario. The field is absent on runs recorded before it existed.
DashboardThe run status. Possible values:
QUEUED– the run waits to start. Nothing has been read yet, and the run has no per-stream progress.queueWaitingForsays what the run waits for.RUNNING– the run is executing.RESUMABLE– the run was interrupted, for example by a service restart, and resumes automatically from its last checkpoint. It is not a final status.SUCCEEDED– the run finished, and every record was processed.PARTIAL– the run finished, but not completely: some records failed, a limit skipped records, or a stream was not run. Themessagefield and the per-stream progress give the details.FAILED– the run stopped because of an error.CANCELLED– the run was cancelled.ABORTED– the service refused to start the run because of the import configuration, for example mappings that have never been published or a changed target schema. Nothing was read or written.
SUCCEEDEDPossible values: The run mode.
DELTAPossible values: When the run was requested. If the run was queued first, it began executing later, at executionStartedAt.
2026-07-27T02:00:00.000ZWhen the run began executing. Equal to startedAt, or later by the time the run spent in the queue. null while the run is QUEUED, and on runs recorded before the field existed.
2026-07-27T02:00:03.000ZWhen the run finished.
2026-07-27T02:04:12.000ZQUEUED runs only. The run's position among the queued runs that can start, where 1 starts next. Runs of all tenants share the queue, and a tenant with fewer runs executing goes first. The value is approximate, because the queue changes while you read it. The field is absent when the run is not queued, when it waits for something other than a worker, or when the service has not yet calculated it.
2QUEUED runs only. What the run waits for. Possible values:
WORKER– the run waits for a free worker.queuePositiongives its place in the queue.PREVIOUS_RUN– the run waits for the configuration's current run to finish.TENANT_LIMIT– the run waits for one of the tenant's runs to finish, becausemaxConcurrentImportsruns are already executing.
The field is absent when the run is not queued, or when the service has not yet calculated it.
WORKERPossible values: The number of later scheduled run requests that were added to this run while it was queued. A configuration has at most one queued run, so a scheduled request that arrives while a real run of the whole configuration is queued does not queue a second run.
0When the latest scheduled run request counted in supersededRequests was made. Absent when supersededRequests is 0.
2026-07-27T03:00:00.000ZRecords read. The counters reconcile: recordsRead = created + updated + skipped + unresolvedParents + deleted + failed + collapsed + embedded. A client that sums only some of them will not balance.
1250Records created.
40Records updated.
1180Records skipped because they were unchanged.
25Records that failed.
5Records deleted.
0Source rows that repeat a key already imported in this run. The import keeps the last row of each repeated key and discards earlier rows. Duplicate keys do not fail the run; they mean the source feed is not unique on the key the stream imports by.
25907Child records that were not imported because their parent could not be found. Counted separately from skipped, which counts records that were already up to date.
25370Source rows that repeated a key already present in the same batch. They are merged before the write, last row wins, and counted here — so the report adds up however the source feed is batched. A repeat in a later batch is written again and counted as created or updated instead; duplicateKeys is the signal for a feed that is not unique on its key.
12Child records an EMBED composite child handed to its parent, which the parent then wrote inside its own instance. One write of the parent covers them all, so they are never counted as created or updated (that would count each line as an instance) and never as skipped (which means "already up to date"). If the parent turned out to be unchanged, failed, or absent, these are settled onto skipped, failed, or unresolvedParents once the parent's pass completes.
430A terminal status message, typically set on failure.
Import completed with 5 record failures.The streams the run was asked to execute, as sent in streamIds when it was triggered. Absent when the run executes every stream of the configuration.
["3fa85f64-5717-4562-b3fc-2c963f66afa6"]When the run retries another run's failed records, the identifier of that original run.
7c9e6679-7425-40de-944b-e07fc1f90ae7Whether the run rewrote every record, bypassing the skip-if-unchanged check.
falseWhether the run only extracted, mapped, and validated, writing nothing to the target. A dry run legitimately reports zero for every counter, so this distinguishes it from a run that wrote nothing because it failed.
falseWhether cancellation has been requested for a run that is still finishing.
falseFor a dry run, how many mapped records were kept as a sample.
10Dry-run only. Whether the dry run used the published mappings (true) or the draft mappings (false).
trueGiven request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
The request conflicts with the current state of the resource.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
POST /importtool/{tenant}/runs/{runId}/retry HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"tenant": "mytenant",
"trigger": "MANUAL",
"origin": "Dashboard",
"status": "QUEUED",
"mode": "FULL",
"startedAt": "2026-07-27T02:00:00.000Z",
"recordsRead": 0,
"created": 0,
"updated": 0,
"skipped": 0,
"failed": 0,
"deleted": 0,
"supersededRequests": 0
}Last updated
Was this helpful?

