InsightsIntegration4 min read

Resolving Conflicts in Bidirectional Data Sync

Moving data in both directions is straightforward; deciding what should happen when both sides change it is not. A durable integration defines ownership first, then separates conflicts that can be resolved safely from those requiring human judgment.

Accept That There Is No Naturally Correct Winner

When a CRM, ERP, customer channel, and operational application can all update the same customer record, conflict is not an edge case. It is a normal state the integration must represent. A common shortcut is last-write-wins. It is easy to implement, but it assumes synchronized clocks, negligible delivery delays, and that the later update is more correct. In practice, an offline device may upload an older decision later, while a scheduled import can arrive after a user has corrected the record. A later timestamp often means later arrival, not greater authority.

Start with a precise definition of conflict. Repeated writes of the same value are usually harmless. Changes to separate, independent fields may be merged. The important case is when two sources change the same field to different values after reading a shared base version. Without the base version, source identity, and change metadata, the service cannot distinguish a concurrent edit from an ordinary update. It can only apply a convenient guess.

Assign Authority by Field and Business Responsibility

Avoid one priority rule for an entire application, such as always allowing the ERP to overwrite the CRM. Build a field-ownership matrix instead. The ERP might own credit status and payment terms, the CRM might own sales notes, and a LINE profile name might be useful context without being allowed to replace a registered customer name. Authority should follow the business process that creates and approves the value, not the age of the application or the perceived importance of its database.

For each synchronized data element, make the following decisions explicit:

  • Authoritative source:Identify which system creates or approves the final value, and whether other systems may edit it or only request a change.
  • Merge granularity:Choose record-level, field-level, or collection-item comparison. Finer granularity prevents unrelated edits from overwriting one another but increases implementation and testing complexity.
  • Version evidence:Prefer revision numbers, source event sequences, or conditional updates over timestamps alone, which are vulnerable to clock drift and delayed delivery.
  • Deletion semantics:Define whether deletion means permanent removal, deactivation, or a request awaiting confirmation. A concurrent delete and update should rarely be resolved by arrival order.
  • Override rules:Document which roles or workflow states may temporarily override the authoritative source, why they may do so, and when that override expires.

Field-level merging works when one system changes a phone number and another changes a sales note. It becomes dangerous when fields are coupled. Street address, postal code, delivery zone, and tax jurisdiction may need to be treated as one consistency group. Otherwise, the integration can assemble a combination that no user or source system ever approved. The test for automatic merging is not whether fields can be separated technically, but whether separating them preserves the business invariant.

Separate Automatic Resolution from Human Adjudication

Deterministic, low-risk cases belong on the automatic path: duplicate events, a clear authoritative source, changes on only one side, or additions to a set where ordering does not matter. Conflicts involving contract status, payment terms, inventory, identity data, or deletion often carry a higher cost if resolved incorrectly. These should enter a review queue. A sync service should expose uncertainty instead of reporting success while silently discarding one side. Holding one record is usually safer than quickly propagating a bad decision to every downstream system.

A review interface needs more than two current values. The operator should see the common base value, both proposed values, who changed them, their source systems, timestamps, related fields, and downstream processes already affected. Useful actions include accepting either side, entering a merged value, or deferring the decision. Every outcome should record the reviewer, reason, and resulting revision. Publish the decision as a new event through the normal integration route rather than patching databases directly; this gives every participant the same opportunity to converge.

Design for Replay, Observation, and Explicit Failure

The synchronization layer should carry idempotency keys, source event identifiers, revision checks, and an auditable history. An older revision must not silently overwrite a newer one, and a retried event must not repeat side effects. Data that cannot be classified should move to a quarantine queue with an actionable alert. In event-driven designs, include the prior revision, new revision, changed fields, and source identity rather than sending only the latest snapshot. That context makes conflict detection possible even when events are delayed or replayed.

Tests must cover realistic failure orderings: concurrent edits, out-of-order events, retries after network interruption, partial field failures, and a new edit arriving while an earlier conflict is under review. After launch, observe conflict categories, queue age, retry causes, and fields that repeatedly return to review. Recurring conflicts usually indicate unclear ownership or a broken workflow, not an understaffed review team. The goal is not to eliminate every conflict. It is to ensure that each one follows a consistent, explainable, and traceable path. When ownership spans several departments and systems, an integration team can help turn those business decisions into enforceable technical rules.

This article was written automatically by AI from a topic planned by Sainso Technology. It is general guidance — assess against your own situation or talk to us before implementing.

Get started

Have a project like this?

Tell us your industry, current systems and budget range. We reply within two working days and offer a free 30-minute consultation.