Skip to content

Record Data CSV Import

Record Data CSV Import — Column Reference and Format Guide

Article ID RC-IMP-04 — Record Data CSV Import — Column Reference and Format Guide
Domain Data Import
Applies To All REDCap project types
Prerequisite RC-IMP-01 — Data Import Overview; RC-IMP-03 — CSV Upload Reference: All Bulk Upload Options in REDCap
Skill Level Intermediate
Version 1.0
Last Updated 2026-05-07
Author See KB-SOURCE-ATTESTATION.md
Related Topics RC-IMP-01 — Data Import Overview; RC-IMP-03 — CSV Upload Reference: All Bulk Upload Options in REDCap; RC-LONG-01 — Longitudinal Project Setup; RC-LONG-02 — Repeated Instruments & Events Setup; RC-API-03 — Import Records API

1. Overview

The REDCap Data Import Tool accepts a CSV file containing participant record data. Any REDCap data export in CSV format can be re-imported into the same project as-is. Partial imports — covering specific fields, specific records, or specific events — are also fully supported.

Location: Applications → Data Import Tool.

Upload behavior: Additive by default — blank cells in the import file are ignored and existing values are preserved. An optional setting ("Overwrite data with blank values") can be enabled to erase existing values with blank cells.

Important: Clicking "Upload File" only stages a preview. The data is not saved until you scroll down and click Import Data on the results screen. Navigating away after "Upload File" discards the staged import without saving anything.

For a general overview of the Data Import Tool workflow, see RC-IMP-01 — Data Import Overview, Sections 8 and 9.


2. Column Reference

Every record data CSV — whether built from scratch or downloaded from REDCap — uses the same set of column types. The columns below appear in the order REDCap places them in a standard export.

Column Required? Notes
record_id (or project-specific name) Always First column. The variable name must match the project's Record ID field exactly (e.g., participant_id, patient_id).
redcap_event_name Longitudinal projects Unique event name in the format uniqueeventname_arm_N (e.g., baseline_arm_1). Find all values under Project Setup → Define My Events.
redcap_repeat_instrument Repeating instruments The instrument's variable name (lowercase, underscored) for the repeating instrument this row belongs to. Empty for regular event rows and for repeating-event rows.
redcap_repeat_instance Repeating instruments or events Integer instance number starting at 1. When redcap_repeat_instrument is empty but this column has a value, REDCap treats the row as a repeating-event instance. Use the value new to let REDCap assign the next available instance number automatically.
redcap_survey_identifier Never import Present in exports — holds the survey participant identifier (e.g., name or email used for survey invitations). Read-only system value. Omit this column or leave it blank on import; the Data Import Tool ignores it.
redcap_data_access_group Conditional Required only when the uploading user is assigned to one or more DAGs. Omit entirely if the project does not use DAGs.
Instrument fields (e.g., screen_age_over_18) As needed Include only the variables you want to set. Omitting a column leaves existing data unchanged (additive behavior). Values must be raw-coded (numbers, dates, text) — not choice labels.
fieldname___N (checkbox choices) As needed Checkbox fields produce one column per answer choice. N is the raw coded value for that choice (e.g., demo_race___1, demo_race___2). Values are 1 (checked) or 0 (unchecked). Omitting a checkbox column leaves existing checked state unchanged.
*_timestamp (e.g., demographics_timestamp) Never import Present in exports — auto-generated timestamp recording when a survey instrument was submitted. Read-only system value. Omit or leave blank; values in these columns are ignored by the Data Import Tool.
*_complete (e.g., demographics_complete) Optional Form completion status. Integer: 0 = Incomplete, 1 = Unverified, 2 = Complete. Import to set or update form status. When omitted, existing status is unchanged.

3. Example: Longitudinal Project with a Repeating Instrument

The table below illustrates how a single record spans multiple rows in a longitudinal project that also has a repeating instrument (medication_list). Only selected columns are shown — a real export includes all project fields across all instruments, so most cells in any given row will be empty.

