1. Map columns and preserve identity
Define a bounded target and review each mapping before thinking about an import button.
Suggested first pass: forty-five minutes, including the worked example, exercise and self-check.
A business-data import is a controlled change to records, not just a way to open a file. Start with a target model, source owner, intended changes and a bounded set of records. Here the model is res.partner and the target is a fictional company with its contacts. No user, invoice, payment or stock operation belongs to this exercise. A learner can demonstrate the decisions on paper without receiving an internal account.
A display name is a label. Reference is useful business information, but mapping a column to Reference does not make it the importer matching key. Native import distinguishes External ID, represented by id, from Database ID, represented by .id. The latter is local to one database. Preserve a documented external ID when a source contact is renamed or its role changes. Do not guess that a familiar name will update the existing record or that numbers copied from another database identify the same entity.
MAP-01 specifies six source headers. Import Key maps to External ID; Display Name to Name; Reference to Reference; Role to Job Position; and Related Company Key to Related Company / External ID. Source Note is deliberately not imported. Read every suggested match, including the relationship subfield. Native conversion removes unmapped columns from the data it sends to the target model. This is a clearer way to leave a field out of this change than mapping an unwanted column and hoping its values will be ignored.
W-FILE-v1-R2 contains the name Academy Soren, Support. The CSV represents that entire name inside double quotes, so it still occupies one cell. Confirm UTF-8, comma separation, quoting and the header setting in the preview. Count six cells in each data row rather than counting raw comma characters. A malformed row or wrong delimiter can shift a value into the wrong field even when the header looks plausible.
A related-company external ID identifies an existing record of the expected model; it is not free text to turn into a new company. Load approved dependencies first or verify their documented bindings. The worksheet company already exists. The native lookup checks model identity and reports unmatched references under our options. Do not replace a missing ID with an arbitrary similarly named company. Preserve the source, mark a stop condition and ask its owner to resolve the relationship.
Work through the lesson
- Read COMMON-01, OPTIONS-01 and MAP-01; write the six-column map and an explicit ignored-column decision.
- Compare W-BEFORE-01 to the two CSV rows; mark one existing external ID and one new key.
- Parse the quoted name as one cell, and distinguish parent_id/id from name lookup or a local database row number.
Teaching evidence
- COMMON-01
- All names, IDs, counts, messages and UTC timestamps are fictional teaching evidence. W is a worked example dated 2027-01-04; I is the independent plan dated 2027-01-05. No actual server import has occurred. Target model res.partner; each row is an individual contact, linked to a pre-existing fictional company. Compare only the stated company/contact scope, not the whole database. No customer transactions, users, passwords, email, phone, tax, money, production data or external service is involved.
- OPTIONS-01
- Worksheet import settings: UTF-8 CSV; comma delimiter; double-quote quoting; header row present; one full batch/invocation; no row skipping or limit; no fallback values; no name-based related-record creation; no set-empty or skip-record options for missing references. The existing company is loaded before the contact file. An optional sandbox must verify installed importer behavior and its exact options before acting; no learner is asked to create code or call an API.
- MAP-01
- Header has six cells: Import Key,Display Name,Reference,Role,Related Company Key,Source Note. Review this mapping: Import Key -> External ID (id); Display Name -> Name (name); Reference -> Reference (ref); Role -> Job Position (function); Related Company Key -> Related Company / External ID (parent_id/id); Source Note -> Do not import (unmapped). Never map Import Key to Database ID (.id), Reference or Name. Source Note is fictional file provenance, not a target note/comment field.
- W-BEFORE-01
- At 2027-01-04T09:00:00Z, company __import__.academy_w_co has fictional database ID 4100 and name Academy W Learning Ltd. Two existing contacts: __import__.academy_w_mila -> 4101, name Academy Mila, ref W-MILA-01, function Dispatcher, parent company 4100, existing comment Keep W note; __import__.academy_w_tess -> 4102, name Academy Tess, ref W-TESS-02, function Analyst, parent 4100, existing comment Keep Tess note. No other contact is in W scope. IDs 4100/4101/4102 are worksheet facts, not numbers to force into a real sandbox.
- W-FILE-v1-R1
- First data row, in the six-column MAP-01 order: __import__.academy_w_mila,Academy Mila Revised,W-MILA-01,Training Coordinator,__import__.academy_w_co,revision 1. This intends an update to the existing Mila record, not a new contact.
- W-FILE-v1-R2
- Second data row: __import__.academy_w_soren,"Academy Soren, Support",W-SOREN-03,Workshop Contact,__import__.academy_w_co,new teaching contact. The quoted display-name cell contains one comma; the row still has six cells. Soren has no existing external ID in W-BEFORE-01.
Try it
Write W's mapping and intended update/create classification before consulting the worked apply result. Explain why Reference and Name are not substitutes for Import Key.
Self-check
- How many cells are in W-FILE-v1-R2, and which quoted cell contains a comma?
- Which mapping deliberately leaves the target comment field out of this import?
Write your reasoning before comparing it with the worked example. Use the cited records to explain a decision, rather than relying on a summary or confidence score.
Training method: fictional records and a text worksheet. No production ERP access, live marketplace or payment account, paid OCR call or external upload is required.