> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ImportTask

> Tracks a cards import, as the deprecated import task queries return it. `queuedTasks` returns the same task as a `QueuedTask`.



**Kind**: `object`

## Implements

- `Task`

## Fields

**`analysisResult`**: `AnalysisResult`

Result of the file analysis. Null until the analysis finishes.

---

**`cardDefinitionId`**: `String!`

The card definition this import writes into.

---

**`createdAt`**: `DateTime!`

When the task was created (UTC).

---

**`errorFileUrl`**: `String`

> Deprecated: Use `artifacts` and take the `url` of the artifact named `validation-errors.jsonl`.

---

**`failedRecords`**: `Int!`

Number of rows that failed.

---

**`filename`**: `String`

Name of the file to import.

---

**`id`**: `ID!`

Global id of the import task. `importTaskById` takes it.

---

**`lastUpdatedAt`**: `DateTime!`

When the task last changed (UTC).

---

**`processedRecords`**: `Int!`

Number of rows imported so far.

---

**`progress`**: `Float`

Share of rows imported, 0 to 100 (percent). Null while the row count is 0.

---

**`stage`**: `ImportStage!`

Step of the import the task is at. See `ImportStage`.

---

**`status`**: `TaskStatus!`

State of the task. See `TaskStatus`.

---

**`tenantId`**: `ID!`

Global id of the tenant that owns the task.

---

**`totalRecords`**: `Int!`

Number of rows in the file.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.