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

# Get Tracker Errors

> Get the errors for a progress tracker.

Returns both the legacy ``errors`` dict and the new ``typed_errors`` list,
projected from a single DB fetch. The dict excludes job-scoped rows
(``file_name IS NULL``) because ``classify_retry`` iterates dict keys as
filenames; job-scoped errors remain visible via ``typed_errors``.



## OpenAPI

````yaml /deasy-openapi.yml post /progress_tracker/errors
openapi: 3.1.0
info:
  title: Collibra Unstructured API
  description: >
    REST API for Collibra Unstructured.


    ## Authentication


    Every endpoint accepts either HTTP Basic credentials, or a bearer token sent
    together with the

    `X-User-ID` header identifying the user the call runs as.


    ## Base URL


    Your Unstructured deployment, for example
    `https://unstructured.your-company.com/rest/unstructured`.
  version: 0.1.14
servers:
  - url: /rest/unstructured
security:
  - BasicAuth: []
  - BearerAuth: []
    UserIdAuth: []
tags:
  - name: Core
    description: Endpoints for core functionality
  - name: Data
    description: Endpoints for source data
  - name: Metadata
    description: Endpoints for metadata management
  - name: Tags
    description: Endpoints for tag management
  - name: Taxonomy
    description: Endpoints for taxonomy management
  - name: Dataslice
    description: Endpoints for dataslice management
  - name: Progress Tracker
    description: Endpoints for tracking progress
  - name: Classification
    description: Endpoints for classification
  - name: Ingestion
    description: Endpoints for document ingestion
  - name: Workflows
    description: Endpoints for workflow management
  - name: Deduplication
    description: Endpoints for deduplication
paths:
  /progress_tracker/errors:
    post:
      tags:
        - Task Tracking
      summary: Get Tracker Errors
      description: >-
        Get the errors for a progress tracker.


        Returns both the legacy ``errors`` dict and the new ``typed_errors``
        list,

        projected from a single DB fetch. The dict excludes job-scoped rows

        (``file_name IS NULL``) because ``classify_retry`` iterates dict keys as

        filenames; job-scoped errors remain visible via ``typed_errors``.
      operationId: get_tracker_errors_progress_tracker_errors_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetTrackerErrorsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTrackerErrorsResponse'
        '403':
          description: Missing token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
      x-codeSamples:
        - lang: Python
          source: |
            # pip install deasy-sdk
            import os
            from deasy import DeasyClient

            client = DeasyClient(
                base_url=os.environ["UNSTRUCTURED_CLIENT_BASE_URL"],
                username=os.environ["UNSTRUCTURED_USERNAME"],
                password=os.environ["UNSTRUCTURED_PASSWORD"],
            )

            response = client.task_status.get_errors(
                tracker_id="example_tracker_id",
            )
            print(response.errors)
components:
  schemas:
    GetTrackerErrorsRequest:
      properties:
        tracker_id:
          type: string
          title: Tracker Id
        limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Limit
        offset:
          anyOf:
            - type: integer
            - type: 'null'
          title: Offset
        include_error_messages:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Include Error Messages
          default: true
      type: object
      required:
        - tracker_id
      title: GetTrackerErrorsRequest
    GetTrackerErrorsResponse:
      properties:
        errors:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Errors
        typed_errors:
          items:
            oneOf:
              - $ref: '#/components/schemas/OcrTrackerError'
              - $ref: '#/components/schemas/ClassifyTrackerError'
              - $ref: '#/components/schemas/LegacyTrackerError'
          type: array
          title: Typed Errors
          default: []
      type: object
      required:
        - errors
      title: GetTrackerErrorsResponse
    HTTPError:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: HTTPError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OcrTrackerError:
      properties:
        file_name:
          anyOf:
            - type: string
            - type: 'null'
          title: File Name
        message:
          type: string
          title: Message
        severity:
          $ref: '#/components/schemas/ErrorSeverity'
          default: error
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        task_type:
          type: string
          const: ocr_data_ingestion
          title: Task Type
          default: ocr_data_ingestion
        step:
          $ref: '#/components/schemas/OcrStep'
      type: object
      required:
        - message
        - step
      title: OcrTrackerError
    ClassifyTrackerError:
      properties:
        file_name:
          anyOf:
            - type: string
            - type: 'null'
          title: File Name
        message:
          type: string
          title: Message
        severity:
          $ref: '#/components/schemas/ErrorSeverity'
          default: error
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        task_type:
          type: string
          const: classify
          title: Task Type
          default: classify
        step:
          $ref: '#/components/schemas/ClassifyStep'
      type: object
      required:
        - message
        - step
      title: ClassifyTrackerError
    LegacyTrackerError:
      properties:
        file_name:
          anyOf:
            - type: string
            - type: 'null'
          title: File Name
        message:
          type: string
          title: Message
        severity:
          $ref: '#/components/schemas/ErrorSeverity'
          default: error
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        task_type:
          type: string
          enum:
            - ocr_data_ingestion
            - classify
            - auto_create
            - standardize
            - export
            - versioning
            - context_engine
            - collibra_push
          title: Task Type
      type: object
      required:
        - message
        - task_type
      title: LegacyTrackerError
      description: >-
        Transitional variant for task types without a step enum yet, AND for

        OCR rows written before the step column was populated (step=NULL in DB).


        ``OCR_DATA_INGESTION`` is accepted here ONLY so step=NULL rows parse on

        read; the callable discriminator routes OCR rows WITH a step to

        ``OcrTrackerError``. When every task type has its own variant, delete

        this class alongside the ``Dict[str, str]`` branch in ``upsert_errors``

        and a ``step NOT NULL`` migration. Every ``TrackerTaskType`` must be
        listed

        here or have its own variant (enforced by a parametrized test).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ErrorSeverity:
      type: string
      enum:
        - error
        - warning
      title: ErrorSeverity
    OcrStep:
      type: string
      enum:
        - job_initialization
        - file_enumeration
        - file_download
        - text_extraction
        - ocr_text_extraction
        - embedding
        - metadata_tag_extraction
        - metadata_tag_upsert
        - metadata_file_upsert
        - node_write
        - out_of_sync_cleanup
      title: OcrStep
    ClassifyStep:
      type: string
      enum:
        - job_initialization
        - hierarchy_validation
        - tag_schema_validation
        - balance_check
        - dataset_limit_check
        - chunk_enumeration
        - llm_invocation
        - response_parsing
        - strategy_execution
        - metadata_persistence
        - tag_dense_embedding
        - auto_retry_orchestration
        - out_of_sync_cleanup
        - orchestrator_teardown
      title: ClassifyStep
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
    UserIdAuth:
      type: apiKey
      in: header
      name: X-User-ID

````

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