Troubleshooting¶
Home > Guides > Troubleshooting
Common issues and solutions when working with the Ingenious Fabric Accelerator.
Environment Setup Issues¶
Command not found: ingen_fab¶
Problem: After installation, the command ingen_fab is not recognized.
Solutions: 1. Activate your virtual environment:
-
Install in development mode:
-
Check PATH (for global installs):
Environment variable errors¶
Problem: Commands fail with "FABRIC_WORKSPACE_REPO_DIR must be set" or similar.
Solution: Set up environment variables to avoid specifying them on each command:
# Project location
export FABRIC_WORKSPACE_REPO_DIR="./sample_project"
# Target environment
export FABRIC_ENVIRONMENT="development"
For deployment and metadata extraction, you may also need:
See Environment Variables for a complete list.
CLI Command Issues¶
DDL compilation fails¶
Problem: ingen_fab ddl compile fails with template errors.
Solutions: 1. Check your DDL script syntax:
-
Verify variable library exists:
-
Check for missing Jinja template variables.
Deployment failures¶
Problem: ingen_fab deploy deploy fails with authentication errors.
Solutions: 1. Use Azure CLI authentication:
-
Or set service principal variables:
-
Verify workspace access in the Fabric portal.
Testing Issues¶
Local tests fail¶
Problem: ingen_fab test local python fails.
Solutions: 1. Set environment to local:
-
Install dev dependencies:
-
Check for missing test dependencies like PostgreSQL/SQL Server for local testing.
Import errors in notebooks¶
Problem: Generated notebooks can't import python_libs.
Solutions: 1. Upload Python libraries to Fabric:
- Check library compilation:
Configuration Issues¶
Variable resolution fails¶
Problem: Variables like {{fabric_environment}} don't resolve in notebooks.
Solutions: 1. Verify your value set file exists:
-
Check variable names match exactly (case-sensitive).
-
Recompile notebooks after variable changes:
Workspace not found¶
Problem: Deployment fails with "workspace not found" errors.
Solutions: 1. Check workspace ID is correct (from Fabric portal URL). 2. Verify you have access to the workspace. 3. Try using workspace name instead:
Package Issues¶
Package compilation fails¶
Problem: ingen_fab package ingest compile fails.
Solutions: 1. Check target datastore is valid:
- Include samples for first-time setup:
Performance Issues¶
Slow DDL compilation¶
Problem: DDL compilation takes very long.
Solutions: 1. Check for large Jinja templates. 2. Reduce number of DDL scripts being compiled. 3. Use specific generation mode rather than both:
Getting Help¶
-
Use built-in help:
-
Check logs: Look for detailed error messages in console output.
-
Verify prerequisites: Ensure Python 3.12+, required dependencies installed.
-
Test step-by-step: Break complex workflows into individual commands.
Common Error Messages¶
| Error | Meaning | Solution |
|---|---|---|
FABRIC_ENVIRONMENT must be set | Missing environment variable | Set environment variables |
Workspace 'xyz' not found | Invalid workspace ID/access | Check workspace ID and permissions |
Template 'abc.jinja' not found | Missing template file | Verify template exists in correct location |
Authentication failed | Azure auth issue | Use az login or set service principal env vars |
Variable 'name' not found | Missing variable in value set | Add variable to your environment JSON file |
Debug Mode¶
Enable verbose output for more detailed error information:
For persistent issues, create a minimal reproducible example and check the project documentation for specific component troubleshooting.