## TL;DR
Resume instead of restarting when the export supports ranges; otherwise re-export in smaller slices and stitch. Check for a corrupt row with bad quoting at the failure point, since one malformed record can kill the serializer.

```text
CSV export of app assignments failed halfway
```

## Use this when
- A CSV export downloads partially then fails.
- Re-running the full export fails at a similar point.
- The export is large enough that network blips are plausible.

## Not for this skill when
- The export fails immediately. That is auth, permissions, or a bad filter.
- The export completes but the data is wrong. That is a data problem.
- The file downloads fully but will not open. That is an encoding or viewer problem.

## Steps
1. Note how far the export got by counting rows in the partial file. Verify: you know the break point.
2. Re-export the remainder using a filter, such as an alphabetical slice of users. Verify: the slice covers only the missing range.
3. Inspect rows near the break for quoting or encoding issues. Verify: you found or ruled out a corrupt row.
4. Stitch the parts together, keeping one header row. Verify: the merged file is well-formed.
5. Check total rows against expectations and scan for duplicates. Verify: the count is right.

## Variant phrasings
### CSV export interrupted
The short phrasing.
### partial download
The symptom-first search.
### export failed midway
The generic phrasing.

Compatibility: Any SaaS CSV export of user or assignment data.

## Why it happens
Long exports die on network blips, or on one malformed record that chokes the serializer at the same point every run. The break point tells you which of the two it is.

## Edge cases / pitfalls
- The vendor regenerating different data on re-export; snapshot the source first if the data moves.
- Stitching that duplicates the header row mid-file; strip headers from all but the first part.
- Spreadsheet apps mangling the stitched file on open; validate with a script, not by eyeballing.
- The corrupt row reappearing in the slice; exclude or fix it at the source.

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_eqUkKhlrivz1RS6OHyk9SQ
