# Contacts and data

> What import, contact, list, segment, custom record and catalog errors mean, and how to fix them.

URL: https://docs.lemuai.com/troubleshooting/contacts-and-data
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [Importing Contacts](https://docs.lemuai.com/contacts/import), [Contacts](https://docs.lemuai.com/contacts/overview), [Segments](https://docs.lemuai.com/segments/overview), [Custom Records](https://docs.lemuai.com/records/overview), [Catalog](https://docs.lemuai.com/records/catalog)

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces.

## Importing contacts

Imports run from **Audience → Contacts** (a CSV or Excel file, or a Google Sheet). See [Importing Contacts](https://docs.lemuai.com/contacts/import).

### "Map a column to phone, email or external ID"

Also: "No rows had a phone number or external_id to import contacts by".

- **Why:** LemuAI finds each contact by phone, email or external ID (your own customer ID). No column is mapped to any of them, or those columns are empty.
- **Fix:** on the mapping step, set the phone column to **Phone** (or email to **Email**, or your ID column to **External ID**). Phone numbers work best with country code: `+919876543210`.

### "No phone, email or external ID"

- **Where you see it:** in the import result, next to rows that were left out.
- **Why:** that row has none of the three filled in.
- **Fix:** fill one in and import the file again. Rows already imported are updated, not duplicated.

### "The file has {rows} rows; import at most 50,000 at a time"

- **Fix:** split the file into parts of 50,000 rows or fewer and import them one after another. To load more at once, use the [Bulk Upsert Contacts](https://docs.lemuai.com/api-reference/contacts/bulk-upsert) API.

### "Name the custom field for “{column}”"

Also: "Unknown contact field “{field}” for “{column}”".

- **Why:** a column is set to become a custom field but has no name, or it's mapped to a field that doesn't exist.
- **Fix:** give the custom field a name (lowercase letters, numbers and underscores, like `loyalty_tier`), or map the column to an existing field, or skip it.

### "Google Sheet must have a header row and at least one data row"

Also: "Invalid Google Sheets URL: {url}", "Connect a Google Sheet first before adding another."

- **Fix:** the first row must hold column names, with data from the second row. Paste the sheet's full address (`https://docs.google.com/spreadsheets/d/…`). See [Google Sheets](https://docs.lemuai.com/integrations/google-sheets).

### "Removed from the connected Google Sheet"

- **Where you see it:** on contacts that were in a list synced from a Google Sheet.
- **Why:** their row was deleted from the sheet, so LemuAI took them out of the synced list and stopped journeys started for them from that sheet.
- **Fix:** nothing, if the row was deleted on purpose. Otherwise put the row back; the next sync adds them again.

## Contacts and lists

| Message | What it means and what to do |
|---|---|
| "At least one of 'phone' or 'external_id' is required" | When adding a contact, give a phone (with country code) or an external ID |
| "A contact with this external_id already exists" | Another contact already uses that ID. Search for it and update that one |
| "A list named '{name}' already exists" | Pick another name, or add the people to the existing list |
| "Contact is not a member of this list" | The contact was already removed from the list |
| "Contact not found", "Contact list not found" | It was deleted, or belongs to another workspace. Reload the page |
| "You don't have permission to view contact phone numbers." | Phone numbers are masked for your account. An Owner or Admin can turn on **See unmasked contact phone numbers** for you under **Settings → Team** |

## Segments

| Message | What to do |
|---|---|
| "At most 30 conditions in a segment" | Combine rules, or use **is in** with a list of values instead of many separate rules |
| "{rule}: at most 500 values" | An **is in** / **is not in** rule takes up to 500 comma-separated values. Split it or use a list |
| "{field} {operator}: a value is needed" | Fill in the value box of that rule |
| "'{value}' isn't a number", "'{value}' isn't a whole number of {unit}" | Type digits only, like `5000`, without ₹ or commas |
| "'{value}' isn't a date (YYYY-MM-DD)" | Use the date picker, or type a date like `2026-11-25` |
| "{unit} must be between 1 and {most}" | Use a time window inside the allowed range |
| "Calculated field '{name}' doesn't exist" | The calculated field was renamed or deleted. Pick another in the rule |
| "Unknown contact field '{field}'" | The field was removed. Pick another |
| "No record type called '{name}'" | The custom record type was deleted or renamed. Edit the **Has records (Custom records)** rule |
| "Segment not found" | It was deleted. Reload the page |

## Custom records and catalog

Custom records (orders, loans, bookings) live under **Audience → Custom records**; catalogs under **Audience → Catalog**.

### Importing or saving records

| Message | What to do |
|---|---|
| "Map a column to {key} (the record key)" | Each record needs its key (for example `order_id`). Map that column |
| "{key} (the record key) is required", "The record key is empty" | Fill in the key on every row |
| "The record key is longer than 255 characters" | Shorten the key |
| "The record is larger than 16 KB" | Remove long text or split the record |
| "At most 1000 records at once" | Send records in batches of 1,000 or fewer |
| "At most 150 fields" | Remove fields you don't use |
| "isn't a number", "isn't a date (YYYY-MM-DD or DD/MM/YYYY)", "isn't a date and time (ISO 8601)", "must be true or false", "must be an http(s) link", "must be text" | A value doesn't match the field's type. Fix the value, or change the field's type on the **Fields** tab |
| "must be one of: {options}" | A choice field got a value that isn't one of its options. Use an option, or add it on the **Fields** tab |
| "is longer than 2000 characters" | Shorten the text |
| "Two columns map to {field}" | Map each field from one column only |
| "The file has no column '{column}'" | The column name changed. Pick the column again |
| "The file has no rows" | Add data below the header row |
| "Your role can't add fields. Leave those columns out." | Skip new columns, or ask an Owner or Admin to add the fields |
| "No contact {who} in this organization" | The record's owner (phone, email or ID) isn't a contact. Add the contact first, or fix the value |
| "{type} is synced automatically; change it at the source" | This type comes from an integration (for example Shopify). Change the data there |
| "{type} is archived" | Restore the record type before adding records |

### Setting up a record type

| Message | What to do |
|---|---|
| "There is already a field called {name}" | Use another name |
| "Field names must be unique: {names}" | Two fields share a name. Rename one |
| "The key field must be text or a number" | Pick a text or number field as the key |
| "The key field can't be archived" | Pick another key first |
| "{field}: a choice field needs options" | Add at least one option |
| "{field}: at most 100 options" | Use a text field instead |
| "'{name}' is reserved; choose another API name" | Use another API name |

### Filtering records

| Message | What to do |
|---|---|
| "{field}: operator '{op}' isn't supported for this field" | Pick another operator for that field type |
| "join must be 'and' or 'or', not '{value}'" | API only: each filter's `join` is `"and"` or `"or"` |
| "Unknown field '{name}'" | The field was renamed or removed |
