← All work
Portfolio project · Open source · Live demo

SyncWatch: catching silent failures in ERP to e-commerce syncs

On the demo data, the workflow reported 197 successful runs with zero errors. The data disagreed. SyncWatch shows where, why, and the exact change that fixes it.

TypeOpen-source portfolio project
Demo companyRaml Home (fictional)
RoleDesigned and built end to end
Tests26 automated tests

Portfolio project on a fictional Dubai retailer. Every figure below comes from the demo dataset, not a live business. The same four classes of fault were found in a real production review of a Dynamics 365 to Shopify integration.

SyncWatch overview: real screenshot of the demo
SyncWatch overview: real screenshot of the demo

Overview

Most ERP to e-commerce integrations fail quietly: every run is green while the store shows old prices and orders never reach finance. SyncWatch watches the outcome instead of the run log.

Problem

A Dynamics 365 F&O to Shopify sync built in n8n went live and reported success on every run, yet products were missing, prices were wrong and orders were never written back.

Role & ownership

I designed and built it alone: replay engine, reconciliation, workflow audit, file import, investigation agent, interface and the importable n8n monitor.

What it found

#What the data showsRoot cause
118 ERP products never reached the storeA Limit node set to 50, left in from testing
273 products with the wrong price or stockThe ERP query filters on creation date with a fixed date, so edits are never fetched
3171 Shopify orders with no ERP sales orderNo write-back step
4An ERP access token stored in plain textToken in an HTTP header instead of n8n’s credential store

Workflow

  1. Replay every scheduled run since go-live.
  2. Reconcile both systems record by record.
  3. Audit the exported n8n workflow file.
  4. Link each data incident to the workflow setting that causes it.
  5. Approve a fix; SyncWatch replays and reconciles again, and logs the approval.

Implementation

  • Two kinds of finding: data incidents proven by comparison, and workflow risks from auditing the file.
  • Fixes are replayed, not assumed.
  • Investigation agent with four read-only tools; customer data reaches it only inside tool results, treated as data.
  • Daily n8n monitor that pages through every ERP and Shopify product and emails the team when they differ.
  • Imports real Dynamics 365 and Shopify exports.

Tech stack

JavaScript, Node.js (no dependencies), n8n, LLM tool calling, node:test.

Results

On the demo data: 91 product discrepancies (18 missing from the store plus 73 with the wrong price or stock), 171 orders with no ERP sales order, and one exposed token. Four silent failures in total, each with evidence, root cause and fix. 26 automated tests cover replay, detectors, the workflow audit, real exports, secret handling and the n8n monitor.