Rostering with a CSV

CSV rostering allows district administrators to import schools, users, classes, and enrollments into the Merge 3D Platform using a OneRoster 1.1 bulk CSV ZIP file. This option is ideal for districts that do not use an automated rostering service such as Clever or ClassLink.

QUICK ACCESS

Before You Begin

Make sure you have:

  • An active Merge 3D Platform subscription that supports rostering
  • District administrator access
  • Roster data formatted according to the OneRoster 1.1 CSV specification
  • All required CSV files combined into one .zip file

⚠️ Important Licensing Note: 

If your CSV import contains data for multiple schools (defined in your orgs.csv file), each school requires a separate license. Ensure your CSV import aligns with your current paid subscription before uploading. 

Prepare Your CSV ZIP File

Your ZIP file must contain the following required files:

  • manifest.csv
  • academicSessions.csv
  • orgs.csv
  • courses.csv
  • classes.csv
  • users.csv
  • enrollments.csv

To Download a ZIP file containing sample CSVs with example data for reference: 

Merge 3D - OneRoster CSV Format Review

General CSV & File Structure

  • Header Rows: The top header row is strictly required in every file. Column names and order must exactly match the OneRoster 1.1 specification and are case-sensitive.
  • Preserve Optional Columns: Even if a field requires no data, you must keep the column header intact. Represent missing data by leaving the space between the commas blank (e.g., data1,,data3).
  • Unique IDs: The primary identifier (the sourcedId) must be unique across all records within a specific file.
  • Blank Status Fields: The status and dateLastModified fields MUST be left completely empty for every single row.

Merge Import Behavior (Hybrid Sync Logic) 

Note: Merge uses a hybrid approach to protect your data while keeping class rosters up to date.

  • Enrollments (The Master List Rule): Merge dynamically syncs your class rosters based on your enrollments.csv file. For example, if you upload an updated file where a new student is enrolled in an existing class but several previous students' rows are removed, the newly added student will be enrolled, and the students who are no longer associated with the class in the CSV will be automatically un-enrolled.
  • Entities (Additive & Update Only): Merge will never automatically delete user accounts, courses, or classes from your platform if they are missing from your CSV upload. 
  • Manual Deletions Required: Because the CSV importer only removes enrollments, any student account, course, or class that needs to be permanently deleted from the system must be deleted directly within the Merge dashboard by your Account or School Admin. Alternatively, we could do it for you internally.

    ⚠️ If you request the Merge team to clear your roster data internally (e.g., for a new school year), it does not permanently erase your classes and courses; it archives them. Because CSV syncs are additive, uploading your old CSV will not un-archive them. To recreate your roster via CSV after an internal wipe, you must assign brand-new sourcedId s to your courses and classes in your files (e.g., changing class_sci_101_2026 to class_sci_101_2027). 

Formatting Data & Multiple Values

  • Handling Text Commas: If a single data point contains a comma (e.g., "Smith, John"), the raw text must be enclosed in double quotes so it is not read as a new column.
  • Entering Multiple Values: When a field requires multiple distinct pieces of data (such as a class spanning multiple periods), separate the values with commas and wrap the entire entry in double quotes (e.g., "1,3,5").
  • No Multi-Class Enrollments: Do not use commas to group multiple classes into a single row in enrollments.csv. Every single student-to-class connection must have its own dedicated row and unique sourcedId.

To successfully map your roster, data for the following fields are suggested: 

1. orgs.csv (Defines your rostered schools in the district)

  • sourcedId: A permanent, unique ID number for the school.
  • name: The name of the school as it appears in the dashboard.
  • type: Usually just entered as "school".

2. courses.csv (Defines the broader subjects or course catalog)

  • sourcedId: A permanent, unique ID number for the broader course.
  • title: The name of the course as it appears in the dashboard.
  • orgSourcedId: The unique sourcedId in orgs.csv of the school to which the course will be linked to.

3. classes.csv (Defines the specific class periods being taught)

  • sourcedId: A permanent, unique ID number for the specific class.
  • title: The name of the class as it appears in the dashboard.
  • courseSourcedId: The unique sourcedId in courses.csv of the broader course to which the class will be linked to.
  • schoolSourcedId: The unique sourcedId in orgs.csv of the school to which the class will be linked to.
  • periods: (optional) The specific class period, block, or time slot of the class that will be displayed in the dashboard as additional information for the class.

4. users.csv (Defines the people)

  • sourcedId: A permanent, unique ID number for the specific person.
  • orgSourcedIds: The unique sourcedId in orgs.csv of the school to which the user will be linked to.
  • role: Identifies if the person is a "student" or a "teacher".
  • givenName: The person's first name.
  • familyName: The person's last name.
  • email: Must be formatted as an email address. We strongly recommend using the actual student's SSO (Single Sign-On) email credentials to facilitate easier sign-in. We currently support sign-in via Google, Microsoft, Apple, Clever, and ClassLink.
  • password: The password for the user's Merge 3D account. Passwords can be of any length but must contain at least one special character (e.g., !@#$%^&*) If the user will log in exclusively using Single Sign-On (SSO), you can leave this field blank.

5. enrollments.csv (Assigns people to their school and classes)

  • sourcedId: A permanent, unique ID number just for the specific enrollment record.
  • classSourcedId: The unique sourcedId in classes.csv of the class to which the user will be linked to.
  • schoolSourcedId: The unique sourcedId in orgs.csv of the school to which the user will be linked to.
  • userSourcedId: The unique sourcedId in users.csv of the student or teacher being enrolled.
  • role: Identifies whether the person is joining the class as a "student" or a "teacher".

