{% extends "base.html" %} {% from "_page_header.html" import page_header %} {% from "_components.html" import badge, identifier, kv, operations_journey %} {% block content %} {% set latest = versions[0] if versions else None %} {% call page_header(document.title, document.external_id) %}
Ingestion failed{% if latest.failed_at %} on {{ latest.failed_at.strftime("%Y-%m-%d %H:%M") }}{% endif %}.
{{ failure_labels.get(latest.failure_code, "The worker recorded a failure.") }} ({{ latest.failure_code or "unknown" }})
{% if latest.failure_retryable and latest.job_id and jobs.get(latest.job_id) %}This failure was transient on its last attempt; open the linked job and retry it when the Retry action is offered.{% elif latest.failure_retryable %}This failure was transient, but its job is unavailable here; upload or sync the item again.{% else %}This failure is not retryable: fix the content or its type and upload/sync again.{% endif %} {% if latest.job_id and jobs.get(latest.job_id) %} Job: {{ (latest.job_id | string)[:8] }}…{% elif latest.job_id %} Job: unavailable{% endif %}
No version has been recorded for this document yet.
{% else %}{{ version.parser_version }} · {{ version.chunk_profile_version }}{% if version.failure_code %} · {{ version.failure_code }}{% endif %}
{{ identifier(version.id, "version-" ~ loop.index) }}
{{ chunks | length }} child chunks{% if parent_count %} · {{ parent_count }} parent chunks (context only){% endif %}
{% if shown and shown.state.value == "failed" %}This version failed before any chunk was stored.{% elif shown and shown.state.value != "published" %}Chunks are stored when the version is published.{% else %}No chunks are stored for this version.{% endif %}
{% else %}{{ chunk.content }}
No parsed artifact is stored for the shown version.
{% endif %}No job is linked to this document's versions (versions created before job linking existed show no job).
{% else %}