Keep or clear existing field values in a CSV update

Choose which CSV columns update matched records, and verify what a blank cell does to an optional field.

Use this workflow when you update records from a CSV and need to preserve some existing values. In a mapped optional field such as Follow-up date, a blank cell can clear the saved value. To preserve the field, leave its column out of the file or skip that column in Mapping.

Prepare the fields to update

  1. Include a stable identifier for each record, such as Customer code. When the import uses a title column, keep the existing title if you want it to stay the same.

  2. Include the columns you intend to change. In this example, the file matches the customer by code and clears their optional follow-up date. Other ordinary fields, such as the contact email, stay out of the file.

    Title,Customer code,Follow-up date
    Sample Studio,C-042,
  3. If you want to clear the date for only some customers and preserve it for others, put the rows that clear the date in a file that maps Follow-up date. Use a separate file without that column for rows that should keep their dates.

Review the mapping and check a matched record

  1. In Mapping, check each included column and its destination. To skip a column, clear its Include checkbox. Select Update existing + insert new (upsert) and choose Customer code under Identify records by.
  2. In Confirm, verify the destination table and mode. If you expect updates only, check that every code already exists in the table before starting. A code with no match can create a new record.
  3. Review the updated and imported row counts. Open a matched record and compare both the field you intended to clear and one you intended to preserve. If a required field was mapped to an empty cell and the import reports a validation error, correct the file and verify the result before retrying.

Match CSV updates on more than one field

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?