What you will learn
- Build an explicit CSV column-to-field map, distinguishing display names, business references, external IDs and database IDs.
- Use model and relationship evidence to classify existing-record updates, new records, missing references and potential business duplicates.
- Explain the native Test/dry-run transaction boundary without treating it as permission to test in production or a guarantee against external effects.
- Prepare a corrected import plan, forecast initial and repeated results, and specify post-import evidence without deleting history or inventing a completed run.
Before you begin
- Read a small table and count records. No programming, database administrator role, spreadsheet subscription or prior import experience is required.
- Use a text editor or paper and an Academy learner account for progress, examination and submission. Learner registration does not grant a commercial ERP operator account or import permissions.
- All facts are supplied inline. The default activity is a worksheet; a demonstration is optional and requires a separately authorized disposable sandbox, suitable native permissions and disabled outbound integrations.
Plan your study
Plan six hours: three hours across the four guided lessons and self-checks, two hours for the independent worksheet and self-review, fifteen minutes of examination preparation and a forty-five-minute examination.
The three-hour first pass includes pauses to map columns, compare the worked ledger and answer self-checks. It is a study budget, not a claim that reading the text alone takes three hours or a timer proving attendance.
| Activity | Minutes |
|---|---|
| Lesson 1: identity, scope, mapping and self-check | 45 |
| Lesson 2: Test results, transaction boundaries and self-check | 45 |
| Lesson 3: worked import, repetition and evidence | 45 |
| Lesson 4: independent corrected plan and review | 45 |
| Independent practical and self-review | 120 |
| Examination preparation | 15 |
| Knowledge examination | 45 |
Course outline
011. Map columns and preserve identity
Define a bounded target and review each mapping before thinking about an import button.
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.
- 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.
Worked example and source facts
- 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?
022. Interpret Test results and stop safely
Separate validation evidence, durable business changes and effects a database rollback cannot reverse.
The native importer first converts selected columns, parses supported field types and resolves relationships. It then calls the target model's load operation. Validation is more than checking the CSV syntax: required fields, model constraints, permissions and reference resolution can reject a row. A well-formed file is therefore necessary but not sufficient. Review warnings and errors with their row/field context and keep the exact file and mapping version with the result.
Native execute_import with dryrun enabled performs import operations and validations, then rolls back the import savepoint and clears affected caches. Test is not a pretend parser that never reaches create or write logic. In W-TEST-01, hypothetical returned IDs include the existing contact and a tentative new record, yet the durable business records remain at their before-state. Do not turn a returned ID into a saved-contact claim. Sequence allocation can leave gaps, so a later real creation need not receive the tentative number.
- Explain W-TEST-01 using before-state, tentative IDs and the rollback boundary; do not claim a saved Soren contact.
- List what a Test result cannot prove: correct business identity, harmless external effects and completion of later apply steps.
- Read I-TEST-v1-01 and identify the relationship error separately from the changed-key business-duplicate risk.
Worked example and source facts
- 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.
- W-TEST-01
- Given simulated Test at 2027-01-04T09:10:00Z: no import errors are reported for W-FILE-v1 under MAP-01/OPTIONS-01. Its hypothetical returned IDs include existing 4101 and tentative 4103, but the Test rolls back the imported business writes. Durable W state remains two contacts plus one company, Mila unchanged, and no Soren external-ID binding. A tentative ID is not proof of a saved record; database sequence gaps and saved mapping metadata can still occur.
- I-INTENT-01
- The fictional source owner requests updates to the EXISTING Nova and Orin contacts and creation of ONE new Pax contact, preserving existing external IDs and the existing company relation. Intended final names/roles: Academy Nova Revised / Review Coordinator; Academy Orin / Training Buyer; Academy Pax, Training / Workshop Contact. Existing references remain I-NOVA-01 and I-ORIN-02; Pax reference is I-PAX-03. Existing Nova/Orin comments must be retained; Source Note is not to be imported. Proposed application needs reviewer approval; none is supplied.
- I-FILE-v1-R2
- Draft row two: __import__.academy_i_orin_new,Academy Orin,I-ORIN-02,Training Buyer,__import__.academy_i_co,planned existing-contact update. Its external ID differs from the existing Orin binding even though name and Reference resemble it. A native-valid new external ID does not prove that creating this contact is the correct business action.
- I-FILE-v1-R3
- Draft row three: __import__.academy_i_pax,"Academy Pax, Training",I-PAX-03,Workshop Contact,__import__.academy_i_co_typo,planned new teaching contact. The parent-company key has no matching record in the supplied target ledger. Name creation, skip-record and set-empty options are disabled for this case.
- I-TEST-v1-01
- Given simulated Test at 2027-01-05T08:15:00Z reports a missing Related Company / External ID for draft row three under OPTIONS-01. For this one full invocation, the importer reports an error and no durable imported business-record changes: I still has two contacts plus one company, with the original listed values. The report does not establish that row two expresses the correct business intent. No successful apply, revised Test result, approval or new native ID is supplied; do not invent one.
- SOURCE-01
- Source inspection supports field mapping, external/database ID distinctions, model-bound related-record lookup, import savepoints and existing-ID updates. Native base_import.import requires internal-user access and target-model rights; portal learning does not confer it. Test executes model logic before rollback, and the importer can save column-mapping metadata after that rollback. Local evidence paths in sources are relative to the native application installation root; no source file or production access is needed to complete the worksheet.
Try it
Write a stop/review checklist for a missing relationship, an unexpected new key and an apparent success without identity comparison. Use only simulated evidence.
Self-check
- Does W's tentative new record ID prove persistence after Test?
- What extra scope evidence is needed before treating several import requests as one rollback boundary?
033. Worked example: apply, repeat and reconcile
Use W's supplied simulation to distinguish record matches, business values and audited import activity.
W begins with one company and two contacts, not three contacts. W-FILE-v1 contains two intended contact rows: one matches Mila's existing external ID, and one introduces Soren's new key. W-TEST-01 reports no import errors but does not save either business change. W-APPROVAL-01 is a separate simulated approval for that exact file, map and options. Validation and authorization answer different questions, so keep both references in the evidence chain.
The supplied W-APPLY-01 result leaves Mila at database ID 4101 while changing its name to Academy Mila Revised and its job position to Training Coordinator. Reference W-MILA-01 and the existing company relation remain. Soren is a new contact with the quoted comma-containing name, reference W-SOREN-03 and job position Workshop Contact. Its supplied actual-apply ID is 4104, not the rolled-back tentative 4103. These row numbers are fictional ledger facts; in an authorized sandbox record the real generated IDs instead of forcing these values.
- Make a W table: before, Test, approved apply and repeat; include contacts, company and durable-state status.
- Show first-apply matching/update and creation counts, then repeat existing-match and creation counts using external IDs.
- Explain preserved identity versus changed names, a tentative versus persistent ID, and unchanged values versus zero writes.
Worked example and source facts
- 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.
- W-TEST-01
- Given simulated Test at 2027-01-04T09:10:00Z: no import errors are reported for W-FILE-v1 under MAP-01/OPTIONS-01. Its hypothetical returned IDs include existing 4101 and tentative 4103, but the Test rolls back the imported business writes. Durable W state remains two contacts plus one company, Mila unchanged, and no Soren external-ID binding. A tentative ID is not proof of a saved record; database sequence gaps and saved mapping metadata can still occur.
- W-APPROVAL-01 / W-APPLY-01
- Given simulated reviewer approval at 2027-01-04T09:20:00Z covers exactly W-FILE-v1, MAP-01 and OPTIONS-01. Given simulated completed apply at 09:25:00Z: Mila still resolves to 4101, now name Academy Mila Revised and function Training Coordinator; its ref, parent and existing comment remain as stated. Soren resolves to newly allocated fictional 4104 with the row-two name/ref/function/parent. Tess and the company remain as stated. Scope is three contacts plus one company. No other import or business action exists.
- W-REPEAT-01
- Given simulated replay at 2027-01-04T09:30:00Z of the unchanged file, same six-column map, same model/database and same external IDs: two rows resolve to existing contacts 4101/4104, zero new contacts, and the same three-contact scope and listed business values. Native update calls, audit stamps or configured hooks may still execute; do not describe this as zero writes or a universal exactly-once guarantee.
- EVIDENCE-01
- For a worksheet, label corrected file v2, mapping, outcomes and repeat results as PROPOSED/EXPECTED, not observed or executed. A later authorized sandbox operator would record the actual file version/digest, row count, model, mapping/options, target snapshot, full Test messages, reviewer approval, apply result, external-ID resolution and after/repeat comparisons. File versions such as W-FILE-v1/I-FILE-v2 are classroom labels, not cryptographic hashes. No screenshot or live run is required for this course.
Try it
Reconcile the complete W evidence chain without inventing a third CSV row, a new company or an extra successful import.
Self-check
- What are W's contact/company totals after Test and after the completed apply?
- Does matching two update paths on replay mean two business values necessarily changed?
044. Independent worksheet: a corrected import plan
Resolve I's two different problems and forecast repeat results without claiming a real import occurred.
Use independent case I, not W's contacts or counts. All inputs are printed here and repeated in the source pack below. The initial company is __import__.academy_i_co, fictional database ID 5100, Academy I Learning Ltd. Two contacts exist: Nova (__import__.academy_i_nova, 5101, Academy Nova, I-NOVA-01, Scheduler, parent 5100, comment Keep Nova note) and Orin (__import__.academy_i_orin, 5102, Academy Orin, I-ORIN-02, Buyer, parent 5100, comment Keep Orin note). No other I contact or company alias is supplied.
The source owner requests updates to those two existing contacts and one new Pax contact. Desired names/job positions are Academy Nova Revised / Review Coordinator; Academy Orin / Training Buyer; and Academy Pax, Training / Workshop Contact. References are I-NOVA-01, I-ORIN-02 and I-PAX-03 respectively. All link to the existing company, and existing notes must remain. The six CSV columns and mapping are Import Key->id, Display Name->name, Reference->ref, Role->function, Related Company Key->parent_id/id, Source Note->unmapped.
- Compare I source intent to the target ledger and all three draft rows, then document both issues.
- Write the complete corrected v2 CSV/mapping and forecast first/repeat classifications, scoped totals and listed values as expected, not observed.
- Specify renewed Test/approval and evidence requirements; self-review all four criteria and note length before submitting.
Try it
Deliver I's complete independent import plan and corrected file. Explain what the supplied Test establishes and what still needs checking, without performing or claiming any real action.
Self-check
- Which supplied record is the stable target for the intended Orin update?
- What must remain labeled expected because I provides no completed corrected import?
Your practical assignment
Complete independent I as a text worksheet. Produce the six-column mapping, identity review, corrected three-row file v2, validation stop conditions, expected first/repeated results and an evidence/approval plan. All inputs are inline; no upload, API, real import or production access is required.
Assessment
Complete all four lessons, answer at least eight of ten single-choice questions correctly (80%) in the native knowledge examination within forty-five minutes (up to three counted attempts), and pass an independent practical review across all four rubric dimensions. An examination pass alone does not issue an Associate certificate. Use the supplied fictional worksheet; neither a live sandbox nor paid service is required.
Use synthetic data in an approved training environment. Access to a commercial ERP database is not included with course registration.
