Skip to main content
April 26, 2011
Question

RH9 error: .cpd file corrupt

  • April 26, 2011
  • 1 reply
  • 2831 views

I've just received this error for the second time. The first time I "tried deleting the .cpd file and reopening the project. All the topics were missing -- each topic name was in the project with a red delete/broken X across it.

After vainly trying several approaches to getting my topics back, I decided to start over. The original project was converted from RH7. I decided to create a new RH9 project and import topics. That seemed to be working well, except two topics would not import. Each caused RH9 to lock up with a "busy" hourglass and when I closed RH9, I got the Windows XP SP3  "not responding. End now?" error.

So I created new topics in Dreamweaver and pasted the text into them and imported the new topics. I use Dreamweaver as an editor; I am not fond of the RH editor -- a totally different conversation. (Likewise, the RH9 conversion of RH7 projects is a totally different conversation.)

With all topics now in the project, I started to rebuild the TOC and completed most of the TOC when RH9 locked up again. When I tried to reopen the project, I got the error shown below (again). Is there a way to remove the corruption from my .cpd file?  Should I totally give up and go back to RH7?

This project has between 300-400 topics and about 1250 files in the compiled version. We're using both conditional build tags (4 builds) and user defined variables (also 4). I have discovered that the RH9 codes for both build tags and user variables are different from RH7 (and they didn't convert) and have begun the process of recoding the first section of the project. Should I not attempt to import a topic into RH9 until after all the codes in the topic are updated to the RH9 version?

Does this issue have anything to do with the new RH9 doctype code that automagically applies itself to any topic that is opened in the RH editor?  From what I've read, I do not want to use XHTML and want to stay with the HTML doctype I've been using with this project. We compile WebHelp and deliver the Help with web-based applications. A sample of the RH9 doctype follows.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

I hesitate to do anything more without guidance. Rebuilding this project again is a discouraging thought.

Thank you for your response and advice!

    This topic has been closed for replies.

    1 reply

    April 26, 2011

    The corrupt cpd error:

    Jeff_Coatsworth
    Braniac
    April 26, 2011

    Have you tried Peter's advice on grainge.org about opening projects?

    April 28, 2011

    I think something is missing from your post. I'm guessing you posted some code that isn't showing. If that is the case you need to use the Insert icon, next to the smilie.

    That flashing is not normal but whether it has any bearing on the thread is another matter. It does prompt one thought though. Did you purchase an upgrade license and if so, did you first uninstall RoboHelp 7? I have seen not uninstalling earlier versions cause problems. If you did not uninstall 7, I would uninstall both versions and I would use RevoUninstaller to make sure all traces of both are removed so that when you reinstall 9, you have a clean foundation. Speak to your IT people about that. Quite a number of people have found Revo does get a better uninstall and fixes problems. I cannot say it will fix the flashing as no one has reported that.

    I guess there is one thing you could try before going that route. Get IT to create a new log on for you. Make sure they do not delete the existing profile at this point. Log in with that new profile and see what happens. Again I have seen that fix odd problems. If it works, you know what the problem was, if not, IT just trash the new profile.

    If you copy this project to your colleagues machine, do they have the same problems with the crashing?

    If still no progress, then your project is hosed at the moment but create a backup anyway. Try the HHP approach. Again I am doubtful but we are a bit short on options here.

    If that too fails, I will take a look and will get you to send me the final RoboHelp 7 version.


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge


    The missing sample in the previous was supposed to show the HTML code I saw in both RH7 and RH9 for build tags.

         RH7 HTML looks like:  <p style="x-condition: NATL;"><span>...text goes here...</span></p>

         RH9 HTML looks like: <? rh-cbt_start condition="NATL" ?><p>...text goes here... </p><?rh-cbt_end ?>

    The HTML for user variables is similar in both RH7 and RH9. Neither the build tag or user variable code converted during the RH7 to RH9 upgrade -- for me.

    Is the HTML code for RH9 build tags (shown above) actually XHTML?  It occured to me that perhaps adding an XHTML code into a topic that has a doctype for HTML may be an issue. After correcting the build tag code in Dreamweaver and saving, I closed DW, opened RH9 and did File/Save All. I don't think the doctype changes to XHTML in RH9 unless I import the topic again. Just wondering if that could be part of the problem. Last night I sent a small test project for deploying in the web site test environment -- to see if our web app will handle XHTML documents. Testing is necessary since the "new" RH7 charset utf-8 was not compatible with our web app either. (That was a big struggle to get resolved as well.)

    I will contact IT today about a second login profile for my computer. My coworker is working on a different project in RH9, but it does not include build tags or user variables and she has not experienced crashing and corrupted .cpd file.

    thanks for your help!