> ## Documentation Index
> Fetch the complete documentation index at: https://docs.saleslyt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Handling & Validation

> Review and fix import errors directly in the UI before confirming.

## Pre-Import Validation

After uploading your file and mapping fields, SalesLyt validates your data **before** importing. This allows you to catch and fix errors without affecting your existing data.

## How It Works

1. **Upload** your CSV file
2. **Map** your columns to SalesLyt fields
3. **Review** the potential errors highlighted in yellow
4. **Fix errors** directly in the UI
5. **Confirm** the import

[Video demonstration](https://player.vimeo.com/video/1145273857?autoplay=1\&loop=1\&autopause=0\&background=1\&app_id=58479)

## Error Display

Rows with issues are highlighted in **yellow**. You can:

* **Edit the cell directly** to fix the error
* **Remove the row** to skip it entirely

This inline editing saves time—no need to go back to your spreadsheet, fix errors, and re-upload.

## Common Error Types

### Duplicate Values

**Cause**: A unique field (email, domain) already exists in SalesLyt or appears twice in your file.

**Fix**:

* Edit the duplicate value in the import UI
* Remove one of the duplicate rows

See [Uniqueness Constraints](https://docs.saleslyt.com/user-guide/data-migration/capabilities/uniqueness-constraints.md) for more details on how uniqueness is enforced.

### Invalid Format

**Cause**: Data doesn't match the expected format (e.g., invalid email, wrong date format).

**Fix**: Edit the cell to use the correct format.

See [Field Mapping](https://docs.saleslyt.com/user-guide/data-migration/capabilities/field-mapping.md) for the expected format of each field type.

### Missing Required Fields

**Cause**: A required field is empty.

**Fix**: Enter a value in the required field or remove the row.

### Relation Not Found

**Cause**: The referenced record doesn't exist (e.g., a Company domain that wasn't imported).

**Fix**:

* Import the parent records first
* Or correct the reference value

See [Import Relations](https://docs.saleslyt.com/user-guide/data-migration/capabilities/import-relations.md) for the correct import order and how to link records.

## Tips for Fewer Errors

1. **Download the template** to see expected format prior to importing your file
2. **Clean your data** in the spreadsheet first
3. **Import files in correct order** to import relations (Companies → People → Opportunities)
4. **Test with small batches** before full import
5. **Check for duplicates** before uploading
6. **Limit the size of your file to 10,000 records** per file


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.