Docs / Sources

CSV

Import a CSV file or export folder with a column mapping that you review first.

Matches onEmails another source verified
HistoryOne snapshot per import
Also doesColumn proposals, export folders
You'll needA CSV file

Connection options

Both methods create a CSV source. Where the file is decides which one to use.

Upload from your browserSTART HERE

  • Works on a hosted workspace
  • Preview and edit the suggested columns first
  • Import a newer file into the same source later
  • One file at a time, up to 50 MB

File on the server

  • A single file or a folder holding a whole export
  • Repeatable with the same column plan
  • Self-hosted only: the file must already be in the server's import directory

Upload a CSV from your browser

  1. Choose the file

    1. Open Sources → Connect a source → CSV and select Choose a CSV →. You can also open Import a CSV from Members.
    2. Press Choose a CSV.
    3. Select the file.

    Your browser reads the file. It does not send anything yet.

  2. Accept the columns

    Check the suggested mapping and each column’s target. Press Use suggested mapping.

  3. Import the rows

    Under Import into Datum, keep A new CSV source, or choose an earlier upload source to import a newer file into it. Press Import rows. Your browser sends the rows in batches, and Datum imports them in the background.

  4. Check the result

    Select View the source →. The Runs tab lists the import. Check new accounts in Members, and uncertain matches in Review & merge.

An upload source has no Run now: there is no server file to read again. To import a newer file, repeat these steps and choose the source under Import into. The source’s Settings tab links there too.

Use a file on the server

This method is for self-hosted servers. A hosted workspace cannot place files on the server, so use the browser upload instead.

  1. Put the files on the server

    Copy the file or export folder into the server’s import directory. The default directory is /data/imports, unless your operator changed it. Name a file or folder inside it, not the directory itself. Imports through the app, REST, hosted MCP or queued jobs reject paths outside this directory.

    A direct terminal command already has database access and may read files outside the import directory. It still refuses the import directory itself and device files. CSV export subfolders remain supported. Use an in-directory path when you plan to enqueue the import.

  2. Open Sources

    1. Open Sources → Connect a source → CSV.
    2. Select Use a file already on the Datum server.
    3. Enter the path in CSV file or directory.
    4. Enter a known mapping in Catalogue mapping, such as commonroom-export or commonroom-upload.
    5. For a tab-separated file, enter \t in Field separator.
    6. Press Verify.

    Use Force a stream only when all files are the same kind, such as users. The headers must not identify the kind.

  3. Read the column report

    Verification reads up to 10,000 rows per file without importing records. It reports the proposed mapping, column assignments, confidence levels and unmatched headers. It also counts role addresses, rows without usable keys and repeated IDs.

  4. Accept the columns

    Without a named mapping, Datum requires a distinctive header that identifies a mapping. Common Room’s upload template contains one such required column.

    Set the mapping to auto to accept a proposal for another file. Datum saves that column plan on the connection for future imports:

    ocmgr connection update <connectionId> --config '{"mapping":"auto"}'
  5. Import

    Press Run now on the source’s page. From your terminal, a dry run checks the counts without saving records first:

    ocmgr ingest <connectionId> --dry-run
    ocmgr ingest <connectionId>
  6. Check the result

    Check new accounts in Members. Check uncertain matches in Review & merge.

To import a newer export, replace the files. You can also enter a new path under Import newer export on the source’s Settings tab. Then press Run now.

Data Datum imports

Members Whichever columns the mapping names: name, email, handle, title, company, location, profile links and an avatar URL
Activity Rows of an activity file, when the mapping has an activity stream, as a Common Room export does
Custom values Unmapped headers become custom values on the account
Not collected Datum uses only mapped columns as identity evidence

How CSV matches

CSV files report entered values without proving email ownership. Datum therefore treats CSV addresses as unverified. An address links automatically only when another source, such as Slack or Discourse, verifies the same address. Other possible matches enter your review queue, regardless of similarities between rows.

Datum retains role addresses such as info@, support@, team@ and noreply@ without verifying them. These addresses never link two people. Verify counts them before import.

Each file represents one snapshot without history. Import a newer file into the same source: rows with existing IDs update the same accounts.

Troubleshooting

“the files changed under a running import”

The folder’s file list changed during the import. Datum stops because resuming could skip or repeat rows. Restart from the beginning:

ocmgr ingest <connectionId> --cursor null

“No file or folder at … on the Datum server”

The path names nothing on the server. On a hosted workspace, upload the file from your browser instead. On a self-hosted server, copy the file into the import directory and check the path.

Datum imported no records

No mapping matched the header row. Verify lists the detected headers. Enter the mapping in Catalogue mapping, or accept the proposal with auto.

Rows with no usable key

These rows lack stable IDs and usable email addresses. Later imports cannot identify them reliably. Add a stable identifier column without role addresses if you will import the same people again.

From your terminal or agent

ocmgr connection setup csv --json
ocmgr connection create --kind csv \
  --config '{"path":"/data/imports/commonroom","mapping":"commonroom-export"}' --json
ocmgr connection verify <connectionId> --json
ocmgr ingest <connectionId> --dry-run --json

To propose columns from a local file, run ocmgr csv propose --file members.csv --json. Review the returned columns before saving them.

To send a local CSV to an upload source from a terminal, run ocmgr csv import <connectionId> --file members.csv. Call propose_csv_mapping with a file name, headers and optional sample rows to get the same suggested plan as the browser. Review the returned columns and available fields before saving. import_csv_batch echoes the plan it applies. A renamed file can reuse a source’s single plan when its headers match exactly.

Imports run asynchronously. A running worker processes batches immediately or on its next sweep, usually within a minute. Paused sources wait until resumed. Check ocmgr inbound list --connection <connectionId> --json for processing status. See From your agent.

Over REST and MCP, each batch of up to 1,000 rows is import_csv_batch; create the source with {"browserUpload":true,"columns":[…]}.

Run ocmgr connection setup csv to list this instance’s mappings. See create_connection and verify_connection for every parameter.

{"name":"run_backfill","arguments":{"id":"<connection-id>","dryRun":true,"pages":1}}

FAQ

Why didn't two rows with the same email merge?

Neither address has verification from another source. Matching addresses in CSV rows create review candidates rather than automatic merges. Entered addresses alone do not prove ownership.

Can I use my own mapping?

Yes. Place your mapping files in a folder within the import directory. Enter that folder in Catalogue directory.

Does a CSV import count towards hosted usage?

On the hosted service, you do not pay for the first complete CSV import. Later imports count only new rows. You do not pay for rows that you imported before. Pushes and webhooks count from their first event. See Billing and usage.