> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/academy/tier-2-core-skills/m04-knowledge-management/lab-6-diagnose-and-resolve-processing-failures.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 6: Diagnose and resolve processing failures

Hands-on lab for lesson 6 of module M04, diagnose and resolve processing failures.

{% @uptiq-training/training-labels content="Module 4 | brand
Lesson 6 of 8 | brand
Lab 6 | success
12 minutes | neutral
Bloom level Analyze | neutral" %}

{% @uptiq-training/training-navigator title="M04 Knowledge Management — Datasets, Sync & Versioning" content="Lesson 1: Distinguish datasets from knowledge bases | soon
Lesson 2: Create a dataset and ingest source files | soon
Lab 2: Create a dataset and ingest source files
Lesson 3: Build a knowledge base and navigate version history | soon
Lab 3: Build a knowledge base and navigate version history
Lesson 4: Configure Knowledge Sync and dataset auto-sync | soon
Lesson 5: Validate retrieval quality using Try Knowledge | soon
Lab 5: Validate retrieval quality using Try Knowledge
Lesson 6: Diagnose and resolve processing failures | soon
Lab 6: Diagnose and resolve processing failures | current
Lesson 7: Structure a knowledge base for agent grounding | soon
Lesson 8: Module assessment | soon" %}

## Lab overview

**Exercise title:** Diagnose and Resolve Processing Failures

**Difficulty level:** Analyze

**Estimated hands-on time:** 12 minutes (approximately 10 minutes of diagnostic and retry activity; 2 minutes of orientation)

**What you will do:** You will diagnose a knowledge processing failure by identifying the failed processing stage and failure reason in the file detail view, execute a Manual Retry, confirm the retry succeeds, and recognize the pattern that distinguishes a tenant-wide provider throttle from an isolated file failure.

**Enabling objective:** Diagnose a knowledge processing failure by identifying the failed processing stage (ingestion, TOC generation, tagging, or embeddings), interpret the failure reason, execute a Manual Retry, and recognize the pattern that indicates a tenant-wide provider throttle vs. an isolated file failure.

**Prerequisites:**

* Lessons 1–5 of this module must be complete.
* Your sandbox knowledge base from the earlier phases must exist with at least one dataset attached.
* Your sandbox environment must contain one pre-configured file that fails at the `TOC_GENERATION` stage on first attempt and succeeds on retry. Your instructor or the deployment team has set this up for you — you do not need to create it.

{% hint style="info" %}
This lab uses a pre-configured failure. In a real environment, processing failures occur when a file cannot be parsed at a specific stage — for example, a scanned PDF with no extractable text may fail at TOC generation. The sandbox file here is designed to fail on first attempt and succeed on retry so you can practice the full diagnosis-and-recovery workflow.
{% endhint %}

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

### Connection details

| **Field**                     | **Where to find it**                                                   |
| ----------------------------- | ---------------------------------------------------------------------- |
| **Sandbox login credentials** | Provided by your instructor at session start                           |
| **Project name**              | Displayed in the account/project switcher (top of the Console sidebar) |
| **Knowledge base name**       | Listed under **MY KNOWLEDGE** on the Knowledge home page               |
| **Dataset name**              | Listed under **All Datasets** on the Knowledge home page               |

### Pre-provisioned resources — no action required

* A knowledge base has been created for you from earlier phases of this exercise. It contains at least one dataset with files in **Synced** status.
* One file in the dataset has been pre-configured to show **Sync failed** status at the `TOC_GENERATION` stage. You will find it when you navigate to the Datasets tab and look for the "N files need attention" banner.
* All other files in the dataset are already synced. This is intentional — it lets you distinguish an isolated file failure from a tenant-wide throttle.

{% hint style="warning" %}
Do not select Force re-sync everything at any point in this lab. That option re-syncs every file and will overwrite the pre-configured failure state, preventing you from completing the diagnosis steps.
{% endhint %}

## Configuration template

This lesson does not require you to author a configuration file. The lab is diagnostic: you read the platform's failure output, execute a retry action, and interpret a text-based scenario. No YAML, JSON, or configuration parameters are filled in during this exercise.

## Step-by-step instructions

### Procedure 1 — Orient to the Failure State

{% stepper %}
{% step %}
**Open the knowledge base and navigate to the Datasets tab**

In the Console sidebar, select Knowledge. Under MY KNOWLEDGE, select your sandbox knowledge base to open it.

Once inside the knowledge base, select the Datasets tab.

**Expected result:** You see the Datasets tab with your dataset listed. A banner near the top of the tab reads something like **"N files need attention"** (where N is at least 1). At least one file in the dataset shows **Sync failed** status.

*Datasets tab showing "N files need attention" banner with at least one file in Sync failed status*

{% hint style="info" %}
**Checkpoint:** If you do not see the "N files need attention" banner, confirm you are on the Datasets tab (not the Content tab) and that you are inside the correct knowledge base. If the banner is still absent, ask your instructor — the pre-configured failure file may not have been set up in your sandbox.
{% endhint %}
{% endstep %}

{% step %}
**Locate the failed file using the Needs attention filter**

Select Review on the banner, or use the filter dropdown and select Needs attention.

**Expected result:** The file list narrows to show only files that require attention. You see one file with **Sync failed** status.

*Datasets tab with Needs attention filter applied, showing one failed file*

{% hint style="info" %}
The filter options are: All, Needs attention, Ready to sync, Processing, and Synced. "Needs attention" surfaces both failed files and stale files (files where a newer version exists in the dataset but has not been synced into the knowledge base). In this lab you will see only the failed file.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 2 — Diagnose the Failure

{% stepper %}
{% step %}
**Open the failed file's detail view**

Select the failed file row to open its detail view.

**Expected result:** A detail panel or view opens for the file. You can see two pieces of diagnostic information:

* **Stage name** — the processing stage where the failure occurred (for example, `TOC_GENERATION`)
* **Failure reason** — a plain-language description of why the stage failed

{% hint style="info" %}
The stage name and the failure reason are two different things. The stage name tells you where in the processing pipeline the failure occurred. The failure reason tells you why it failed at that stage. Both are shown in the file detail view, and you need both to diagnose the problem correctly.
{% endhint %}
{% endstep %}

{% step %}
**Read the stage name and failure reason**

Read the stage name and the failure reason displayed in the file detail view.

In this lab, the stage name is `TOC_GENERATION`. The failure reason describes why the file could not complete table-of-contents generation.

**Expected result:** You can identify:

1. The stage where processing stopped: `TOC_GENERATION`
2. The failure reason text (specific to this file — it is not "The provider rate limited the request")

{% hint style="warning" %}
If the failure reason text reads exactly "The provider rate limited the request", stop and do not retry. That is the tenant-wide throttle pattern, which requires a different response. See Procedure 4 for the throttle scenario. In this lab the failure reason should be specific to the file, not a rate-limit message.
{% endhint %}
{% endstep %}

{% step %}
**Interpret the failure pattern**

Ask yourself:

* Is only one file failing, while the other files in the dataset show **Synced**? → Isolated file failure
* Does the failure reason say "The provider rate limited the request"? → Tenant-wide throttle (do not retry immediately)
* Are multiple knowledge bases across your tenant failing the same way at the same time? → Tenant-wide throttle

**Expected result:** You correctly identify this as an **isolated file failure**. Only one file is failing; the other files in the dataset are synced; and the failure reason is specific to this file, not a rate-limit message.

{% hint style="success" %}
Always check how many files are failing before you retry. If only one file fails while others succeed, the problem is with that file. If many knowledge bases fail simultaneously with the same rate-limit message, retrying immediately wastes quota — the platform will retry on its own within two hours.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 3 — Execute Manual Retry

{% stepper %}
{% step %}
**Select Retry on the file row**

In the file list (with the Needs attention filter still applied), locate the failed file row. Select Retry on that row.

**Expected result:** The file status changes from **Sync failed** to **Processing** or **Syncing**, indicating the retry is underway.

*File row with Retry button visible, file in Sync failed status*

{% hint style="info" %}
Selecting Retry on the individual file row retries only that file. It does not affect any other files in the dataset. This is the correct scope for an isolated file failure — you leave the successfully synced files alone.
{% endhint %}
{% endstep %}

{% step %}
**Monitor the file status until it shows Synced**

Watch the file status in the list. Wait for it to update to Synced.

You may need to refresh the page or wait a moment for the status to update.

**Expected result:** The file status changes to **Synced**. The "N files need attention" banner disappears or updates to show zero files needing attention.

*Datasets tab after successful retry, file showing Synced status and banner cleared*

{% hint style="info" %}
**Checkpoint:** If the file status does not change to Synced after a reasonable wait, check whether the Retry button is still available on the file row. If the Retry button is unavailable (greyed out or gone), retries for this file are exhausted — the source file itself is the problem and would need to be replaced with a corrected version. In this lab, the retry is designed to succeed; if it does not, notify your instructor.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 4 — Recognize the Tenant-Wide Throttle Pattern

#### Step 8 — Read and respond to the throttle scenario

This step is text-based — no live platform action is required.

Read the following scenario:

> Three knowledge bases across your tenant all show Sync failed with the failure reason "The provider rate limited the request" at the same time. What should you do?

Select the correct response:

* A. Select Retry on each failed file immediately to clear the failures as fast as possible.
* B. Wait — do not retry immediately. The platform retries automatically within two hours. If multiple knowledge bases are failing simultaneously, check with your administrator.
* C. Select Force re-sync everything on each dataset to override the rate limit.
* D. Delete and recreate each knowledge base to reset the processing pipeline.

**Correct response: B**

**Why:** When the failure reason is "The provider rate limited the request" and multiple knowledge bases fail the same way at the same time, the limit is tenant-wide. An immediate retry meets the same limit and uses more quota. The platform retries on its own within two hours. Force re-sync and deletion are both destructive and unnecessary.

{% hint style="warning" %}
Do not retry immediately when you see "The provider rate limited the request." Retrying consumes additional quota against the same limit that caused the failure. Wait for the platform's automatic retry, which runs within two hours.
{% endhint %}

{% hint style="info" %}
The tenant-wide throttle pattern has three signals: (1) the failure reason text is exactly "The provider rate limited the request," (2) multiple knowledge bases fail the same way, and (3) the failures happen at the same time. Any one of these signals should prompt you to wait rather than retry.
{% endhint %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| **Symptom**                                                                      | **Cause**                                                                                                       | **Fix**                                                                                                                                                             |
| -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"N files need attention" banner does not appear**                              | You may be on the Content tab instead of the Datasets tab, or in the wrong knowledge base                       | Switch to the **Datasets** tab; confirm you are inside the correct knowledge base                                                                                   |
| **Failed file does not appear after selecting Review or Needs attention filter** | Filter may not have applied, or the file status updated before you filtered                                     | Refresh the page and re-apply the **Needs attention** filter                                                                                                        |
| **File detail view does not show a stage name or failure reason**                | The file may still be processing, or the detail view did not fully load                                         | Wait a moment and reopen the file detail view; if the issue persists, notify your instructor                                                                        |
| **Failure reason reads "The provider rate limited the request"**                 | Tenant-wide provider throttle — not an isolated file failure                                                    | Do not retry immediately; wait up to two hours for the platform's automatic retry; check with your administrator if multiple knowledge bases are affected           |
| **Retry button is unavailable (greyed out or absent)**                           | Retries for this file are exhausted                                                                             | The source file itself is the problem; in a real environment you would replace the file with a corrected version and upload it; in this lab, notify your instructor |
| **File status does not change to Synced after retry**                            | Retry may still be processing, or the retry failed again                                                        | Wait and refresh; if the file returns to Sync failed, check whether the Retry button is still available; if not, retries are exhausted — notify your instructor     |
| **"Force re-sync everything" was selected accidentally**                         | All files are being re-synced, including the pre-configured failure file — the failure state may be overwritten | Notify your instructor; the sandbox may need to be reset                                                                                                            |
| **Throttle scenario: learner selects option A (retry immediately)**              | Common misconception — retrying immediately against a rate limit consumes quota without resolving the failure   | Review the failure reason text; when it reads "The provider rate limited the request," the correct action is to wait, not retry                                     |

</details>

## Checkpoints and validation

### Embedded Checkpoints (Formative)

#### Checkpoint 1 — Failed file located

Confirm you can see the failed file in the Datasets tab using the Needs attention filter.

* **How to confirm:** The file list shows exactly one file with **Sync failed** status after applying the filter.
* **If this fails:** Confirm you are on the Datasets tab of the correct knowledge base. If the banner is absent entirely, the sandbox pre-configuration may not be in place — notify your instructor.

#### Checkpoint 2 — Stage name and failure reason identified

Confirm you can read both the stage name and the failure reason from the file detail view.

* **How to confirm:** You can state (a) the stage name (`TOC_GENERATION`) and (b) the failure reason text shown in the UI.
* **If this fails:** Reopen the file detail view by selecting the failed file row. If neither value appears, the file may still be processing — wait and refresh.

#### Checkpoint 3 — Failure pattern correctly interpreted

Confirm you have identified this as an isolated file failure, not a tenant-wide throttle.

* **How to confirm:** Only one file is failing; the other files in the dataset show **Synced**; the failure reason is not "The provider rate limited the request."
* **If this fails:** Re-read the failure reason text carefully. If it does read "The provider rate limited the request," follow the throttle guidance in Procedure 4 and notify your instructor that the sandbox may have triggered a real throttle.

#### Checkpoint 4 — Manual Retry executed and succeeded

Confirm the retry completed successfully.

* **How to confirm:** The file that showed **Sync failed** now shows **Synced**. The "N files need attention" banner has cleared or updated to show zero files needing attention.
* **If this fails:** Check whether the Retry button is still available. If it is unavailable, retries are exhausted — notify your instructor. If the file is still processing, wait and refresh.

#### Checkpoint 5 — Throttle scenario answered correctly

Confirm you selected option B in the text-based throttle scenario (Step 8).

* **How to confirm:** You can explain why immediate retry is wrong when the failure reason is "The provider rate limited the request" — it consumes quota against the same limit; the platform retries automatically within two hours.
* **If this fails:** Re-read the throttle scenario in Procedure 4 and the concept note that follows it.

### Assessment

No summative assessment — EO-4 is assessed in the Lesson 8 summative. The performance checkpoints above (retry succeeded; throttle scenario answered correctly) serve as the formative signal for this lesson.

## Solution reference

<details>

<summary>The completed state of your work</summary>

### What the completed lab looks like

When all procedures are successfully executed, your sandbox environment is in the following state:

**Datasets tab:**

* All files in the dataset show **Synced** status.
* The "N files need attention" banner is absent or shows zero files needing attention.
* No files show **Sync failed** status.

**What you did:**

1. Navigated to the knowledge base → Datasets tab and observed the "N files need attention" banner.
2. Selected **Review** (or filtered by **Needs attention**) to locate the failed file.
3. Opened the failed file's detail view and read:
   * **Stage name:** `TOC_GENERATION` — the stage where processing stopped
   * **Failure reason:** \[file-specific text, not "The provider rate limited the request"]
4. Correctly identified the failure as an **isolated file failure** (one file failing while others are synced; failure reason specific to the file).
5. Selected **Retry** on the file row to execute a Manual Retry.
6. Confirmed the file status changed to **Synced**.
7. Read the throttle scenario and correctly identified the right response: wait; do not retry immediately; the platform retries within two hours.

### Key distinctions you can now apply

|                         | **Isolated File Failure**                                                       | **Tenant-Wide Provider Throttle**                                                                                |
| ----------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **Failure reason text** | Specific to the file (e.g., could not parse for TOC generation)                 | "The provider rate limited the request"                                                                          |
| **Pattern**             | One file fails; others in the same dataset succeed                              | Multiple knowledge bases fail the same way at the same time                                                      |
| **Recommended action**  | Select Retry on the file row; if retries are exhausted, replace the source file | Do not retry immediately; wait up to two hours for the platform's automatic retry; check with your administrator |

{% hint style="success" %}
When you encounter a processing failure in a production environment, always read both the stage name and the failure reason before taking action. The stage name tells you where it failed; the failure reason tells you why — and the failure reason is what determines whether you retry immediately or wait.
{% endhint %}

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% endhint %}


---

# 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://docs.uptiq.ai/academy/tier-2-core-skills/m04-knowledge-management/lab-6-diagnose-and-resolve-processing-failures.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.
