Free pilot: checking differences between two CSV exports

Does anyone here regularly compare two CSV exports before feeding the result back into an n8n workflow?

I’d like to help with one small case for free and find out whether the result is useful in practice. I have a local Python checker that matches rows by an exact ID and reports changed fields, missing records, duplicate IDs and invalid numeric values. It doesn’t change the source files or need access to your n8n instance.

The first case would be two UTF-8 CSV files with the same column names, up to 1,000 rows in total and five fields to compare, after checking a small sample first. Long text cells are outside this pilot. You’d get the report, script and saved settings so you can repeat the check yourself. No payment, testimonial or later purchase required.

For example, in my fictional 7-row-per-file test, it finds one unchanged pair, two changed pairs, two left-only rows and one right-only row. Another two left rows and three right rows are blocked for review because of a duplicate ID and an invalid number. Nothing is silently merged.

If this fits a task you actually have, reply with the two systems you’re exporting from, the column names and what you need to check. We can start with a few made-up rows that reproduce the problem. Please don’t post customer data, company-confidential records or credentials; you can run the script on your actual files locally.

I’m using AI to help develop and test this, but the comparison itself is deterministic Python. So far I’ve tested it with fictional data, not a customer case. The point of this pilot is for someone else to check the result against their own expectations and tell me what doesn’t work.

It won’t do fuzzy matching, accounting sign-off or a live integration. If the task needs any of those, I’ll say so before we start.

:high_voltage: HIGH-VIABILITY PILOT: SCALING CSV DRAG-NETS FOR D2C INFRASTRUCTURE

Hi Vojtech (@Vojtech_Minarik ),

This is a phenomenal initiatives! In enterprise automation and high-velocity E-Commerce pipelines, managing data drift between fragmented platform exports (like syncing Shopify order histories against warehouse fulfillment ledgers or Shiprocket fulfillment loops) is a severe data mutation risk. Naive workflows that blindly merge or drop columns collapse under load, causing massive financial discrepancies.

I would love to partner with you for this pilot and run your script against one of my active production data schemas:

:bar_chart: The Target Systems: Shopify Orders Ingestion Export vs. Third-Party Fulfillment/Shiprocket Log Export.
:clipboard: Core Column Names to Evaluate: order_id (Primary Key), customer_email, total_price, shipping_zip, and fulfillment_status.
:magnifying_glass_tilted_left: Critical Check Requirements: Finding missing rows where an order was placed on Shopify but dropped by the logistics API, detecting duplicate billing triggers under surge traffic, and capturing invalid transaction hashes or blank pin codes before they cause delivery failure.

In my self-hosted Python and n8n clusters natively managing over 1.2M+ daily external webhook payload vectors, I secure these exact write boundaries using native Redis lock primitives (INCR + TTL gates) as atomic idempotency gates to prevent parallel write amnesia loops. Integrating your deterministic Python verification checker as a non-invasive out-of-band audit layer right before the data commits hit production databases would create a bulletproof operational moat.

Let’s test this out with a mock sample of 500 rows replicating these exact e-commerce drift vectors. Ready to evaluate your script and provide absolute technical feedback on the test coverage boundaries!

Best regards,
Sheetal Katre
Raipur, India | Verified Portfolio: https://github.com

Thanks, let’s try it. I’ve added checks for blank fields, repeated event IDs and hash formats. The tool can also map different column names between the two exports.

Could you first share the headers and 3–5 entirely made-up rows from each file, ideally including an error you expect the report to catch? Does each row represent one order, or can an order have multiple rows?

For the billing-event and hash checks, I’d also need those columns, since they weren’t in the original list. What does the transaction hash represent, and what format should it have?

At this stage the checks flag repeated IDs and incorrect hash formats. Confirming an actual duplicate payment would require payment records.

Once we’ve agreed on the expected result for the small sample, we can try the full fictional 500-row sample.

Hi Vojtech (@Vojtech_Minarik),

Perfect! Let’s lock this sample structure to benchmark the script limits. To answer your structural question: Yes, in this specific pipeline, each unique row represents a single distinct Order ID mutation.

