Excel Import Basics
Transform spreadsheet chaos into structured database organization by importing Excel files directly into your database.
📹 Excel to Database Migration
Learn how to import Excel spreadsheets into a structured database and apply intelligent data analysis.
Overview
The Excel import feature enables organizations to migrate from unstructured spreadsheet data to organized database structures. This transformation allows you to apply advanced intelligence capabilities, maintain data integrity, and create a proper data catalog.
Accessing the Import Feature
To import data:
- Navigate to the Data Sources page
- Click the Import button (with upload icon) in the top-right corner
- The button is disabled if no database connections are available
Supported File Formats
Currently supported formats:
- Microsoft Excel (.xlsx, .xls) - ✅ Available
- CSV Files (.csv) - Coming Soon
- XML Files (.xml) - Coming Soon
Import Process
The import process consists of three simple steps:
Step 1: Select File Type
- Click the Import button from the Data Sources page
- Choose Microsoft Excel from the file type options
- Click Next to proceed
Step 2: Upload Your File
- Click to upload or drag and drop your Excel file
- The system displays when file is selected:
- File name
- File size in MB
- Green checkmark icon indicating successful selection
- Click Next to continue
Step 3: Configure Import
Configure your import settings:
Database Name
- Enter a name for the new database (e.g., "real_estate_crm_tracker")
- Automatically cleaned to be SQL-safe:
- Converts to lowercase
- Replaces spaces and special characters with underscores
- Ensures it doesn't start with a number
- Removes multiple underscores and leading/trailing underscores
- Limited to 63 characters (PostgreSQL limit)
- If left empty, auto-generates from the uploaded filename
Connection Selection
- Choose an existing database connection where data will be imported
- Use the search box to filter connections
- Shows connection cards with database type and details
Step 4: Import Execution
After clicking Import Data:
- The import dialog closes
- An Agent Progress Dialog opens showing:
- Title: "Importing Data"
- Description: "Processing your Excel file and importing data into the database"
- Real-time progress updates
- Enhanced mode with logs
- The system performs:
- Schema analysis of Excel structure
- Relationship detection between sheets
- Table creation for each Excel sheet
- Data migration to the database
- Catalog generation
- Upon completion, automatically redirects to the new data source page
Post-Import Processing
After the import completes and you're redirected to the new data source, Autonify agents automatically:
1. Data Scanning
- Scans all imported tables
- Builds complete table and column metadata
- Creates searchable data catalog
2. Sensitivity Classification
- Identifies sensitive data (PII, PHI, financial)
- Tags columns with appropriate sensitivity levels
- Helps with compliance and security
3. Auto-Documentation
- Generates descriptions for tables and columns
- Documents data types and relationships
- Creates business-friendly documentation
4. Data Quality Analysis
- Assesses data integrity
- Checks completeness
- Validates formats and patterns
- Identifies potential quality issues
Example Use Case: Real Estate Data
The video demonstrates importing real estate data containing:
- Transactions: Sales and purchase records
- Agents: Real estate agent information
- Viewings: Property viewing schedules
- Clients: Customer information
- Properties: Available property listings
Each Excel sheet becomes a separate database table, maintaining the relationships and structure while enabling advanced database capabilities.
Viewing Imported Data
After import, you can:
Database View
- Access the PostgreSQL database directly
- View all created tables
- Query data using SQL
Data Catalog
- Browse imported tables in the catalog
- View column details and data types
- See automatically generated documentation
Agent Results
- Review sensitivity classifications
- Check data quality scores
- View auto-generated documentation
Import Settings
The import uses these default settings:
- Import Mode: Append (adds data to existing tables if they exist)
- Batch Size: 1000 records at a time
- Create Tables: Automatically creates tables if they don't exist
Best Practices
Before Import
-
Clean Your Excel File:
- Remove empty sheets
- Ensure consistent column headers
- Remove special formatting that might interfere
-
Organize Data:
- Each sheet should represent one entity type
- Use consistent naming conventions
- Ensure key columns are present for relationships
-
Organize Large Datasets:
- Consider splitting very large datasets if necessary for better performance
Naming Conventions
- Use descriptive database names
- Avoid special characters in sheet names
- Keep names concise but meaningful
Data Preparation
- Ensure date formats are consistent
- Remove calculated fields (recreate as views later)
- Standardize text fields (consistent capitalization)
Troubleshooting
Common Issues
Issue | Cause | Solution |
---|---|---|
Import fails | File processing issue | Check file format and ensure it's a valid Excel file |
Tables not created | Invalid sheet names | Remove special characters from sheet names |
Data missing | Hidden sheets | Unhide all sheets before import |
Incorrect data types | Mixed data in columns | Ensure consistent data types per column |
Import Validation
After import, verify:
- Row counts match source Excel file
- All sheets were imported as tables
- Data types are correctly assigned
- Relationships are preserved
Limitations
Current limitations to be aware of:
- Excel formulas are not imported (only values)
- Formatting and styles are not preserved
- Pivot tables are not imported
- Only .xlsx and .xls formats supported
Next Steps
After successful import:
- Review the Catalog: Browse imported tables and columns
- Check Data Quality: Review quality scores and issues
- Validate Sensitivity: Confirm sensitivity classifications
- Set Up Monitoring: Configure data quality rules
- Create Views: Build views for reporting needs