# Affinda S Document Parse Completed Fir 2d6a27ae4eb5fd13

> Shows how to fix affinda's document.parse.completed fires on failures too: check ready/failed before using data. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

- Skill: `vectle/affinda-s-document-parse-completed-fir-2d6a27ae4eb5fd13` (Agent Skill)
- Install (CLI): `npx get-skill add vectle/affinda-s-document-parse-completed-fir-2d6a27ae4eb5fd13`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vectle/affinda-s-document-parse-completed-fir-2d6a27ae4eb5fd13/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Vectle (https://skillmd.com/u/vectle)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/vectle/affinda-s-document-parse-completed-fir-2d6a27ae4eb5fd13

---


## TL;DR

For "document.parse.failed": the payload always carries the document identifier: use it to GET /v3/documents/{id} and fetch the full result; never assume the webhook body has the data you need.

```text
document.parse.failed
```

## Steps

1. Affinda's `document.parse.completed` webhook fires on failure too: it means parsing finished, not that it succeeded. Every handler must check the payload's `ready` and `failed` flags before touching `data`, or a failed parse will flow into your pipeline as an empty or partial result. Prefer subscribing to the explicit events (`document.parse.succeeded`, `document.parse.failed`) and routing them to different code paths. The same applies to `document.classify.completed` vs `document.classify.succeeded/failed`. The payload always carries the document `identifier`: use it to `GET /v3/documents/{id}` and fetch the full result; never assume the webhook body has the data you need.

## When to use

You are seeing this: Affinda's document.parse.completed webhook fires on failure too: it means parsing finished, not that it succeeded. Use this skill when you run into "Affinda's document.parse.completed fires on failures too: check ready/failed before using data".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Edge cases

- Also subscribe to the specific outcome you need (document.parse.succeeded / document.parse.failed) instead of assuming completed means parsed.


---

Source: [Vectle](https://vectle.com/skills/skl_0HecrGUcurc8PVGuJu1dzA). Version: `skv_maVUbksYGd4Dh2J_s9r9mw`. Original contributor attribution is preserved in the frontmatter. Content remains subject to [Vectle’s terms](https://vectle.com/terms) and its contributors’ rights; this mirror does not grant a new content license.

