Module 24 · Advanced · 9 min read

Cleansing and mapping the data

You will be able to: Profile and clean source data before import; Build a mapping workbook from source fields to Zeyto fields; Apply Zeyto's data rules when you prepare files.

  • Read not done yet
  • Self-check: not taken not done yet
  • Lesson complete not done yet

Data you load without cleaning becomes the client's problem for years. Cleansing is done by the client's data owners with your guidance; mapping is yours.

Cleansing steps

  1. Profile: count rows, blanks, duplicates and inactive records in each file.
  2. Standardise: names, phone formats, countries, units of measure, codes.
  3. De-duplicate: the same customer entered twice under different names, TRNs or phone numbers.
  4. Validate: TRNs, tax codes, units, credit terms, negative stock.
  5. Decide: records without activity in the agreed period stay in the archive.
  6. Freeze: once a file is signed off by its owner, changes go through you.
4,200 customers, 1,990 to loadA distributor's customer file has 4,200 rows. Profiling finds 310 duplicates and 1,900 inactive accounts with no balance and no activity for 24 months. Load count: 4,200 - 310 = 3,890; 3,890 - 1,900 = 1,990 customers. The 2,210 excluded rows are saved in the archive file with the reason for each.

The mapping workbook

Source fieldZeyto fieldTransformationCheckOwner
Customer nameNameTrim spaces, single spellingNo duplicates in fileSales manager
VAT numberTRNDigits only; empty if noneExactly 15 digitsAccountant
Credit daysCredit DaysNumberMatches payment termSales manager
Tax percent 5/0/exemptTax code SR5, ZR, EX, OOS or RCMMap by ruleEvery item has a codeAccountant
Unit 'Pcs', 'PC', 'Piece'UnitMap to one Zeyto unitUnit exists before itemsStorekeeper
Ledger balanceDebit or Credit amountSign rule agreed in writingTrial balance totals matchAccountant

Zeyto rules that affect your files

  • The Code column is the record's key. Do not change a code after it is loaded.
  • One TRN per business: duplicates of a TRN across customers must be resolved.
  • Amounts take 2 decimals, quantities 4, unit prices and costs 4, rates 6. A number with more decimals is rejected, never rounded for you.
  • Dates are written YYYY-MM-DD; day-first dates and Excel date cells are also accepted.
  • A group, unit, parent, tax code, account, party, item or warehouse that does not exist is rejected by name, so load the list it points at first.
  • CSV files in UTF-8 keep Arabic text correct. The old .xls format is not supported; save as .xlsx.
TipRun the profile again after cleansing and send the client a before-and-after count. It proves the work and builds trust.

Practise in the demo

  1. Create a mapping workbook with six rows for a customer file and add a check for each.
  2. Open Sales, then Customers in the demo and note which fields a customer record has, to compare with a source file.
  3. Open https://demo.zeyto.app/demo-app/ and sign in with the demo login. This is a public demo with sample data, so nothing you do there affects a real business.
Open the live demo

Public demo company, sign in as admin / demoAdmin123. Data refreshes nightly.

Key takeaways
  • Cleanse by profiling, standardising, de-duplicating, validating and deciding.
  • Map every source field to a Zeyto field with a rule, a check and an owner.
  • Zeyto rejects over-precise numbers rather than rounding them, and needs referenced lists loaded first.

Check yourself

3 questions on this lesson. Not timed, not the exam, and you can try again. Score 60% or more, and read the lesson, to complete it.

1. Which of these is a data cleansing task?

2. A quantity cell in your file has five decimals. What does the Import Center do?

3. A customer file has 4,200 rows, 310 duplicates and 1,900 inactive accounts with no balance. How many are loaded?

Practice questions for this module · Printable study sheet