Input Data Tool: Ingesting Excel, CSV, Parquet & Database Connections
Overview & Learning Objectives
The Input Data tool is the foundational entry point of virtually every Alteryx workflow. It brings external files, spreadsheets, and enterprise database tables into the Designer memory pipeline. It supports flat files (CSV, TXT), Microsoft Excel (.xlsx, .xlsb), modern analytical formats (.parquet, .yxdb), and relational databases via ODBC/OLEDB connections.
- Ingest flat CSV and Excel files configuring delimiters, code pages, and header rows.
- Use wildcards (`*.xlsx`) to dynamically import multiple files from a folder in a single tool pass.
- Establish ODBC database connections and execute pass-through SQL query extractions.
Industry Standard
Standard: Enterprise ETL guidelines at EY and PwC require using native `.yxdb` (Alteryx Database) extracts for intermediate workflow staging because `.yxdb` files are pre-indexed binary structures that read up to 20x faster than raw CSVs.
Real-World Example: FreshBites Cafe Multi-Store POS Ingestion
FreshBites Cafe ingests daily sales CSV files from 4 dark kitchen locations using a single wildcard Input Data tool.
| Source File Path | Configuration Setting | Imported Row Count | Status |
|---|---|---|---|
| C:/POS/sales_mumbai.csv | Delimiter: `,` | Header: Row 1 | 4,200 rows | Successfully loaded |
| C:/POS/sales_pune.csv | Wildcard: `sales_*.csv` | 3,100 rows | Appended to batch stream |
| C:/POS/sales_bengaluru.csv | Wildcard: `sales_*.csv` | 5,800 rows | Appended to batch stream |
| Total Combined Batch | Single Input Data Tool pass | 13,100 rows | Unified in memory |
Configuration & Core Workflow
-- Input Data File Path with Wildcard Pattern
C:\Data\Store_Sales_*.csv
-- Excel File Sheet Selection with Range
C:\Data\Financials.xlsx|||`Q1_Sales$A1:F500`
-- Pass-through SQL Query in Input Data Tool
SELECT order_id, customer_id, order_total, order_date
FROM enterprise_orders
WHERE order_date >= CURRENT_DATE - 30;
Parameters Breakdown
Connect a File or Database: Specifies the source path, connection string, or relational query.Record Limit: Restricts the number of imported rows during development testing (leave blank for production).Field Delimiter: Character separating data columns in flat files (comma `,`, tab `\t`, pipe `|`).Output File Name as Field: Appends a new column containing the source file path or name, critical when batch importing via wildcards.
Sample Walkthrough (Q&A)
Question: How do you import 12 monthly Excel sheets from different files when sheet names vary slightly?
Formula / Action: Input Data Tool -> Directory Tool + Dynamic Input Tool
Result: Dynamically reads each sheet path without manual reconfiguration.
Explanation: While wildcard `*.xlsx` works if sheets have identical names, pairing a Directory Tool with a Dynamic Input Tool allows Alteryx to iterate through varying sheet names dynamically.
Common Mistakes & Limitations
- Forgetting to remove a temporary "Record Limit: 100" setting before deploying the workflow to production, causing reports to be missing 99% of data.
- Importing CSV files with commas inside text fields without enabling the "Ignore Delimiters in Quotes" option, which shifts data across columns.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Drag File to Canvas | Drag & Drop from Windows Explorer | Drag & Drop |
| Quick Browse Anchor | Right-click tool -> Add Browse | Right-click tool |
Pro Tips & Modern Alternatives
- Use the `Directory` tool paired with `Dynamic Input` when folder paths or filenames change dynamically based on calendar dates.
- Use native `.yxdb` format for intermediate storage to eliminate file parsing overhead.