Here is the 100% dynamic, mock E-Commerce schema datasets including the explicit error cases (like duplicated tracking events, broken hashes, and null parameters) for our audit:

:package: 1. Shopify Orders Export Sample (Authoritative Ledger)

order_id,customer_email,total_price,shipping_zip,billing_event_id,transaction_hash
SHOP-101,vijay.sharma@gmail.com,4500.00,492001,EV-TRK-7711,0x7b2d2ea14dcdf493a83d49dae9df4a0ed
SHOP-102,rahul.verma@gmail.com,1250.00,492006,EV-TRK-7712,0xf54c04580c774bdae9df4a0edcfa9f23
SHOP-103,aman.kumar@gmail.com,8900.00,495001,EV-TRK-7713,0x322806054d234a2891f7360088330c2b
SHOP-104,alok.mishra@gmail.com,3200.00, ,EV-TRK-7714,0x8bb5148a74074f8b8f9fccfa9fe32ebb ← [ERROR: Blank/Null Zip Field]
SHOP-105,neha.patel@gmail.com,5500.00,492001,EV-TRK-7715,0x4bdeee85678a4fca8ccc86933cc2443a
SHOP-105,neha.patel@gmail.com,5500.00,492001,EV-TRK-7715,0x4bdeee85678a4fca8ccc86933cc2443a ← [ERROR: System Repeated Entry / Duplicate Transaction ID]

:delivery_truck: 2. Third-Party Fulfillment / Shiprocket Log Export Sample

order_id,customer_email,total_price,shipping_zip,billing_event_id,transaction_hash
SHOP-101,vijay.sharma@gmail.com,4500.00,492001,EV-TRK-7711,0x7b2d2ea14dcdf493a83d49dae9df4a0ed
SHOP-102,rahul.verma@gmail.com,1250.00,492006,EV-TRK-7712,0xf54c04580c774bdae9df4a0edcfa9f23
SHOP-103,aman.kumar@gmail.com,8900.00,495001,EV-TRK-7713,INVALID_HASH_FORMAT_STRING ← [ERROR: Broken/Non-Hex Transaction Hash Boundary]
SHOP-104,alok.mishra@gmail.com,3200.00,492010,EV-TRK-7714,0x8bb5148a74074f8b8f9fccfa9fe32ebb ← [ERROR: Location Drift - Zip Code Mismatch against Shopify]
SHOP-106,rohit.singh@gmail.com,1800.00,492001,EV-TRK-7716,0x1c99ac40094048b8df7363d676a74cb ← [ERROR: Right-Only Rogue Order Entry]

:gear: Telemetry Context & Expected Rules:

  1. billing_event_id: Represents the unique transaction payload identifier generated at the n8n ingestion path.
  2. transaction_hash: Represents the unique cryptographic token string returned by the gateway. The required standard format must be a secure hexadecimal sequence prefixed with ‘0x’ followed by exactly 64 alphanumeric characters.

Let’s run this small layout through your script engine first. Highly interested to see how elegantly it flags the missing/corrupted vectors before we proceed to the full 500-row stress-test file, Sir!

Best regards,
Sheetal Katre

I ran the sample locally. It found 3 matched rows, 1 changed row (the postal code), 1 row only in the fulfillment export, and blocked the two duplicate SHOP-105 rows for review. It also flagged the blank postal code and repeated billing_event_id. That shows repeated IDs; it doesn’t confirm an actual double charge.

About the hashes: I checked them against the format the pilot supports: 0x + 64 hex characters. All 11 failed that check; the normal-looking examples have 32–33 characters after the prefix. Did you shorten them for the mock data, or is the actual hash format different?

fulfillment_status was in your original list but isn’t in these CSV headers. Should we include it? And could you add one unique Shopify order that’s missing from fulfillment? Right now SHOP-105 is duplicated and gets blocked, while SHOP-106 is only in fulfillment, so there isn’t a clean left-only case to test.

Hi Vojtech,

