# ENVIRONMENT_SYNC_INCOMPLETE

- Surface: API
- HTTP status: 503
- Details: `{ environmentId: string, fromEnvironmentId: string, applied: number, failed: number, failedFlagIds: string[], retryAfterMs: number }`

## Remediation

Wait for details.retryAfterMs and retry the original create or Sync operation

## Cause

Some Flag Configurations could not be copied from the source Environment.

## Fix

Retry the original operation after `details.retryAfterMs`. An existing target may contain successful partial copies; repeating Sync converges and updates provenance only after complete success. A failed creation is rolled back. `details.failedFlagIds` lists at most 50 failures; `details.failed` is the full count.

## Related

- [SYNC_LIMIT_EXCEEDED](https://splitch.dev/docs/error/SYNC_LIMIT_EXCEEDED)
- [SERVICE_UNAVAILABLE](https://splitch.dev/docs/error/SERVICE_UNAVAILABLE)
- [ENVIRONMENT_EXPIRED](https://splitch.dev/docs/error/ENVIRONMENT_EXPIRED)

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