Import and export

Bring records in from CSV, Excel and map files, export them for other programs, undo an import and send exports on a schedule.

Monofield reads and writes the files your office and your GIS already use. This guide covers exporting records, importing them (new or as updates), undoing an import, scheduled exports and moving a whole team.

Formats

Format Export Import
CSV, Excel, GeoJSON Yes Yes
GeoPackage, KML, GPX, Shapefile (in a zip) Yes Yes
KMZ No Yes

You can also export records as a PDF (see PDF reports) and import a zip with photos for the records. Importing and exporting need a connection.

Export records

  1. Open the form’s More actions › Export records.
  2. Choose what is exported: All records of the form or The records of your view. If you selected records in the list, only those are exported. Monofield shows how many records, with a location and photos, will go in.
  3. Under Format, choose CSV, Excel or another format. For CSV you can pick the Separator. Map files are under GIS formats.
  4. Choose the Column names: Field labels (easy to read) or Data names (they stay the same when a label changes; use them for files that other programs read or that you import again).
  5. Turn on Include photos if you need them: you get a zip with a folder of photos for each record.
  6. Tap Export. When it is ready, download it. Files stay in Recent exports for 7 days.

For map files:

  • GeoPackage is one file with every record and a table for each repeatable group.
  • KML, GPX and Shapefile come as a zip with the map file and a CSV of every record. Records without a shape are only in the CSV.
  • Under Coordinate system, GeoPackage and Shapefile can be exported in WGS 84, ETRS89, Web Mercator or a UTM zone; KML and GPX only in WGS 84.
  • Shapefile keeps 254 characters per value; longer texts are whole in the CSV. GPX has no areas, so an area is exported as its outline.

Every role exports what it can see. The Viewer role exports PDFs only. Each export is recorded in the Audit log.

Import records

Importing is done in Monofield on the web, on a computer. Phones get the imported records at their next sync.

  1. Open the form’s More actions › Import records.
  2. File: tap Choose a file. Choose what you want to do: Create new records or Update existing records.
  3. Match fields: in Match columns to fields, pick the field each column fills, or Don’t import. A column can also give the Record location, or the Latitude and Longitude.
  4. To update, choose the Key column (a text or number field whose values identify each record), or the Record id (from an export). A record with the same key gets only the mapped fields updated; if there is none, a new record is created.
  5. If dates could be read either way, choose Day/month or Month/day. If a map file does not say its coordinate system, write its EPSG code (for example 25830); Monofield suggests systems that fit.
  6. Review: check how many records are new, updated, unchanged or have errors, the first rows as they will be saved, and the warnings. Values that are not options of a field can be added with Add these options in the form. For map files, look at where the data lands and tick I checked where the data lands.
  7. Tap Import, or Import valid rows to leave out the rows with errors. Download the list of errors gives you a file with the rows to fix.

Matching the columns of a file to the fields of a form

Tips:

  • Download a template gives an Excel file with a column for each field and how to fill it in.
  • Shapes in CSV or Excel are written as WKT, for example POINT (-3.7 40.4). Numbers accept a point or a comma for decimals.
  • Rows of repeatable groups can come in their own sheet or file, with a parent_id column saying which record each row belongs to.
  • A cell that looks like a spreadsheet formula is imported as text and never run.
  • Limits: CSV and Excel up to 20 MB, map files up to 100 MB. Free imports up to 5,000 rows at once, Team up to 100,000.

Undo an import

Every import is one batch you can undo.

  1. Open Import records and then Import history.
  2. Tap Undo next to the import and confirm Undo this import?.

The records it created go to the trash and the ones it updated get their previous values back. Records someone changed after the import are left as they are, and the list says so. If an import stopped before the end, Resume sends the rest.

Scheduled exports (Team plan)

To receive an export by email every day, week or month, create an automation with the trigger On a schedule and the action Email an export. It can send CSV, Excel, PDF or GeoJSON, to people in the team or to outside addresses. See Automations and notifications.

Export or bring in a whole team

The Owner can, on the web, open Team › Team settings and, under Team data, choose Export the whole team: one zip with every form and its records in CSV and GeoJSON, the history of each record, the comments and the lists, in open formats. Turn on Include photos and files to add them; a large team comes in several zip files.

Import a team’s export brings such an export into a team: its forms, records, photos, lists and comments. What the team already has is kept; nothing is overwritten or deleted, and importing again only adds what is missing.

Still stuck? Write to support@monofield.app