DITA to CHM Transformation Fails - Cannot Open FileEdit online
Problem
The DITA to CHM transformation fails with the following error: [exec] HHC5010:
Error: Cannot open "fileName.chm". Compilation stopped.
Cause
This error occurs when the CHM output file is opened and the transformation scenario cannot rewrite its content.
Solution
To solve this issue, close the CHM help file and run the transformation scenario again.
Tip: It is a good practice to validate the DITA map before executing the transformation scenario. To do
so, run the Validate
and Check for Completeness action. Depending on the selected
options, this action reports errors, such as topics referenced in other topics (but
not in the DITA map), broken links, and missing external
resources.