#Overview
Light supports importing financial data via CSV (Comma-Separated Values) files. This is useful for bulk uploads, migrating from other systems, or importing data that isn't available through integrations. This article helps you understand and resolve common import errors.
Before troubleshooting errors, understand the required format:
#Basic Requirements
- Format: CSV text file (not Excel .xlsx)
- Encoding: UTF-8 (standard text encoding)
- Line Endings: Unix (LF) preferred, but Windows (CRLF) is accepted
- Column Headers: First row must contain column names
- Data Types: Values must match expected types for columns
#Common Column Names
- Transactions: date, amount, description, account, reference
- Invoices: invoice_number, vendor_name, amount, date, due_date
- Payments: date, amount, payee, account, reference
- Customers: name, email, phone, address, tax_id
- Vendors: name, email, phone, address, tax_id
Tip: When in doubt, export sample data from Light to see the expected CSV format.
#Symptoms
- Error: "Invalid file format" or "File not recognized"
- File upload is rejected
- Light doesn't let you preview the data
#Solutions
- Verify File Extension:
- Ensure file ends with .csv (not .xlsx, .txt, or others)
- Rename file if extension is wrong
- On Mac, make sure .xlsx files aren't hidden as .csv
- Check File Encoding:
- File must be UTF-8 encoded text
- Open CSV in text editor (Notepad, VS Code, Sublime)
- Go to File > Save As
- Select UTF-8 from encoding dropdown
- Save the file
- Verify It's Not Excel Format:
- Don't save as .xlsx or .xls
- If you have an Excel file:
- Open in Excel
- Click File > Save As
- Choose CSV (Comma Delimited) format
- Save as .csv
- Check for Binary Data:
- Don't include images, PDFs, or non-text data
- CSV can only contain text values
- If you need to import files, use document upload instead
- Test with Simple CSV:
- Create a test CSV in a text editor
- Add simple headers: name,amount,date
- Add one line of sample data
- Try importing the test file
- If test works, your main file has specific issues
#Issue 2: "Column Not Found" or "Missing Required Column"
#Symptoms
- Error: "Column 'X' not found"
- "Missing required fields" message
- Only some columns are accepted
#Solutions
- Verify Column Headers:
- Open CSV in text editor
- Check the header row (first row)
- Column names must match exactly what Light expects
- Column names are case-sensitive
- Extra spaces in column names cause errors
- Check Required Columns:
- Different document types require different columns
- Transactions require: date, amount, account
- Invoices require: invoice_number, vendor, amount, date
- Verify your file has the minimum required columns
- Export Template:
- Light can provide a template CSV
- Go to Import > Download Template
- Use the template to understand correct column names
- Copy your data into the template structure
- Rename Columns:
- If your CSV uses different column names, rename them
- Open in text editor or Excel
- Change column names to match Light's expectations
- Save and retry import
- Remove Extra Columns:
- Light ignores extra columns (usually)
- But sometimes extra columns cause issues
- Delete columns you don't need
- Keep only columns Light expects
#Issue 3: "Invalid Data Type" or "Type Mismatch"
#Symptoms
- Error: "Invalid data type for column 'amount'"
- "Expected number, got text"
- Row import fails for specific columns
#Solutions
- Check Data Types:
- Dates: Must be YYYY-MM-DD format (2024-01-15)
- Amounts: Numbers only, no currency symbols ($100 is wrong, 100 is right)
- Numbers: No commas (1000 not 1,000)
- Text: Anything can be text (no special handling)
- Fix Date Format:
- Convert all dates to YYYY-MM-DD
- Excel: Format column as YYYY-MM-DD, then export
- Spreadsheet trick: Change format first, then export CSV
- Fix Amount Format:
- Remove currency symbols: change "$1,000.50" to "1000.50"
- Remove commas: change "1,000" to "1000"
- Decimals are fine: "1000.50" is correct
- Use negative sign for negative amounts: "-1000.50"
- Check for Hidden Characters:
- Amounts may have extra spaces: " 100 " instead of "100"
- Open CSV in text editor
- Look for spaces before or after values
- Delete spaces
- Use Find & Replace:
- In spreadsheet app, use Find & Replace
- Find: "$", Replace: "" (removes all $ signs)
- Find: ",", Replace: "" (removes all commas)
- Export again after cleanup
#Issue 4: "Duplicate Entry" or "Record Already Exists"
#Symptoms
- Import rejected because record exists
- "Duplicate invoice number"
- "Vendor already exists"
#Solutions
- Check for Existing Data:
- Search Light for the record being imported
- Go to Transactions and search by date/amount
- Go to Vendors and search by name
- If found, remove from CSV before reimporting
- Use Update Instead of Insert:
- If updating existing records, light usually handles this
- But check if CSV has a column indicating "update" vs "new"
- Some imports require explicit action type
- Deduplication:
- Check CSV for duplicate rows
- Sort by key field (invoice number, vendor name)
- Look for identical records appearing twice
- Delete one of the duplicates
- Key Mapping:
- If importing with new key field (different ID)
- Light can't match to existing records
- Remove records from CSV that already exist
- Or provide mapping of old IDs to new IDs
- Partial Re-import:
- If some records are duplicates
- Split CSV into two files
- One with new records, one with updates
- Import the new ones first, then updates
#Issue 5: "Invalid Date" or "Date Out of Range"
#Symptoms
- Error: "Invalid date format"
- "Date out of range"
- Only certain rows rejected for date
#Solutions
- Check Date Format:
- Must be YYYY-MM-DD
- January must be "01", not "1"
- September 15, 2024 should be "2024-09-15"
- Don't use other formats like MM/DD/YYYY
- Verify Dates Are Logical:
- Dates can't be in the future (or very far future)
- Dates shouldn't be before 1900
- Transaction dates should be before today
- Check dates that are getting rejected
- Excel Export Gotcha:
- Excel may have dates in its native format
- When exporting, specify CSV and verify format
- Open CSV in text editor to check format
- If dates don't look like YYYY-MM-DD, reformat
- Fix Format in Text Editor:
- Open CSV in text editor
- Use Find & Replace to fix format if needed
- Example: Find "(\d{2})/(\d{2})/(\d{4})" Replace "$3-$1-$2"
- Or manually edit problem rows
- Check Timezone Issues:
- If dates seem off by one day
- May be timezone conversion issue
- Adjust dates by appropriate number of days
#Issue 6: "Invalid Amount" or "Zero Amount Not Allowed"
#Symptoms
- Error: "Invalid amount" or "Amount is zero"
- Some rows rejected for amount field
- "Negative amount not allowed"
#Solutions
- Check Amount Values:
- Amounts must be non-zero (unless allowed)
- Remove rows with $0 amounts
- Check that amounts are actual numbers
- Fix Amount Format:
- Remove currency symbols ($, €, ¥)
- Remove commas: "1,000" becomes "1000"
- Decimals are okay: "1000.50" is fine
- Negative amounts: "-100.50" is accepted
- Check for Text:
- Amounts can't be text like "one hundred"
- Must be numeric: 100
- Check for "N/A" or other text
- Replace with actual number or delete row
- Sign Conventions:
- Check if negative amounts are allowed
- Some fields require positive; others require negative
- Expenses should be negative: -100
- Income should be positive: +100
- Decimal Points:
- Use period (.) for decimal, not comma
- "1000.50" is correct
- "1000,50" may be wrong depending on locale
#Issue 7: "Invalid Vendor/Customer" or "Reference Not Found"
#Symptoms
- Error: "Vendor not found" or "Account does not exist"
- "Invalid reference" error
- Foreign key reference is rejected
#Solutions
- Create References First:
- If importing transactions with vendor references
- Vendor must exist before transaction can reference it
- Create vendors first: export vendor template and import
- Then import transactions
- Check Reference Names:
- Vendor names must match exactly
- "Acme Corp" not "Acme" or "Acme, Inc."
- Case-sensitive matching may apply
- Search for vendor in Light first
- Verify IDs Match:
- If using vendor IDs instead of names
- IDs must match IDs in Light
- Check that you're using the same ID system
- Export existing data to see ID format
- Create Missing Records:
- For vendors not yet in Light
- Create them manually or via separate import
- CSV: name, email, phone, address
- Do this before importing related transactions
- Use Natural Keys:
- Some imports use vendor name instead of ID
- Light can look up and create vendors automatically
- Ensure "Auto-create if missing" is enabled
- Vendor is created if it doesn't exist
#Issue 8: "Row Rejected" or "Validation Error"
#Symptoms
- Error shows specific row number
- "Row 15 rejected"
- No clear explanation of what's wrong
#Solutions
- Review Error Details:
- Click "Show Details" or "View Error"
- Error message should specify the problem
- It might say "Invalid amount in row 15, column 4"
- Check the Specific Row:
- Open CSV and go to the numbered row
- Look at each column's value
- Compare against other rows
- One column likely has wrong format
- Test Row by Itself:
- Create CSV with just headers and problem row
- Import just this row to isolate issue
- Error message should clarify the problem
- Fix and add back to full import
- Compare with Template:
- Use Light's template CSV
- Compare your problem row to template
- See how template row is formatted
- Match your data to template format
- Manual Entry:
- For problematic rows, enter manually
- Remove row from CSV
- Import CSV without that row
- Manually create the problematic record
#Issue 9: Import Completes but Data Missing
#Symptoms
- Import shows "successful" but records don't appear
- No error message but can't find imported data
- Some rows imported, others silently failed
#Solutions
- Search for Imported Data:
- Data may have imported to unexpected location
- Search by amount, date, or reference
- Narrow date range to import date
- Might be in a different account than expected
- Check Filters:
- Applied filters may be hiding imported data
- Click Filters and remove all filters
- Expand date range
- Re-run search
- Verify Import Completed:
- Go to Settings > Import History
- Look for your import in the list
- Click to see import details and logs
- Check if all rows were successfully imported
- Review Import Summary:
- After import completes, review summary
- Summary shows rows imported vs. rows failed
- If some rows failed, see details why
- Fix those rows and re-import
- Check Posting Status:
- Imported data may be pending approval
- Go to Pending Approvals
- Approve imported transactions if required
#Issue 10: "File Too Large" or "Upload Timeout"
#Symptoms
- Error: "File too large"
- Upload times out
- Can't import large data sets
#Solutions
- Split Large File:
- Divide CSV into multiple smaller files
- Import one batch at a time
- Combine by date range or record type
- Light typically handles 10,000+ rows per file
- Remove Extra Columns:
- Delete columns you don't need
- Each extra column adds to file size
- Keep only required columns
- File size will be smaller
- Increase Timeout:
- Browser may timeout on large uploads
- Clear browser cache first
- Try a different browser
- Desktop browser handles larger files than mobile
- Use Smaller Batch:
- Instead of importing all historical data
- Start with recent data (last 6 months)
- Import historical data in separate batches later
- This also lets you validate as you go
- Contact Support:
- For very large imports (100k+ rows)
- Light support may be able to help
- They may be able to import via backend
- Provide file and explain situation
#Related Articles
- Common issues and solutions
- Bank connection troubleshooting
- Integration sync issues
- Contacting Light support