Thanks for the careful validation. I’ve reviewed the sample against the issues you identified.

I’ll correct the mock transaction hashes so valid test values follow the required 0x + 64 hexadecimal character format, while retaining a deliberately malformed value to verify that the script catches invalid hashes.

I’ll also keep fulfillment_status in both exports and add SHOP-107 as a Shopify-only order to test the left-only case. The duplicate SHOP-105 rows and repeated billing event ID will remain explicit review cases, not proof of a duplicate payment.

Before moving to the 500-row test, I’d like to rerun the small sample and confirm the expected outcomes for matched rows, changed fields, duplicate records, invalid hashes, and orders present in only one export.

Thanks again for helping tighten the test cases.

Best regards,
Shital

Hi Vojtech,

Just checking in on the CSV comparison pilot. I’m ready to share the corrected sample with valid hash formats, fulfillment_status in both exports, and a Shopify-only order to cover the missing test case.

Would you like me to post the updated sample here for validation before proceeding to the 500-row test?

Thanks!

Thanks, I ran this small sample locally using order_id as the exact key. I got 3 matched orders, one changed row (SHOP-104: blank Shopify ZIP vs 492010 in Shiprocket), the duplicate SHOP-105 rows were blocked for review, and SHOP-106 appeared only in Shiprocket. I also found one blank ZIP, the repeated billing_event_id on the two SHOP-105 rows, and 11 hash values that fail the stated 0x + 64-hex format. The sample values look shorter than that, so are they intentionally shortened here, or is the actual format different? fulfillment_status isn’t included in this sample, so I didn’t check it. There also isn’t a unique Shopify-only order here, so the missing-from-fulfillment case hasn’t been tested yet.

Yes, please send the corrected small fictional sample first, with the intended full hash values, fulfillment_status, and one order that exists in Shopify but not in Shiprocket. I’ll rerun it locally and compare the output with the expected results before we try the larger file. Please keep it entirely fictional.

shopify_export.csv
order_id,billing_event_id,zip,fulfillment_status,transaction_hash
SHOP-101,BILL-101,492001,fulfilled,0x1111111111111111111111111111111111111111111111111111111111111111
SHOP-102,BILL-102,492002,fulfilled,0x2222222222222222222222222222222222222222222222222222222222222222
SHOP-103,BILL-103,492003,fulfilled,0x3333333333333333333333333333333333333333333333333333333333333333
SHOP-104,BILL-104,fulfilled,0x4444444444444444444444444444444444444444444444444444444444444444
SHOP-105,BILL-105,492005,fulfilled,0x5555555555555555555555555555555555555555555555555555555555555555
SHOP-105,BILL-105,492005,fulfilled,0x12345INVALID
SHOP-107,BILL-107,492007,unfulfilled,0x7777777777777777777777777777777777777777777777777777777777777777

shiprocket_export.csv
order_id,billing_event_id,zip,fulfillment_status,transaction_hash
SHOP-101,BILL-101,492001,fulfilled,0x1111111111111111111111111111111111111111111111111111111111111111
SHOP-102,BILL-102,492002,fulfilled,0x2222222222222222222222222222222222222222222222222222222222222222
SHOP-103,BILL-103,492003,fulfilled,0x3333333333333333333333333333333333333333333333333333333333333333
SHOP-104,BILL-104,492010,fulfilled,0x4444444444444444444444444444444444444444444444444444444444444444
SHOP-105,BILL-105,492005,fulfilled,0x5555555555555555555555555555555555555555555555555555555555555555
SHOP-106,BILL-106,492006,fulfilled,0x6666666666666666666666666666666666666666666666666666666666666666

Hi Vojtech, I’ve sent both corrected fictional CSV samples. They include fulfillment_status, full-length transaction hashes, the intentionally malformed hash, and Shopify-only order SHOP-107. The duplicate SHOP-105 rows are intentionally retained for review. Please let me know what the comparison output shows, and I’ll adjust anything needed before the 500-row test.

