Troubleshooting
Excel or VBIDE access fails
Run:
bash
xlflow doctor --jsonEnable Trust access to the VBA project object model in Excel.
Macro target is unclear
Run:
bash
xlflow macros --jsonUse a discovered qualified_name.
Runtime failure is unclear
Run with structured debug output:
bash
xlflow run Main.Run --jsonWorkbook reports recovery required
workbook_recovery_required means a previous Excel/VBA operation returned without proving that execution and cleanup finished. Do not retry with --wait; the marker is not lock contention.
- Run
xlflow status --jsonand inspectcoordination.recovery. - For a managed session, use
xlflow session stop --discard --json. - If an affected PID is shown, use
xlflow process cleanup <pid> --json. - After manually closing Excel without saving, use
xlflow recovery clear --json. - Use
recovery clear --forceonly when you accept that it clears the marker without stopping VBA or proving workbook safety.
See recovery.
Workbook output depends on formatting
Use:
bash
xlflow inspect range --sheet Result --address A1:F20 --include-style --json
xlflow export-image --sheet Result --range A1:F20 --json