Error: Failed to Stop In-Progress Sync After Trying for 60 Seconds
Issue
While modifying a connection, the Fivetran REST API returns the following error:
Failed to stop in-progress sync after trying for 60 seconds
Environment
Fivetran REST API
Resolution
To resolve this issue, pause your connection and wait until it reaches a paused state before modifying it:
- Send a
PATCH /v1/connections/{connectionId}request to pause the connection:{ "paused": true } - Send a
GET /v1/connections/{connectionId}request to check the connection status. - Repeat the
GET /v1/connections/{connectionId}request until the response includes the following value:{ "status": { "sync_state": "paused" } } - After the connection is paused, send the schema or configuration update request. For example:
PATCH /v1/connections/{connectionId}/schemas - After the update request succeeds, send a
PATCH /v1/connections/{connectionId}request to resume the connection:{ "paused": false }
For more information, see our Connection resource.
Cause
Fivetran API tries to stop an active sync before applying connection changes. If the sync does not reach a safe cancellation point within 60 seconds, the request fails. This issue is more likely when API updates run while a sync is active, especially in automated workflows that update connections frequently.