# SYNC_LIMIT_EXCEEDED

- Surface: API
- HTTP status: 409
- Details: `{ appId: string, limit: number, flags: number }`

## Remediation

Use an App within details.limit Flags before retrying create or Sync

## Cause

The App exceeds the Flag count supported by Temporary Environment create and Sync.

## Fix

Compare `details.flags` with `details.limit`. The request was refused before any write. The Flag count belongs to the App, so selecting a different source Environment does not remove the limit.

## Related

- [TEMPORARY_ENVIRONMENT_LIMIT_EXCEEDED](https://splitch.dev/docs/error/TEMPORARY_ENVIRONMENT_LIMIT_EXCEEDED)
- [ENVIRONMENT_SYNC_INCOMPLETE](https://splitch.dev/docs/error/ENVIRONMENT_SYNC_INCOMPLETE)

Source: https://splitch.dev/docs/error/SYNC_LIMIT_EXCEEDED