record_id redcap_event_name redcap_repeat_instrument redcap_repeat_instance screen_date phq9_total med_name med_start_date screening_complete phq9_complete medication_list_complete
1 screening_arm_1 (empty) (empty) 2026-04-30 (empty) (empty) (empty) 1 (empty) (empty)
1 baseline_arm_1 (empty) (empty) (empty) 12 (empty) (empty) (empty) 0 (empty)
1 3_month_arm_1 (empty) (empty) (empty) 10 (empty) (empty) (empty) 1 (empty)
1 baseline_arm_1 medication_list 1 (empty) (empty) Metformin 2026-05-01 (empty) (empty) 2
1 baseline_arm_1 medication_list 2 (empty) (empty) Lisinopril 2026-05-01 (empty) (empty) 1
1 3_month_arm_1 medication_list 1 (empty) (empty) Metformin 2026-05-01 (empty) (empty) 0

Key points illustrated by this example:

  • One row per event — regular (non-repeating) event data goes in a row where both repeat columns are empty. REDCap includes a row for every event in an export, even events with no data entered.
  • One row per repeating instrument instance — each instance of a repeating instrument gets its own row with redcap_repeat_instrument and redcap_repeat_instance filled in.
  • Same repeating instrument at multiple eventsmedication_list has instances at both baseline_arm_1 and 3_month_arm_1. Instance numbers are independent per event — instance 1 at baseline and instance 1 at 3 months are separate records.
  • Most cells are empty in any given row — a row carries data only for the fields belonging to that event or instrument instance. In a wide project with many instruments, the vast majority of cells will be empty. This is correct and expected — not a sign of file corruption.
  • Complete status columns (*_complete) appear at the end of each instrument's field group — they can be imported alongside data fields or omitted.

4. Getting the Right Header Row

Two methods reliably produce the correct column layout for your project:

  • Download the Data Import Template from within the Data Import Tool. The template is header-only (no data rows) and includes the exact column set and coordinate variables your project requires.
  • Export existing data from Applications → Data Exports, Reports & Stats. The export uses the same header structure and, if records already exist, provides real examples of correctly formatted values.

Building the header row manually is error-prone. Always start from one of these two sources.


5. Common Questions

Q: What columns do I need in my CSV file for a record data import?

A: The minimum required column is the Record ID. If your project is longitudinal, you must also include redcap_event_name. If you have repeating instruments or events, add redcap_repeat_instrument and redcap_repeat_instance. If you are assigned to a Data Access Group, add redcap_data_access_group. The Data Import Tool provides a download template with the correct column structure for your specific project — use that template as a starting point rather than building a CSV from scratch.

Q: Can I import a file exported from REDCap directly back into the same project without any changes?

A: Yes. Any CSV file exported from REDCap's data export feature can be re-imported directly into the same project without modification. The column structure will be correct, including all required fields and event names. This is useful for recovering from accidental deletions, sharing participant data with external analysts (who can make edits and return the file), or migrating records between projects with the same structure.


6. Common Mistakes

Assuming "Upload File" in the Data Import Tool saves the data. The upload step only stages a preview. The data is committed only after you scroll down and click "Import Data" at the bottom of the results screen. If you navigate away after clicking "Upload File," nothing is saved.

Including read-only system columns from an export. REDCap data exports include columns that cannot be written back via the Data Import Tool: redcap_survey_identifier and any *_timestamp column (e.g., screening_timestamp). These are auto-generated by REDCap and silently ignored on import — they will not cause an error, but their values cannot be set or overwritten this way. When building an import file from a full export, it is safe to leave these columns in; just be aware their values have no effect.

Using choice labels instead of raw coded values. Field values in the import file must be raw-coded (the numeric code, not the label). For example, use 1 not Yes, and 2 not Female. REDCap will reject or misinterpret label-based values.

Setting redcap_repeat_instance without redcap_repeat_instrument. If redcap_repeat_instrument is empty but redcap_repeat_instance has a value, REDCap treats the row as a repeating-event instance (not a repeating instrument instance). This is the correct behavior for repeating events, but if you intended a repeating instrument, always populate both columns.


7. API Equivalent

The API equivalent of the Data Import Tool CSV upload is the Import Records endpoint.

Feature Export Import Delete
Record Data RC-API-02 — Export Records API RC-API-03 — Import Records API RC-API-04 — Delete Records API

See RC-API-01 — REDCap API for authentication, token management, and setup.