Importing past records
You can import trainings completed before you moved to Defthand. This way the employee’s training history, compliance counts, expiry notifications and validity tracking also work with these records. An imported record is numbered and written to the personnel file without a certificate file.
Importing needs the permission to import training records; without it the page says “You may not import past records.”
Opening the page
Section titled “Opening the page”You reach the Import past records page from two places:
- the import link on the Training → Certificates page,
- the Go to the import link on the Training → Settings page.
The page has two tabs: One record and From a file. The Back to certificates link returns to the Certificates page.
One record
Section titled “One record”-
Open the One record tab.
-
Fill in the fields:
Field What to enter Employee code The employee’s employee code. Training The training to import. Completion date The day the training was completed. It cannot be a future date or a date before 2000. Initial or refresher Whether the training was taken for the first time or as a refresher. An OHS basic training is imported as initial, an OHS refresher training as refresher. Valid until The day the certificate ends. Leave it empty for no expiry. Required for OHS trainings; enter the end date on the certificate. -
Click the Import the record button. The message “The record was imported.” appears.
If the record cannot be imported, the reason is written under “The record could not be imported:”.
| Message | What it means |
|---|---|
| “Enter the employee code.” | Employee code is empty. |
| “Choose a training.” | Training is empty. |
| “Enter the completion date.” | Completion date is empty. |
| “The end of validity must be after the completion date.” | The dates are the wrong way round. |
From a file
Section titled “From a file”To import many records at once:
- Open the From a file tab.
- Get the sample file with Download a sample CSV and fill it in with your own data.
- Drag the file onto the Drop the file here or choose it. area, or choose it with Choose a file. It says “Chosen file: gecmis.csv”.
- The file is checked at once (“Checking the file…”) and a Preview appears: “120 rows: 115 to import, 3 already there, 2 with errors.”
- The preview table shows each row’s Line number, its Status (Ready, Already there or Has errors) and its Error, if any.
- Correct the rows with errors in the file and upload it again with Choose another file, or go on and skip them.
- Click the Import button (“Importing…”). Result: “115 records imported, 3 were already there, 2 had errors”.
The preview writes nothing; only Import brings records in. Rows with errors and rows that are already there are skipped. If the file has no row to import, it says “The file has no row to import.”
File format
Section titled “File format”- CSV (separated by commas or semicolons, UTF-8) or XLSX.
- At most 5000 rows and 4 MB.
- The first row is the header. Columns:
| Column | What to enter | Required |
|---|---|---|
employee_code |
The employee’s employee code | Yes |
course_code |
The training’s code | Yes |
completed_on |
The completion date | Yes |
kind |
ilk (initial) or tekrar (refresher) |
Yes |
valid_until |
The end of validity | Yes for OHS trainings |
Dates are written as dd.MM.yyyy (for example 14.03.2025) or yyyy-MM-dd (for example 2025-03-14).
Example:
employee_code;course_code;completed_on;kind;valid_untilS-1024;ISG-TEMEL;14.03.2025;ilk;14.03.2027S-1031;ISG-TEMEL;02.05.2024;ilk;02.05.2026S-1031;FORKLIFT;10.01.2025;ilk;File errors
Section titled “File errors”| Message | What to do |
|---|---|
| “The file cannot be larger than 4 MB.” | Split the file. |
| “The file has more than 5000 rows; split it.” | Split the file into several parts. |
| “The file could not be read: it must be a UTF-8 CSV or an XLSX whose header has employee_code, course_code, completed_on and kind.” | Check the header row and the encoding. In Excel, save it as “CSV UTF-8” or use XLSX. |
Row errors
Section titled “Row errors”| Error | What to do |
|---|---|
| “No employee has this code.” | Check the employee code. |
| “The employee’s employment has ended.” | The record of an employee who has left is not imported. |
| “No training has this code.” | Compare it with the training’s Code field; create the training if needed. |
| “The completion date is missing or not a date.” | Correct the date format. |
| “The completion date is in the future.” | Enter a past date. |
| “The completion date cannot be before 2000; check the year.” | Correct the year. |
| “The kind must be “ilk” (initial) or “tekrar” (refresher).” | Correct the kind column. |
| “An OHS basic training is imported as initial and an OHS refresher as refresher; the kind does not fit this training.” | Write the kind to match the training. |
| “The end of validity is not a date.” | Correct the date format. |
| “The end of validity must be after the completion date.” | Check the dates. |
| “An OHS training needs an end of validity; enter the end date on its certificate.” | Fill in the valid_until column. |
| “This record is already there; the row is skipped.” | For information; the same record is not imported twice. |
| “The cell is too long for this column.” | Shorten the value in the cell. |
How imported records appear
Section titled “How imported records appear”- On the Certificates page, the Source column says Import. There is no Verified badge and no PDF certificate; there is no QR verification page either.
- The record is numbered and, if the Personnel module is on, written to the personnel file.
- As the end of validity approaches, the employee gets expiry notifications, and the record appears on the Expiring certificates tab of the Compliance page.
- Because it has no workplace, it is not listed on the Compliance page while the Workplace filter is set. In OHS trainings no automatic renewal is opened; give the refresher training through an assignment.