Overview
Trazea provides a bulk upload feature that allows you to import multiple spare parts at once from Excel spreadsheets. This is ideal for initial catalog setup or when adding large batches of new parts.Excel File Format
Required Columns
Your Excel file must include these columns:Part reference number or SKU (must be unique)
Part name or description
Part category or type
Discontinuation status. Use
TRUE or FALSE (case-insensitive)Optional Columns
Brand or manufacturer name. Defaults to “MINCA” if not provided.
Detailed description of the part
URL to the part’s image
Estimated availability date for discontinued parts. Use Excel date format.
Excel Template Structure
The first row must contain the column headers exactly as shown above.
Import Process
Using the Bulk Upload Dialog
Implementation Details
File Upload Component
src/features/spares-upload/ui/BulkUpload.tsx:25-42
Processing Logic
src/features/spares-upload/api/index.ts:7-13
Row Mapping
src/features/spares-upload/api/index.ts:18-34
Supported File Types
XLSX Format
Modern Excel format (Excel 2007 and later)MIME type:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetXLS Format
Legacy Excel format (Excel 2003 and earlier)MIME type:
application/vnd.ms-excelError Handling
Upload Results
After processing, you’ll see:src/features/spares-upload/api/index.ts:4
Count of successfully imported parts
Array of rows that failed to import with error details
Common Import Errors
Duplicate Reference Number
Duplicate Reference Number
Error: Part with this reference already existsSolution: Ensure all
referencia values are unique in both your Excel file and the existing catalog.Missing Required Field
Missing Required Field
Error: Required field is empty or nullSolution: Verify that
referencia, nombre, tipo, and descontinuado columns have values for every row.Invalid Date Format
Invalid Date Format
Error: Cannot parse fecha_estimadaSolution: Use Excel’s date format for the
fecha_estimada column (e.g., 2026-06-01 or Excel date serial).Invalid Boolean Value
Invalid Boolean Value
Error: descontinuado is not a valid booleanSolution: Use
TRUE or FALSE (case-insensitive) in the descontinuado column. Excel boolean cells also work.Error Display
src/features/spares-upload/ui/BulkUpload.tsx:129-138
Best Practices
Before Importing
Validate Data
Review your Excel file for:
- Unique reference numbers
- Complete required fields
- Proper data types
- Valid URLs for images
Data Quality
Reference Numbers
Reference Numbers
- Use a consistent format (e.g.,
SP-XXXXX) - Check for duplicates before importing
- Include leading zeros if needed
- Avoid special characters that might cause issues
Part Names
Part Names
- Use clear, descriptive names
- Keep names concise (under 100 characters)
- Use consistent capitalization
- Include key specifications
Categories
Categories
- Standardize your
tipovalues - Use the same category names as existing parts
- Don’t create too many categories
- Group similar parts together
Images
Images
- Verify all URLs are accessible
- Use HTTPS URLs when possible
- Host images on reliable servers
- Test image URLs before importing
After Importing
Example Excel File
Download this template and populate it with your data:Download Excel Template
Ready-to-use template with example data and proper column formatting
When creating your template, start with a copy of existing exports from Trazea to ensure column names match exactly.
Limitations
- Maximum recommended file size: 5 MB
- Maximum recommended rows per import: 1,000 parts
- Only the first sheet in the workbook is processed
- Formulas in cells are evaluated, not preserved
- Images must be hosted externally (URLs only, not embedded images)
- Import is sequential, not parallel (large imports may take time)
Troubleshooting
Import Takes Too Long
Import Takes Too Long
Large files may take several minutes to process. Each row is inserted individually to provide detailed error reporting.Solution: Break large imports into batches of 500-1000 rows.
File Won't Upload
File Won't Upload
Error: “Por favor, sube un archivo Excel válido”Solution:
- Ensure file extension is .xlsx or .xls
- Try re-saving the file in Excel
- Check file isn’t corrupted
All Rows Fail
All Rows Fail
If every row fails to import, check:
- Column headers match exactly (case-sensitive)
- First row contains headers, not data
- Required columns are present
- Data types are correct
Some Rows Succeed, Others Fail
Some Rows Succeed, Others Fail
Review the error messages for failed rows:
- Check for duplicate references
- Verify required fields have values
- Look for invalid data types
- Examine date and boolean formats
Related Topics
Spare Parts Catalog
Learn about the spare parts data structure and management
Inventory Management
Manage stock levels after importing parts