EXPORT
RESCUE.

THE CSV REPAIR DESK
BY TIDEMARK WORKS

REQUEST A QUOTE ↗
01 / FIVE-FILE DEMOSALES, PAYMENTS & RETURNS

FIVE FILES.
ONE VIEW.

Web, marketplace and point of sale orders arrive with separate payment and return files. We join them, reconcile the amounts and give the unresolved records their own list.

5CSV FILES
34SOURCE ROWS
10MATCHED ORDERS
3ORDERS TO REVIEW
02 / INPUTSFIVE DIFFERENT LAYOUTS

THE FILES
WE START WITH.

Order IDs have different casing and spacing. Dates and money formats vary. One order has two totals; a payment appears twice; a return points to an order missing from the exports.

Web orders

web_orders.csv / 7 rows
Order #Placed atTotalCCYState
#w-101 09/03/2026$120.00usdPaid
W-10209/04/2026$80.00USDPaid
W-10309/04/2026$50.00usdPaid
W-10309/04/2026$50.00usdPaid
W-10409/05/2026$70.00USDPaid
W-10509/05/2026$39.99USDPaid
W-10609/06/2026$25.00USDPaid

Marketplace orders

marketplace_orders.csv / 5 rows
refdaygrosscurrencystate
M-20103 Sep 202640.00USDcompleted
m-202 04 Sep 2026$75.00usdcompleted
M-20304 Sep 2026CA$60.00CADcompleted
M-20405 Sep 202630.00USDcompleted
M-20405 Sep 202635.00USDcompleted

Point of sale orders

pos_orders.csv / 3 rows
ticketsale_datepaid_totalcurrency
P-3012026.09.0418.50USD
P-3022026.09.0522.00USD
P-3032026.09.0615.00USD

Payment activity

payments.csv / 16 rows
transactionorder_refdatechargedcurrency
PAY-001w-1012026-09-03120.00USD
PAY-002W-1022026-09-0450.00USD
PAY-003W-1022026-09-0430.00USD
PAY-004W-1032026-09-0450.00USD
PAY-005W-1042026-09-0570.00USD
PAY-006W-1052026-09-0539.99USD
PAY-007W-1062026-09-0625.00USD
PAY-008M-2012026-09-0340.00USD
PAY-009M-2022026-09-0475.00USD
PAY-010M-2032026-09-0460.00CAD
PAY-011M-2042026-09-0530.00USD
PAY-012P-3012026-09-0418.50USD
PAY-013P-3022026-09-0520.00USD
PAY-014X-9992026-09-0612.00USD
PAY-008M-2012026-09-0340.00USD
PAY-016P-3032026-09-0618,O0USD

Returns

returns.csv / 3 rows
return_reforder_refrefundcurrency
R-01W-103$20.00USD
R-02m-20210.00USD
R-03X-9995.00USD

34 ROWS ACROSS FIVE FILES · SOURCE ROWS STAY TRACEABLE BY FILE AND ROW NUMBER

03 / WORKHOW THE FILES COME TOGETHER

ONE ORDER
VIEW.

We agree on the order key and source formats, then apply the same rules across the files.

01

Match the orders

Map three order layouts to one set of fields and standardize dates, IDs and amounts.

02

Join the money

Attach charges and refunds to each order. Two payments for W-102 add to its $80 total.

03

Separate the problems

Set exact duplicates aside and hold conflicting totals, unmatched activity and invalid amounts for review.

04 / OUTPUTRECONCILED ORDERS

THE FILE
YOU CAN USE.

Ten orders have matching charges. Refunds sit beside their orders. Each row carries its source filename.

Order IDDateSourceOrder totalCurrencyChargesRefundsCharges less refunds
M-2012026-09-03marketplace_orders.csv40.00USD40.000.0040.00
M-2022026-09-04marketplace_orders.csv75.00USD75.0010.0065.00
M-2032026-09-04marketplace_orders.csv60.00CAD60.000.0060.00
P-3012026-09-04pos_orders.csv18.50USD18.500.0018.50
W-1012026-09-03web_orders.csv120.00USD120.000.00120.00
W-1022026-09-04web_orders.csv80.00USD80.000.0080.00
W-1032026-09-04web_orders.csv50.00USD50.0020.0030.00
W-1042026-09-05web_orders.csv70.00USD70.000.0070.00
W-1052026-09-05web_orders.csv39.99USD39.990.0039.99
W-1062026-09-06web_orders.csv25.00USD25.000.0025.00

DOWNLOAD THE CLEAN CSV ↗

13 DISTINCT ORDERS = 10 MATCHED + 3 HELD FOR REVIEW

05 / REVIEWEXACT SOURCE LOCATIONS

WHAT NEEDS
A DECISION.

Six items need a closer look. The three affected orders stay out of the reconciled file until their amounts are clear.

FileRowOrder IDWhat needs checking
payments.csv15X-999payment has no matching order
payments.csv17P-303payment amount 18,O0 needs checking
returns.csv4X-999refund has no matching order
marketplace_orders.csv5, 6M-204two order totals; confirm the correct one
pos_orders.csv3P-302order and payment totals differ
pos_orders.csv4P-303payment needs checking

DOWNLOAD THE REVIEW LIST ↗

TWO EXACT DUPLICATE ROWS SET ASIDE: payments.csv row 16 repeats row 9; web_orders.csv row 5 repeats row 4.

06 / TOTALSMATCHED ORDERS ONLY

TOTALS BY
CURRENCY.

Charges and refunds from the ten matched orders add up separately by currency.

USD 488.499 MATCHED ORDERS · 518.49 CHARGES · 30.00 REFUNDS
CAD 60.001 MATCHED ORDER · 60.00 CHARGES · 0.00 REFUNDS
07 / SIZE CHECKLOCAL PROCESSING TEST

BUILT FOR
BIG FILES.

We ran the same kind of file join on five generated CSVs with 1,000,000 source rows. The test matched 450,000 orders, separated 50,000 repeated payment rows and attached 50,000 refunds.

1,000,000ROWS ACROSS FIVE CSV FILES

Local test result: 450,000 matched orders, with counts and amounts checked after the join.

08 / YOUR FILESONE CLEAR SCOPE

GOT A DATA
PILE?

Tell us how many files you have and what the finished dataset should look like. We’ll confirm the rules, price and delivery date.

REQUEST A QUOTE ↗