How to Identify and Manage Failed Synchronizations
Learn to manage IHASHOP failed synchronizations, error codes, queue retries, heartbeat timeouts and safe recovery.
How to identify failed synchronizations
IHASHOP Dropshipping 1.0.0 records failed synchronizations in run history. Open Marketplace > Dropshipping Sync (/secure/dropshipping/senkron), inspect connection, type, start, state, error code and statistics. Running may mean waiting in the queue or retrying. Completed does not guarantee every sub-operation succeeded. Failed indicates an error; aborted indicates a safeguard stop.
1. Interpret error codes
BAGLANTI and HTTP_DURUM indicate download failures. BAGLANTI_YOK and TEDARIKCI_YOK indicate missing records. ADAPTOR_YOK, ADAPTOR_UYGULANMADI and ADAPTOR_HATASI require checking adapters or field mapping. URUN_YOK fails when no processable products remain. ESIK_HATA, ESIK_KAYIP and ESIK_FIYAT abort before writes. MODUL_KAPALI indicates entitlement or run gate closure; BASKA_APPLY_SURUYOR indicates concurrent apply prevention.
BAYAT_ZAMAN_ASIMI, YAZIM_HATASI and IS_BASARISIZ are distinct failure reasons.
2. Transient and permanent connection errors
SenkronKosuIsi carries only syncRunId in its queue payload. Configuration is tries=3, backoff=[60,300,900] seconds and timeout=120 seconds. Three attempts do not mean three retries. On a transient download failure before the final attempt, a heartbeat is written, the exception is thrown for queue retry and the run stays running. The last failed attempt marks failed. HTTP_DURUM is retryable for 5xx, not 4xx such as 401/403.
Other connection codes follow their permanent-error list. Closed entitlement prevents network access and secret resolution.
3. Heartbeat and stale runs
NabizYazici updates ds_sync_runs.updated_at only while running. It writes immediately at stage boundaries and before retryable errors, or at checkpoints after 30 seconds or 50 gate calls by default. There is no second write in the same second. Valid settings are nabiz_sn 5–600, nabiz_urun 1–5000, zaman_asimi_dk 30–1440; invalid settings use defaults.
Staleness uses last heartbeat; strictly older than the default 30 minutes can fail with BAYAT_ZAMAN_ASIMI. Checks occur on start and execution; do not assume an independent continuous timer.
4. Distinguish job timeout from staleness
120 seconds is the configured queue job timeout; 30 minutes is the default stale-progress threshold. Neither is a measured full synchronization target. Investigate queue workers, queue delays, retry and worker configuration separately. The failed() hook closes a still-running record with IS_BASARISIZ and does not overwrite completed runs. Raw exception messages are not saved to the run record.
Verify the old run before triggering another.
5. Compare GiyimDepom and Luxstoree
An illustrative GiyimDepom JSON feed returning HTTP 503 is retryable; if all attempts fail, the run becomes failed with HTTP_DURUM. An illustrative Luxstoree XML feed returning HTTP 403 fails on the first attempt; verify access authorization and connection settings. These are not live supplier outage measurements. Both adapters may also encounter normalization errors from malformed data or identity conflicts.
GiyimDepom JSONLuxstoree XMLHTTP 503HTTP 403running → failed (3)failed (1)HTTP_DURUMHTTP_DURUM6. Partial-write safety
Apply is not one transaction for the whole catalog. Each product and its variants share a transaction. If entitlement closes after the third product, those three may remain and bulk missing marking is skipped. QueryException during source persistence or scanning produces YAZIM_HATASI without exposing SQL or bound values in the explanation. The failed() hook can record yazilan=0; this is not proof that no earlier commits occurred.
Later stock or scan failures do not undo earlier writes.
7. Recover safely
DurdurmaAciklamasi maps 14 known codes to Turkish and English explanations. Only numeric ratio and limit parameters appear for threshold errors; other values become ?. Unknown codes get a generic explanation. Verify connection, entitlement, mappings and run history. A fresh apply prevents a second apply; the same idempotency key returns the existing run. Finished runs are not executed again with the same ID.
After resolving the issue, start a new Preview then deliberately Apply. Compare source records, sales links and shop inventory if partial writes are possible.
8. Existing test scenarios
SenkronKosuIsiTest covers running on transient error, failed on final attempt, a single 403 request and completed-state preservation by the failure hook. SenkronBayatKosuTest covers retaining a 20-minute-old run and closing a 31-minute-old run. SenkronNabizTest covers progressing long runs and no duplicate heartbeat within a second. KaynakKalicilikTest covers partial writes and missing-mark protection.
This guide follows reviewed code and existing test expectations.
Related guides
- How to Manage Missing Products from Supplier Feeds
- How Do Synchronization Protection Thresholds Work?
- Synchronization Preview vs Apply: What Is the Difference?
- How Does Dropshipping Product Synchronization Work?
- How to Test a Supplier Connection
- How to Integrate GiyimDepom Dropshipping with IHASHOP
- How to Integrate Luxstoree Dropshipping with IHASHOP
- IHASHOP Dropshipping
Frequently asked questions
Is HTTP 503 retried?
Yes, transient HTTP 5xx can be retried before the final attempt.
Is HTTP 403 retried?
No; check access settings.
Does running always mean processing?
No; the run may be queued or waiting for retry.
Does failed mean zero writes?
No. Earlier committed products may remain.
Can a finished run execute again?
No; start a new operation after resolving the issue.