Skip to main content
November 24, 2025
Question

RoboHelp 2022 Fails to Generate CHM File - ENOENT Error and HHC3004 Warnings

  • November 24, 2025
  • 1 reply
  • 290 views

Hi everyone,

I’m encountering an issue with RoboHelp 2022 when trying to generate a CHM file. I’ve been testing with one of the sample projects provided by Adobe, and every time I attempt to compile the CHM file, the process fails with the following error:

 

ENOENT: no such file or directory, lstat 'C:\Users\<User>\AppData\Local\Temp\RHTMP\<RandomFolder>\About_RoboHelp.chm'
Failed to generate <OutputName>. Check log for more details.

 

Here’s what I’ve tried so far:

  1. Verified that the Microsoft HTML Help Workshop (hhc.exe) is installed and functional.
  2. Cleared the temporary files in C:\Users\<User>\AppData\Local\Temp\RHTMP.
  3. Changed the output directory to a local folder (e.g., C:\TEMP\Test) to avoid issues with OneDrive or network drives.
  4. Ran RoboHelp in compatibility mode for Windows 10.
  5. Verified permissions on the temporary directory to ensure full access.

Additionally, when I manually test the HTML Help Compiler (hhc.exe), it attempts to compile but generates several warnings like this:

HHC3004: Warning: <FileName>.htm : The HTML tag "?xml version="1.0" encoding="windows-1252" ?" is not a valid HTML tag (it does not begin with an alphanumeric character).

The warnings seem to be caused by an XML declaration (

<?xml version="1.0" encoding="windows-1252"?>

) at the top of several HTML files. I understand this tag is not valid in HTML and needs to be removed, but even after addressing this, the CHM file still fails to generate in RoboHelp.

Has anyone else encountered this issue or have suggestions on how to resolve it? Any help would be greatly appreciated!

Thanks in advance!

    1 reply

    Jeff_Coatsworth
    Community Expert
    Community Expert
    November 24, 2025
    Inspiring
    December 23, 2025

    Thanks, Jeff!

    I looked at the "correct" answer:

    Thanks, but I ended up finding the solution. In a couple of my topics's source code, some lines had both inline style and a css class. When I removed the inline style, it generated without error. 

    ...and thought it would be helpful if I knew how to find "inline" styles as opposed to css class... do you know?

     

    thanks,

    Lon

    Jeff_Coatsworth
    Community Expert
    Community Expert
    December 23, 2025

    See https://www.w3schools.com/html/html_css.asp#:~:text=Inline%20%2D%20by%20using%20the%20style,%3C! for the difference between the two and what to search for in the HTML.