CSV Import & Export
How to prepare a spreadsheet, import it into DistrictMapper, export for round-trip editing, and fix common CSV errors for schools, programs, bond projects, and social media accounts.
What you can import and export
DistrictMapper supports CSV import and export for four record types:
| Record type | Where to find it in the app |
|---|---|
| Schools | SchoolBuilder > Schools |
| Programs | ProgramDirectory |
| Bond projects | BondTracker |
| Social media accounts | SchoolBuilder > Social Directory |
The round-trip pattern
The recommended workflow is:
- Export your existing records as a CSV — this gives you the exact column headers in the exact format the app expects.
- Edit the file in your spreadsheet tool (Excel, Google Sheets, Numbers).
- Re-upload the edited file. Rows that have an
idvalue are updated; rows with a blankidare created as new records.
This pattern means you never have to guess the column names — the export is the template.
Social media accounts work the same way with one difference: the file has no id column. A row is matched to a saved account by its organization, platform, and profile link. See Social Directory CSV columns below.
What a blank cell does
This section describes the schools and programs files. The Social Directory file differs in two columns: a blank published or sort_order cell keeps what is saved. See Social Directory CSV columns below.
In an update row, a blank cell almost never means “leave this one alone”. For most columns it means erase this, and for some it means put this back to the default — which looks like nothing happened at all. (The exception is name: a row that carries an id but an empty name keeps the name already on the record, so you cannot accidentally leave a school nameless.)
Most columns: blank erases the value. For an existing record, an export you took before an import lets you restore earlier values by ID. It is also the most common way data disappears: a colleague hands back a slim sheet of names and phone numbers, and every other column in it is empty.
Some columns: blank restores the default. seat_availability goes back to open, family_visibility to auto, book_tour_mode to custom, and sort_order to 0. Nothing ends up empty, which is exactly what makes these easy to miss — the same slim sheet that wipes your map pins also republishes an at-capacity campus to families as Open, turns a DistrictMapper tour link into a custom one pointing nowhere, and pulls a school to the front of every list by zeroing its sort_order. Blank that column across the whole file and the order you arranged your schools in becomes plain alphabetical. Trust the preview’s reset list over any list in this article: it names the resets it actually found, row by row.
Three things protect you:
- The preview counts the rows that erase a saved value and names the fields, one row at a time: “Row 4 clears Map pin, Photo.”
- Resets are counted and listed separately, with the old value quoted: Row 4 resets Seat availability to “open” (was “at_capacity”). They are kept apart from the clears because a reset field still holds a value — it is just no longer the one you chose.
- Choose Download backup before applying. If you need to restore fields on existing records, review the original rows and check for more recent edits before re-importing them. New records created by the import remain and need separate review.
Both lists stay on screen in the summary after the import runs, so you can still see what happened. The Download backup button does not: it belongs to the preview, because an export taken after an import would only capture what the import left behind.
Columns you leave out of the file entirely are untouched — neither erased nor reset. Only columns that are present and empty change anything, so a sheet with just id, name and phone is safe.
Downloading a blank template
If you are starting from scratch and have no existing records to export, use the Blank template button in the Import dialog. The template includes the correct headers and a few example rows showing the expected format.
When you are updating records that already exist, start from Export CSV instead: the template’s example rows carry no id, so every row in it is a new record.
Schools CSV columns
Key columns for the schools import:
| Column | Notes |
|---|---|
id |
Leave blank to create; include to update an existing school |
name |
Required for every row |
type |
e.g. Elementary, Middle School, High School |
grades |
Free-form label shown to families, e.g. PK-5, 6-8, 9-12 |
grade_low, grade_high |
The same range as two separate values, e.g. PK and 5. SchoolMap reads only these two to decide a school’s level and pin color — a school with neither is treated as an administrative building — and they count, alongside grades, toward family_visibility: auto |
address_line1, city, state, zip |
Street address fields |
lat, lng |
Decimal degrees. Supply them and they are used as-is; leave them out and the import looks the pin up from the street address |
principal, principal_email, phone |
Contact fields. principal_email is kept for your records and is not shown to families |
registrar, registrar_email |
The registrar’s name and email, shown to families on school cards. registrar_email must be one plain address; a cell that isn’t is flagged in the preview and the school keeps the address it had. Files without these columns import as before |
enrollment |
Integer |
seat_availability |
One of: open, filling_up, at_capacity, waitlist_open. A blank cell means open |
family_visibility |
One of: auto, show, hide — whether the school appears in the family-facing tools (SchoolCompare, TourBook, the directories). auto decides from the type and grade range; SchoolMap shows every school either way. A blank cell means auto |
book_tour_mode |
custom uses book_tour_url as entered; builtin sends families to your DistrictMapper TourBook page and needs an active TourBook license — rows that switch it on without one are blocked. A blank cell means custom |
book_tour_url |
The tour link used when book_tour_mode is custom |
photo_url, photo_alt |
URL to an existing photo; alt text for accessibility |
sort_order |
Whole number; schools sort lowest-first, then by name, in the builder list and in the family-facing feeds. A blank cell means 0 |
Note: Programs are edited in ProgramDirectory; growth outcomes and a photo’s focal point are edited on the school’s own page — growth outcomes below the form, the focal point right under the photo (see Using the Image Focus Picker). None of the three are in the schools CSV, and no import can change them.
Coordinates and geocoding
You do not need decimal coordinates to import a facilities spreadsheet. When a school row has a street address (address_line1, plus whatever you have of city, state, zip) and no lat/lng, the import looks the address up and places the pin for you.
Those rows are flagged, not filed away: the preview and the result summary both list them as “Row 6 had no lat/lng, so the pin was placed from the address”, so you can open each school and check the pin. A looked-up pin is a good starting point, not a survey.
Two cases it deliberately leaves alone:
- A city with no street address. The lookup is skipped rather than dropping the school on the middle of town, and the row imports without a pin.
- A pin you are clearing. If a school already has coordinates and your file has empty
lat/lngcells, that is a clear — see What a blank cell does above — not an invitation to look the address up again.
Very large files are capped at 60 address lookups per import; rows past that import without a pin. Split the file, or paste in the coordinates you already have.
Programs CSV columns
Key columns for the programs import:
| Column | Notes |
|---|---|
id |
Leave blank to create; include to update |
name |
Required |
level |
Comma-separated, e.g. Elementary,Intermediate |
grade_level |
Comma-separated grades, e.g. 6,7,8 or range like 9-12 |
schools |
Semicolon-separated school names that offer this program, e.g. Lincoln Elementary; Washington Middle |
featured |
true or false |
layout |
classic, feature or story. A blank cell means classic; any other word is flagged in the preview and the program keeps its layout |
video_url |
One YouTube or Vimeo video link. A link to any other site is flagged in the preview and the program keeps its video. A blank cell removes the video |
video_title |
Short title for the video, read by screen readers. Cleared when the program has no video |
highlight1_title, highlight1_body … highlight6_* |
Highlights & accolades, up to 6 |
benefit1_title, benefit1_body … benefit6_* |
Benefits & outcomes, up to 6 |
step1_title, step1_body … step6_* |
How to enroll steps, up to 6 |
section1_title, section1_body … section12_* |
Extra sections, up to 12 |
The numbered columns work as one block per list. If the sheet has any column of a list, that list is rebuilt from the row in number order, skipping items whose title and body are both blank; a row with all of them blank clears the list. If the sheet has none of a list’s columns, the list is left alone. A row with more items than the limit is flagged in the preview and keeps its saved list. The photo focal point is the only program field the CSV doesn’t carry.
Bond projects CSV columns
Key columns for the projects import:
| Column | Notes |
|---|---|
id |
Leave blank to create; include to update |
title |
Required |
category |
One of: new_construction, renovation, hvac, roofing, safety, technology, athletics, fine_arts, transportation, land, other |
status_phase |
One of: planning, design, bidding, awarded, construction, substantially_complete, complete, on_hold |
progress_pct |
0–100 integer |
schools |
Semicolon-separated school names; leave blank for district-wide projects |
is_published |
true or false |
Social Directory CSV columns
Each row is one social media account. The import adds accounts and updates the ones a row matches; it never deletes an account or an organization.
| Column | Notes |
|---|---|
owner_kind |
district, school, or other (a department, program, or similar). Blank is worked out from owner_name |
owner_name |
The school’s name as it appears in SchoolBuilder, or the other organization’s name. Leave blank for the district |
school_id |
Filled in by the export; optional when the school’s name is given. It takes priority over owner_name, so clear it on a row you copy for a different school |
school_type |
Filled in by the export for your reference; ignored on import |
category |
Directory category. Blank, or the organization’s own category, uses the organization’s category |
platform |
A built-in platform such as facebook, instagram, x, or youtube, or custom with a platform_label |
platform_label |
The platform’s name, only for a custom platform |
profile_url |
Required. The full profile link, beginning with https:// |
handle, label |
Optional. A blank cell erases the saved value, and the preview names those rows |
published |
yes or no. Blank keeps the saved setting; a new account stays hidden |
sort_order |
Whole number. Blank keeps the saved order |
- A row with the same organization, platform, and profile link as a saved account updates it. Any other row adds an account.
- If
owner_nameis the name of a different school or organization thanschool_idorowner_kindpoints to, the preview flags the row and it is not imported. - A school that isn’t found is never created: the preview flags the row. An
otherorganization that isn’t in the directory yet is created, and the preview lists each one before you apply. - Columns you leave out of the file are not changed.
- Re-uploading a file from Export CSV without editing it changes nothing. The preview shows those rows as unchanged.
See Social Directory for the full steps.
Import results
After a successful import, the app shows a summary: X created, Y updated, Z skipped. Rows are skipped when they have neither an id nor a name (or title for projects). In the Social Directory, a row needs a platform and a profile_url.
If a row cannot be processed, the import still completes for the other rows — check the result count and compare it against your file if numbers seem off.
Common errors
“No rows with an id or name found. Check the header row.” The first row of your CSV must be the header row with the exact column names. If you accidentally deleted the header row or the file uses different column names, the parser cannot map the data. Re-export a fresh template and copy your data into it.
“No account rows found.”
The Social Directory import looks for the column names in the first row, including platform and profile_url. Start from Export CSV or the Blank template on the Social Directory page and copy your data into it.
The upload dialog says it’s a CSV but the data looks wrong
Make sure the file is saved as plain CSV (comma-separated), not as an Excel .xlsx or tab-separated .tsv file. In Excel: File > Save As > CSV UTF-8.
Coordinates are wrong after import
Check that your lat and lng columns use decimal degrees (e.g. 30.0166, −95.5755) and that the minus sign is a standard hyphen, not an em dash.
A school’s programs are not updated by the schools CSV
Programs are linked through the programs CSV schools column, not through the schools CSV. Edit program–school links in the programs import or in the program editor.
Related articles
- Placing Schools & Locations (the Locator) — setting coordinates for accurate map placement
- SchoolMap settings — controlling what the map shows after your schools are imported