Troubleshooting
This guide lists frequent error messages emitted by the DTIFx CLI and how to address them.
Configuration not found
Message: Unable to locate dtifx-build configuration file in the current directory.
- Run commands from the directory containing
dtifx.config.*, or pass--config path/to/dtifx.config.mjs. - When using workspaces, set
--configexplicitly in package scripts to avoid relying on the working directory.
Invalid configuration shape
Message: Configuration at <path> must define a non-empty "layers" array. (or similar for sources, audit.policies, transforms.entries).
- Ensure the exported object contains the required arrays.
- Check for typos (for example
layervslayers). The loader validates each field and raises aTypeErrorif a value is missing or has the wrong type.
Template format errors
--format templaterequires--template <file>. Provide a readable Handlebars template file.--template-partialvalues must be formatted asname=path. Both the name and path must be non-empty strings.
Numeric flag validation
--diff-contextand--top-risksmust be integers. Values below zero trigger--diff-context must be a non-negative integererrors.
Conflicting diff filters
--only-breakingcannot be combined with--filter-impactvalues other thanbreaking.--summarycannot be combined with--modevalues other thansummary.- When
--filter-impactor--filter-kindvalues are unknown, the CLI throws aTypeErrordescribing the unsupported value.
Exit codes in CI
- Exit code
1fromdtifx diff compareindicates failure policies (--fail-on-breakingor--fail-on-changes) triggered or Commander reported invalid input. dtifx audit runanddtifx buildsubcommands setprocess.exitCode = 1when runtime errors orerror-severity policy violations occur. Inspect the reporter output for details and re-run with--json-logs --timingswhen you need richer diagnostics.