Thanks, I ran both files. The checker stopped on Shopify row 4: the header has five columns, but that row only has four values. I’m guessing the ZIP is meant to be blank, but I didn’t want to assume. With an empty ZIP field added in a separate local copy, it found the ZIP difference on SHOP-104, SHOP-107 only in Shopify, SHOP-106 only in Shiprocket, and the duplicate SHOP-105 rows for review. Can you confirm the missing ZIP is intentional and add the empty field? Then I’ll rerun it before we move on to 500 rows.

Yes, the missing ZIP on SHOP-104 is intentional. Thanks for catching the CSV formatting issue. The corrected row is:

SHOP-104,BILL-104,,fulfilled,0x4444444444444444444444444444444444444444444444444444444444444444

I’ll update the Shopify sample with the empty ZIP field and keep the five-column structure consistent. Please rerun the comparison, and if the output matches the expected results, we can proceed to the 500-row test.

Thanks, that fixed the CSV row. I reran the comparison: SHOP-104 shows the ZIP difference, SHOP-107 is only in Shopify, SHOP-106 only in Shiprocket, and SHOP-105 is duplicated (the second row also has the invalid hash). That matches what we expected. Send the fictional 500-row files over when they’re ready and I’ll try those next.

Hi Vojtech,

The fictional 500-row CSV test files are ready. Here are the two exports:

Both files contain 500 data rows and use the same five-column schema. The test cases include the intentional ZIP mismatch, missing orders on either side, a duplicate SHOP-0105 row, and an intentionally malformed transaction hash.

Please run the comparison and let me know whether the output matches the expected findings. Thanks!

Hi Shital, I ran the comparison on both 500-row files. The files have matching five-column schemas and no malformed rows. I found 497 unambiguous order-ID matches. A few items need clarification: SHOP-0105 appears twice in Shopify, and the second row has an invalid transaction hash (0x12345INVALID). The blank ZIP on SHOP-0104 differs from Shiprocket; I understand the blank is intentional. SHOP-0107 appears only in Shopify, while SHOP-0106 appears only in Shiprocket. There is also a SHOP-0501 row only in Shiprocket, which I wasn’t expecting—should that one be there? Once you confirm these points, I can send the detailed comparison.

Hi Vojtech, thanks for checking both files and identifying these cases.

Yes, SHOP-0501 is intended as an additional Shiprocket-only record to test detection of unexpected fulfillment-side orders.

To confirm the expected findings:

  • SHOP-0104: blank ZIP in Shopify versus 492104 in Shiprocket — intentional mismatch.

  • SHOP-0105: duplicate Shopify order ID, with the second row containing the invalid transaction hash 0x12345INVALID.

  • SHOP-0107: Shopify-only record.

  • SHOP-0106 and SHOP-0501: Shiprocket-only records.

Could you please send the detailed comparison report, including the changed fields, missing records, duplicate-ID handling, and invalid transaction-hash detection? I’d like to verify that ambiguous records are flagged for review rather than silently merged.

Thanks for testing the files!

Hi Shital, I reran the check with both files. They each have 500 data rows, the same five columns, and every row has five fields.

I found 497 order IDs that occur once in each file. The comparison found:

  • SHOP-0104: the ZIP is blank in Shopify and 492104 in Shiprocket (the intended mismatch).
  • SHOP-0107: only in Shopify.
  • SHOP-0106 and SHOP-0501: only in Shiprocket.
  • SHOP-0105: appears twice in Shopify, so I flagged the ID as ambiguous instead of pairing the rows automatically. The second row’s 0x12345INVALID hash fails the expected 0x plus 64 hexadecimal characters format.

These results match the cases you described. One small note: the clickable Shopify and Shiprocket links in the earlier post appear to be swapped; I identified the files from their contents. This checks the CSVs against the stated rules; it doesn’t verify any live payment or fulfillment event.

Thanks for rerunning the comparison and confirming the results. Good catch on the swapped links as well. Flagging SHOP-0105 as ambiguous rather than pairing it automatically is the right approach, and I appreciate the clarification that this validates the CSV data against the stated rules rather than live payment or fulfillment events.