⚠️ The 1:1 Row Rule: Each row in this file represents exactly one user enrolling in exactly one class. You cannot enroll a student in multiple classes on the same row. If a student is taking five classes, they must have five separate rows in this file. 

6. manifest.csv & academicSessions.csv

  • While these files must be included in your ZIP to pass the structural check, Merge ignores the data inside them. The easiest approach is to simply use the provided sample files for these two CSVs exactly as they are. You can leave whatever content is already in the samples (including the header row) completely intact; there is no need to edit them or populate the rows beneath the header.

Building Files Manually? (No SIS)

If your school does not use an automated Student Information System (SIS), you can build your CSV files manually using either Microsoft Excel or Google Sheets. Here are some formatting best practices to ensure your files link together correctly.

Manual CSV Creation Best Practices

The "Digital Barcode" Rule (sourcedId): Every single item in your CSV files need a unique "barcode" called a sourcedId. These barcodes are how your files link to each other. When creating these manually, use the simple formula (lowercase, numbers, and underscores only):

  • Schools (orgs.csv): [initials]_[zipcode] (e.g., m3d_78213)
  • Courses (courses.csv): [subject]_[grade]_[year] (e.g., sci_6_2026)
  • Classes (classes.csv): [course_barcode]_[teacher_initials]_[period] (e.g., sci_6_2026_jd_p1)
  • People (users.csv): Use an existing, permanent ID like a student number or email prefix (e.g., 104859 or ajones_student)

Automate the "Glue" File (enrollments.csv): Because the enrollments.csv file requires a unique barcode for every single row, do not try to number them manually. Use a spreadsheet formula to instantly glue the school, class, and user barcodes or sourcedId(s) together.

Step 1: In the very first column (Column A), type =E2&"_"&D2&"_"&F2.

Step 2: The spreadsheet will instantly generate a sourcedId like this: m3d_78213_sci_6_2026_jd_p1_104859.

Step 3: Drag the corner of that cell down to generate perfect sourcedId(s) for all rows.

Step 4: Highlight the column, copy it, right-click, and select Paste as Values (Microsoft Excel) or Paste special > Values only (Google Sheets). This locks the text so the formula doesn't break the CSV file.

How to Review Your CSV Files (The Double-Quote Trap)

Before zipping and uploading your roster, please compare the CSV files generated from your SIS against the required fields above. How you view the file completely changes how structural double-quotes ("") appear.

Using Excel (Best for checking columns, but hides formatting)

  • How to open: Double-click the file to open it in Excel.
  • What you will see: Excel hides structural double quotes to make the document easier to read. A multiple-period class will just look like 1,3,5 sitting inside a single cell.

    ⚠️ THE DOUBLE-QUOTE TRAP: Never type double quotes ("") directly into an Excel cell. Because Excel already handles the structural quotes behind the scenes, typing your own quotes into a cell will cause Excel to add extra invisible quotes when saving (e.g., """1,3,5"""), which will corrupt your file.

    ⚠️ Auto-Formatting Warning: Excel also tries to be "helpful" by automatically deleting leading zeros (changing "09" to "9") or changing date formats. If you open your file in Excel just to look at it, close it without saving to prevent Excel from ruining your data.

Using Notepad (Best for checking exact formatting)

  • How to open: Right-click the .csv file, select Open with, and choose Notepad (or TextEdit on a Mac).
  • What you will see: You will see the structural quotes here. If you have a field with multiple items (like a class covering periods 1, 3, and 5), it must look exactly like this: "1,3,5". If it just says 1,3,5 without quotes, the system will split it into three different columns and the import will fail.
  • Check blank fields: Look at your empty status and dateLastModified fields. Since they must be blank, they will look like two commas sitting right next to each other (,,).

⚠️ The Golden Rule for Updates: Never Upload Partial Files When roster changes occur during the school year, do not upload a file containing only the new additions.

Because enrollments.csv acts as a strict master list, uploading an updated file that contains only one new student will immediately un-enroll every other student in that class, as they will be missing from the new file.  

You must always export a complete, updated master list of all active users and enrollments from your SIS and upload it as a full replacement ZIP file. Repeating the import process with a complete ZIP ensures that your active students remain safely enrolled, new users are added, and missing students are automatically un-enrolled from their outdated classes. 

Import Your Roster

  1. Sign in to the Merge 3D Platform as a district administrator.
  2. Select District from the main dashboard menu.
  3. Select Update under Settings, scroll down and look for Rostering.
  4. Select Choose File and upload your OneRoster 1.1 CSV ZIP file.
  5. Select Validate to check the file for errors.
  6. Once the file passes validation, select Import roster.

Rostering page showing the OneRoster CSV upload, Validate, and Import roster options

The import may take several minutes, depending on the size of your roster.

Review the Import Results

When the import is complete:

  • Review the import summary.
  • Resolve any errors or warnings.
  • Correct the appropriate CSV files and upload a new ZIP file if needed.
  • Confirm that your schools, users, classes, and enrollments appear correctly in the platform.

Troubleshooting

If your roster does not validate or import successfully:

  • Confirm that all seven required CSV files are included in the ZIP file.
  • Verify that filenames match the required names exactly.
  • Make sure the files follow the OneRoster 1.1 CSV specification.
  • Confirm that all required columns are included.
  • Ensure the sourcedId(s) are unique and match across related files.
  • Remove duplicate records.
  • Verify that the upload is a .zip file containing .csv files.

If you experience issues or need help, you can contact Merge Support (support@merge3d.ai) and include the ZIP file you attempted to import along with a description of the problem.

Was this article helpful?
1 out of 2 found this helpful