> ## 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 120+ 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.

# E2321

> Parquet target — Output directory belongs to another pipe

A Parquet output directory belongs to one pipe. Data files carry no pipe id, so crash recovery
cannot tell another pipe's files from its own: it would delete that pipe's temp files and its
published files above this pipe's cursor. At startup, before it touches any file, the target refuses
a directory that holds a state file under a key other than its own — `_sqd_parquet_state.<other>.json`
or the id-less `_sqd_parquet_state.json`. The message names the files it found and the one this pipe
expects.

**Fix** — give each pipe its own `dir`. To split a directory that two pipes already share, stop both
and move one pipe's state file and its table directories to a new directory; if both wrote the same
table, its files cannot be told apart, so re-index that pipe into its new directory instead. If the
state file is this pipe's own under an old key — the source `id` or `settings.id` changed, or the
state predates pipe ids — rename it to the name the message gives, and the pipe resumes from it.


## Related topics

- [Error reference](https://docs.sqd.dev/en/sdk/pipes-sdk/reference/errors.md)
- [parquetTarget](https://docs.sqd.dev/en/sdk/pipes-sdk/solana/reference/basic-components/target/parquet.md)
- [Changelog](https://docs.sqd.dev/changelog.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.