Match CSV updates on more than one field
Match incoming rows using a combination of fields and resolve blank, repeated, or ambiguous identifiers before retrying.
Choose more than one match field when a value is unique only within a group. For example, two sites can both have an asset with code A-042. Matching on Site and Asset code together lets Mainbase identify each asset.
Set up the match
- Prepare a CSV with a value in each match column for every row. Check that each combination occurs once in the file and identifies at most one record in the destination table.
- In Settings → Database, open the destination table’s Actions for [table name] menu and select Import. Upload the file and confirm you have the intended table.
- In Mapping, include both match columns and map them to their destination fields. Select Update existing + insert new (upsert). Under Identify records by, select both fields.
- Check the table and mode in Confirm before starting the import. If you intend to update existing records only, confirm that every combination already exists. A combination with no match can create a record.
Fix a matching error and verify the retry
- If an import row is missing a match value, complete every selected match field on that row.
- If an import row repeats a set of match values, compare the rows with that same combination in the CSV. Keep one row per intended record. If both rows represent distinct records, use match fields that distinguish them.
- If an import row matches multiple destination records, compare those records in the destination table. For legitimate repeats, add a stable field that distinguishes the records and include it in the file and under Identify records by. If the destination contains unintended duplicates, resolve them there before trying again.
After retrying, review the updated and imported row counts. Open two records that share an asset code but belong to different sites and verify that each received its own values. Choose which values to keep or clear during a CSV update
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy 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?