> For the complete documentation index, see [llms.txt](https://developerdocs.instructure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developerdocs.instructure.com/services/canvas/resources/sis_import_errors.md).

# SIS Import Errors

#### A SisImportError object looks like: <a href="#sisimporterror" id="sisimporterror"></a>

```js
{
  // The unique identifier for the SIS import.
  "sis_import_id": 1,
  // The file where the error message occurred.
  "file": "courses.csv",
  // The error message that from the record.
  "message": "No short_name given for course C001",
  // The contents of the line that had the error.
  "row_info": "account_1, Sub account 1,, active ",
  // The line number where the error occurred. Some Importers do not yet support
  // this. This is a 1 based index starting with the header row.
  "row": 34
}
```

## [Get SIS import error list](#method.sis_import_errors_api.index) <a href="#method.sis_import_errors_api.index" id="method.sis_import_errors_api.index"></a>

[SisImportErrorsApiController#index](https://github.com/instructure/canvas-lms/blob/master/app/controllers/sis_import_errors_api_controller.rb)

#### `GET /api/v1/accounts/:account_id/sis_imports/:id/errors`

**Scope:** `url:GET|/api/v1/accounts/:account_id/sis_imports/:id/errors`

#### `GET /api/v1/accounts/:account_id/sis_import_errors`

**Scope:** `url:GET|/api/v1/accounts/:account_id/sis_import_errors`

Returns the list of SIS import errors for an account or a SIS import. Import errors are only stored for 30 days.

Example: curl 'https\://\<canvas>/api/v1/accounts/\<account\_id>/sis\_imports/\<id>/sis\_import\_errors'\
-H "Authorization: Bearer \<token>"

Example: curl 'https\://\<canvas>/api/v1/accounts/\<account\_id>/sis\_import\_errors'\
-H "Authorization: Bearer \<token>"

#### Request Parameters:

| Parameter | Type      | Description                                                           |
| --------- | --------- | --------------------------------------------------------------------- |
| `failure` | `boolean` | If set, only shows errors on a sis import that would cause a failure. |

Returns a list of [SisImportError](#sisimporterror) objects.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developerdocs.instructure.com/services/canvas/resources/sis_import_errors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
