# SYNC_OUT_OF_SCOPE

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

A write set a `where` column to a value that `where` does not allow, such as `ownerId` of another person or a team that the caller is not in. Leave the single values of `where` out: the client and the server write them. For a column with a list in `where`, such as `teamId`, use one of its values. A pull gets 403 with this code when its subset is outside `where`, and the live stream refuses that store with this code. The store shows it as `error`.

## Source

`SYNC_OUT_OF_SCOPE` belongs to the `sync` package. Its catalog entry is in [`src/errors.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/errors.ts#L55). It is raised in [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L166), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L530), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L580).

See [all Sync diagnostics](https://vitehub.dev/docs/sync/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/sync.md)
- [Get started](https://vitehub.dev/raw/docs/sync/get-started.md)
- [Server API](https://vitehub.dev/raw/docs/sync/server-api.md)
- [Limits and errors](https://vitehub.dev/raw/docs/sync/limits-and-errors.md)
- [Vue](https://vitehub.dev/raw/docs/sync/vue.md)

Next: [Vue](https://vitehub.dev/raw/docs/sync/vue.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
