
What's covered?
This topic explains your options. Do look at the "What will be lost" section before you delete anything! If the problem is with a RoboHelp 6 or higher project, you might want to look at Snippet 79 first. |
The first thing to do before attempting to fix any corrupt project or opening it in an earlier version is to back it up. Just make a copy using Windows Explorer. If you then get anything wrong, you are no worse off than when you started. Keep the backup for a while just in case there is something that you don't spot immediately.
For versions of RH that have an mpj file, the standard advice for dealing with corrupt files has always been to open the project with the HHP file. You can rename or delete the mpj file first and if you know your way around Microsoft Access, you may be able to import back some of the lost data (an mpj file is an Access database with a different file extension so that RH can be linked to it). That might of course reintroduce the problem so it's trial and error.
For versions of RH that have an XPJ file (X5 onwards), the procedure is to rename the CPD file and then open the project with the XPJ file but read on a bit before you rush ahead and do that. The CPD file is an Access database holding much of the information about your project that was in an mpj file in earlier versions.
Adobe RoboHelp 7 contained changes that mean that you should not lose any data if you rename the CPD and use the existing XPJ file to reopen your project. A new CPD will be created from various files within the project and that should correct the problem. I suggest you make a backup of your project first and then try that without deleting the XPJ. If you do lose any project settings or that does not correct things, then see the RoboHelp X5 and RoboHelp 6 instructions.
If you are using RoboHelp X5 or RoboHelp 6, then you might lose some data but if you follow the right steps, most things can be recovered easily. What you will lose and how to recover it is described later in this article.
Make a backup of your project and then in order try these methods.
Remember, make a backup before following any of these procedures and never work on that backup. When you get things going, keep that backup around for a while in case you discover something not quite right when you are further down the line.
If you simply want to open a project in an earlier version, you have to accept that things not compatible with the earlier version are not going to work. If you know how to use Microsoft Access, you can minimise the loss by tweaking the mpj file and using that rather than the HHP file. Visit Rick Stone's site and download his TipsNTrix file.
So in all these scenarios, what will be lost?
As stated above, things changed in Adobe RoboHelp 7 and if you delete only the CPD file, not the CPD and XPJ files, then nothing should be lost. If you do find some folders not showing in Project Manager, click here. If anything more has been lost, then read on.
You need to recreate the folders in RoboHelp Project Manager.
If the folder just contains images, you might find it is as simple as creating a folder with the same name in Project Manager and the images will then be viewable.
If the folder contains topics as well, it is likely RoboHelp will complain the folder already exists. This is because it does indeed exist in Windows Explorer, it is just RoboHelp is not seeing it. In Windows Explorer rename the folder "foldername_old" then open the project and create "foldername" in RH Project Manager. Then import the topics into "foldername" from "foldername_old". When you have finished your broken links should be fixed. Images may also need some tidying up.
Looking at what might get lost in earlier versions of RoboHelp, here's what Mike Hamilton - former RoboHelp Product Manager - said on the subject. The emphasis is mine.
The .HHP file is a way to get a newer RoboHelp project to open in an older version. There are some things to watch out for, though. The .HHP file only contains information on functionality that is compatible with the Microsoft .CHM compiler. Using an .HHP file to open a project works great if you have used the basic .CHM capabilities, but you will lose things like browse sequences, glossary lists, conditional text, etc. In many cases this is not a big deal, but I wanted everyone to know what to expect when trying this.
Mike also confirmed that the CPD file can be deleted without problems which appears to conflict with the quote as that does indicate some problems.
I believe the explanation of this dichotomy is that Mike was talking about using this method to open a project in an earlier version of RoboHelp than the one in which the project was created. Then such a loss could occur. Where you are deleting the CPD and XPJ files to reopen your project in the same version, from X5 onwards my experience is that the browse sequences, glossary lists and conditional text are not lost.
The only reported exception was one poster whose project used framesets; the project choked if she tried to open it via the HHP file.
Click here if you have problems. The cause of your HHP file choking may not be the same but the solution may still be valid.
Occasionally deleting the CPD and XPJ files might not quite work as Teri White found out with "framed" htm files in the project. When Teri tried that, she found the project just choked.
RH Support responded that they could recreate a CPD for a project with frames, it appeared it might be something unique to Teri's project. In a posting on the old forums, on 13 Jun 2004 Teri advised
*****************************
The solution for this problem has been found! Through plain dumb luck I happened to try rebuilding the .HHP file stopping at a 'framed' .htm file - one created with RH as a 3 pane frame. It failed. Hmmm....removed that file AND found the other one I have that's a 2 pane frame from the .HHP and tried opening the file.
Voila! - it worked!
So...in X5 IF you have any 'framed' .htm files and you want to erase the .CPD file and rebuild from the .HHP file like days of old...you first have to remove these from the .HHP (in Notepad). Then it opens just fine.
*****************************
I would just add that this may not be essential but do try it if you do run into the same problem.
Don't have an HHP file? Click here to download Adobe's HHP builder.
Point it to the root of the project and enter the name of the file to be created. The name is important. Look for the CPD, HHC, HHK files. They will all be the same except for the extension. That is the name you need for the HHP file.
![]()
Date |
Changes to this page |
| 28 Apr 2008 | Various changes so that topic recommends deleting the CPD file to see if that works. Reduces what can be lost. |
| 23 Apr 2008 | Instruction re any missing folders amended. |
| 01 Dec 2007 | Procedures for variables and snippets added. Taking a backup further emphasised. |
| 03 Oct 2007 | Reference to Snippet 79 added. |
| 01 Apr 2006 | Loss of SSL settings revised. Default layouts retain their settings. Additional layouts are lost but can be recovered. |
| 23 Mar 2006 | Updated to cover loss of Conditional Tags. Also added a note re Rick Ferrell advising that SSL settings will be lost. |
07 Oct 2005 |
Creating an HHP file using Macromedia's HHP Builder added. |
16 Aug 2005 |
Instructions revised to clarify when to compile a CHM file before deleting the CPD and XPJ files. Additional instructions added re reinstating lost folders and files. |
| 16 Apr 2005 | Topic revised to include instruction to compile a CHM file before deleting the CPD and XPJ files. Link to old eHelp forums removed. |
| 27 Dec 2004 | New topic. |