Prepare a supplier CSV and check it before shop import
Put a four-row supplier sample through Table Cleaner and Import Mapping. The dry run shows which rows are ready and which one lacks a required field.
Prepare the source file and the shop template
The fictional supplier data has four data rows. Product codes are identifiers. Stock is a number. The shop template expects sku, name and stock in that order.
supplier_id,product_name,quantity
00107, Cable 2 m ,12
00107, Cable 2 m ,12
00108,,5
00109,Adapter,0Accept only verified changes in Table Cleaner
Open the CSV in the table cleaner. Check the exact duplicate with identifier 00107 and remove one copy. For the remaining row, approve only the verified trimming of spaces around the name. The approved preview has three data rows. Inspect the exported text to confirm that 00107 and 00108 keep their leading zeros. Leave the product name for 00108 empty at this stage.
Validate against the shop template in Import Mapping
Load the cleaned file as the source and the shop template as the target. Map supplier_id to sku, product_name to name and quantity to stock. The documented target template can mark sku and name as required:text and stock as required:number. Confirm that 00108 has a missing required value. The stock for 00109 is the supplied value of 0.
Check the approved export in the shop
Fill in the missing name from the supplier's confirmation or set the row aside. When one identifier appears with different values, review the conflict before importing. Table Cleaner can identify exact duplicate rows. Approve the corrected export, then check row count, column order and codes in the shop's test import. Check zero stock separately. The saved mapping profile saves time on the next import with the same template.
Джерела
- W3C: tabular data model and CSV headers (www.w3.org)