This reference covers errors encountered during the data import workflow. Errors are organized by workflow phase and severity.
Connection errors are out of scope for this skill. JDBC/Snowflake/BigQuery connection failures (timeouts, auth failures, driver not found, SSL errors) belong to connecting-to-data-source. When a Glue job fails with a connection-level error, delegate to that skill’s troubleshooting rather than debugging here.
Schema Mismatch Detected:- Column "age": Source type STRING, Target type INT Sample values: "25", "thirty", "42", "unknown" Issue: Values "thirty" and "unknown" cannot convert to INTOptions:1. Filter out rows with non-numeric ages (loses ~5% of data)2. Store age as STRING in target table (requires schema change)3. Replace non-numeric values with NULL (preserves all rows)Which approach would you prefer?
Permission Error Detected:Glue job failed with: "Access Denied" when writing to tableRoot cause: IAM role "GlueServiceRole-import" is missing S3 Tables permissionsRequired actions:1. Add inline policy to role with s3tables:PutTableData permission2. Resource ARN should be: arn:aws:s3tables:us-east-1:123456789012:bucket/my-table-bucket/namespace/my-namespace/table/*Would you like me to add this policy to the role?
Data Quality Check Failed:- Rule: IsPrimaryKey "order_id"- Failure: Found 127 duplicate order_ids (0.5% of total rows)- Sample duplicates: [10234, 10567, 10892, ...]This could indicate:1. Source data has duplicates (check data generation process)2. Multiple loads without deduplication3. Partition key included in order_idOptions:1. Add deduplication keeping the latest record by timestamp2. Investigate source system for root cause3. Proceed with warning (not recommended for primary key)How would you like to proceed?
Consider Athena provisioned capacity for repeated large queries
Optimize file structure:
Consolidate many small files (use Glue ETL)
Use columnar formats (Parquet, ORC)
Partition large datasets by date/region
Example Error Message to Present:
Athena Query Timeout:Query exceeded 30-minute limit loading 5.2GB of dataRecommendations:1. Switch to Glue ETL (recommended for datasets > 1GB) - Can handle 5.2GB with 5 G.1X workers in ~15 minutes - Better error handling and monitoring2. Batch the load by date partition - Load 2024-01 through 2024-06 separately (6 queries) - Each query would handle ~850MBWould you like me to:A) Create a Glue ETL job for this load (recommended)B) Set up batched Athena queries by month