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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 140+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# E2320

> Parquet target — Engine output is not a Parquet file

A segment writer engine (`settings.engine`) finished a segment file that fails the Parquet
envelope check. The refusal names which condition failed:

* the file is smaller than any valid Parquet file (12 bytes);
* it does not start **and** end with the `PAR1` magic bytes;
* its footer length field — the little-endian uint32 immediately before the trailing magic —
  claims a footer that cannot fit inside the file (this is what rejects arbitrary bytes merely
  wrapped in `PAR1`);
* or the file could not be opened or read at all during verification.

The target refuses to publish at the checkpoint, before the file gets a published name, so
downstream readers never see it and the run is fully recoverable (the cursor never advanced
past the affected rows). This is an envelope check, not a decode: a structurally valid Parquet
file with wrong contents is beyond it.

**Fix** — the engine implementation is broken: it must write a complete Parquet file (including
the footer) to the temp path it was given before resolving `finish()`. The built-in
`parquetjsEngine` cannot produce this error.


## Related topics

- [E2320](/en/sdk/pipes-sdk/errors/E2320.md)
- [Error reference](/en/sdk/pipes-sdk/errors.md)
