Fix: n8n shows success but destination data is wrong

    n8n reports that every node completed, but execution success does not prove the destination state is correct. Preserve source IDs, make writes idempotent, read back the destination, and reconcile the full batch.

    Last updated 2026-09-21~6 min read
    n8nHTTP RequestCode nodeCRM APIReconciliation

    Symptoms — what you're seeing

    • The n8n execution is green and every node shows success, but the destination has fewer records than the source
    • A retry or manual re-run creates duplicate CRM records instead of updating the existing record
    • The record exists in the destination, but one or more fields contain the wrong value or a value from another item
    • Source and destination counts match, but users still report incorrect pipeline stages, owners, tags, or contact details
    • The workflow works in a small test but loses or corrupts records during a larger batch

    Last updated: 2026-06-08 · Tested on: n8n 1.x · Read time: 6 min

    Why this happens

    n8n execution success is transport-level information. It tells you that a node completed without returning an error. It does not tell you that the destination now matches the source.

    A destination API can return a successful response while accepting only part of a payload, normalizing a value, writing to the wrong record, or ignoring a field it does not support. A workflow can also lose correctness between nodes when an item is filtered, merged incorrectly, or mapped against the wrong item.

    The most common production causes are:

    • No stable correlation key. The workflow creates a destination record but does not preserve the source record ID. After a retry, it cannot tell whether it should update or create.
    • Non-idempotent writes. A timeout after the destination accepted a create request looks like a failed request to n8n. Retrying the item creates a second record.
    • Partial batch handling. A Split Out, Loop Over Items, filter, or merge path processes fewer items than the source query returned. The execution can still finish successfully.
    • Incorrect item mapping. An expression reads from the current item when it should read from a paired item, or a Code node returns only the first item instead of the complete collection.
    • No post-write verification. The workflow checks the HTTP status but never reads the destination record back or compares the important fields.

    If an external API call is failing before it can write, diagnose that separately. For example, an n8n HTTP 401 error when calling GoHighLevel is an authentication problem, not a reconciliation problem. If the API is rate limiting a batch, use the batch and wait pattern for n8n 429 errors before judging the destination state.

    The fix, step by step

    1. Choose the source record ID as the correlation key. Add the immutable ID from the source system to the destination record, either in a dedicated external-ID field or in a custom field. Do not use a name, email address, or array position as the primary identity unless the source system guarantees it is unique and immutable.
    2. Record the expected write before making the API call. Keep the source ID, destination lookup key, and important mapped values together as the item moves through the workflow. This gives the later verification step the exact expected state rather than forcing it to reconstruct the mapping.
    3. Make the destination write idempotent. Prefer the destination API's upsert or update-by-external-ID operation. If the API does not support that, use an HTTP Request or native node lookup by the source ID, then branch to update when a record exists and create when it does not. Store the returned destination ID for the verification step.
    4. Verify the response, not only the status code. After the write, check that the response contains the destination ID and the source correlation key. A 200 or 201 response without the expected identity is not sufficient evidence that the intended record was written.
    5. Read the destination back. Use the destination's Get, Search, or HTTP Request operation to fetch the record by the stored destination ID or source correlation key. Compare the fields that matter to the business outcome: for example, email, pipeline stage, owner ID, amount, or appointment time. Do not compare only the record count.
    6. Validate every item. If you use a Code node in "Run Once for All Items" mode, iterate over the complete input collection. Do not access only item zero. The following pattern separates missing records from field mismatches; replace the marked field names with the fields returned by your source and destination APIs:
    // Code node: Run Once for All Items
    // Input: one item per source record after destination read-back.
    // Replace sourceId, destinationId, and the expected/actual field names below with your own.
    const results = $input.all().map((item) => {
      const source = item.json.source;
      const destination = item.json.destination;
    
      if (!destination) {
        return {
          json: {
            sourceId: source.sourceId,
            status: "missing",
          },
        };
      }
    
      const mismatches = [];
      for (const field of ["email", "ownerId", "stageId"]) {
        if (source[field] !== destination[field]) {
          mismatches.push({
            field,
            expected: source[field],
            actual: destination[field],
          });
        }
      }
    
      return {
        json: {
          sourceId: source.sourceId,
          destinationId: destination.destinationId,
          status: mismatches.length ? "mismatch" : "verified",
          mismatches,
        },
      };
    });
    
    return results;

    Need another pair of eyes before this causes more bad records? Book a 30-min scope call. I'll inspect the workflow, the source and destination APIs, and the reconciliation key. You can also email Basit with an execution ID and a redacted sample.

    1. Persist the verification result. Send missing records and mismatches to an error table, a Supabase table, a Google Sheet used for operations, or another durable store. Include the source ID, destination ID, execution ID, error type, and first-seen timestamp. An alert without a durable mismatch record is difficult to investigate after the fact.
    2. Reconcile on a schedule. Add a separate Schedule Trigger workflow that selects a bounded source window, fetches the corresponding destination records, compares IDs and important fields, and reports the differences. Run it after the normal sync and periodically outside the sync window. Keep the window and comparison key explicit so a large client account does not require an unbounded full-table scan on every run.
    3. Alert on verified business failures. Alert when a record is missing, duplicated, or mismatched after read-back. Do not alert only when an n8n node throws an exception. If the source contains 50 records and verification returns 47 verified, one missing, one duplicate, and one mismatch, the workflow must report those three categories separately.

    Common variations

    • "The counts match but the records are wrong" — count comparison is too weak. Compare stable IDs and a defined set of business-critical fields after the write.
    • "The workflow duplicates records after a timeout" — the destination may have accepted the request before n8n received the response. Use an external ID or upsert so a retry resolves to the same destination record.
    • "Only the last item has the right values" — inspect the Code node mode and item handling. A Run Once for All Items node must return an array containing a result for every input item.
    • "The nightly sync misses records created during the run" — use a watermark such as a source updated-at value, overlap the next query window, and reconcile the overlap by source ID. A schedule trigger's timezone also affects when that window runs; check the n8n schedule trigger timezone fix if the job starts at the wrong local time.
    • "The destination API reports success but silently ignores a field" — read the record back and compare the API's returned representation. Confirm the field name, data type, permissions, and whether the destination allows that field to be updated.

    When this isn't the issue

    If reconciliation shows that every source ID and field matches but users still see the wrong business state, move the investigation downstream:

    • Check destination-side automations, workflows, triggers, and queues that may change the record after n8n writes it
    • Check whether the destination UI is showing a cached view, a different sub-account, workspace, pipeline, or environment
    • Check timezone conversion and date serialization when the mismatch is limited to appointments, scheduled tasks, or time-based status changes
    • Check permissions and field visibility if the API response contains the value but the user interface does not display it

    The reliable pattern is not "the execution is green, so the sync worked." It is: preserve the source ID, make the write idempotent, read the destination back, compare the fields that matter, and reconcile again on a schedule.

    Related pages

    Stuck on this for more than 30 minutes? Book a 30-min scope call. I'll get on Zoom, look at your workflow, and either fix it on the call or scope what it'll take. No upsell, no decks. You can also email Basit with an execution ID and a redacted sample.

    Need this workflow customized or debugged? Book a 30-min scope call →

    Stuck configuring this workflow?

    I build and fix n8n workflows for agencies and SaaS teams. 30-minute scope call — bring the problem, leave with an estimate.

    Related pages