Import Data
This tutorial explains how to import households in bulk from a CSV file or via KoBoToolbox.
Import methods
PCH-SIG supports several import methods:
| Method | Source | Usage |
|---|---|---|
| CSV | Excel/CSV file | Manual import |
| KoBoToolbox | Mobile forms | Field collection |
| Survey Solutions | CAPI surveys | Large surveys |
CSV Import
Step 1: Download the template
- Go to Social Registry > Households
- Click Import
- Click Download template
- A template CSV file is downloaded
Step 2: Fill in the file
Open the template in Excel and fill in the columns:
| Column | Required | Example |
|---|---|---|
| region | Yes | Dakar |
| sector | Yes | Parcelles Assainies |
| municipality | Yes | Parcelles Assainies |
| locality | Yes | Unite 10 |
| area_type | Yes | Urban |
| head_name | Yes | Mamadou Diop |
| head_gender | No | M |
| head_age | No | 45 |
| head_phone | No | 771234567 |
| household_size | Yes | 5 |
| latitude | No | 14.6937 |
| longitude | No | -17.4441 |
Format
- Save in UTF-8 CSV format
- Use semicolon (;) as separator
- Do not modify column headers
Step 3: Import the file
- Click Import
- Select your CSV file
- Click Load
Step 4: Verify the preview
Before final import:
- Verify the first rows
- Check the number of records
- Correct reported errors
Step 5: Launch the import
- Click Import
- Wait for processing to complete
- Review the import report
Import report
The report indicates:
- Imported: Number of households created
- Skipped: Duplicates detected
- Errors: Rows with problems
KoBoToolbox Import
Initial configuration
- Go to Data > KoBoToolbox
- Click Configure
- Enter your KoBo credentials:
- Server URL
- API Token
Synchronize forms
- Click Synchronize
- The list of available forms is displayed
- Select the form to import
Import submissions
- Click on the form
- Select the period
- Click Import
New submissions are imported as households with "Pending" status.
Field mapping
Configure the correspondence between KoBo questions and PCH-SIG fields:
| KoBo Question | PCH-SIG Field |
|---|---|
| region | region |
| head_name | head_name |
| gps | latitude, longitude |
| ... | ... |
Survey Solutions Import
Synchronization
- Go to Data > Survey Solutions
- Configure connection to SUSO server
- Select the questionnaire
- Click Synchronize
Data validation
Before import, data goes through validation:
- Required field verification
- Duplicate detection
- Consistency check
Error handling
Common errors
| Error | Cause | Solution |
|---|---|---|
| "Unknown region" | Incorrect region name | Check spelling |
| "Duplicate detected" | Household already exists | Skip or merge |
| "Required field" | Missing value | Complete the field |
| "Invalid format" | Wrong data format | Correct the format |
Correct and re-import
- Download the error report
- Correct rows with errors
- Re-import only the corrected rows
Best practices
Before import
- Test with a small sample
- Verify file format
- Save the original file
After import
- Verify some random households
- Run duplicate detection
- Validate imported households