27 Replies Latest reply on Feb 12, 2008 11:09 AM by Peter Grainge

    Conditional Build will not generate

    Contact Us
      This is my first time attempting to use Conditional Build tags to exclude text in a topic. It appears that I am doing everything correctly (smile). But the Webhelp generation fails and I get the error message that ask if I want to send the error or not.

      My project is context-sensitive, uses Visual Source Safe (VSS) and has a merged document in it. I am only attempting to uses the condition a build feature in the master document.

      Any one had this problem? Any suggestions? Robohelp HTML 6
        • 1. Re: Conditional Build will not generate
          RoboColum(n) Level 5
          Hi Contact Us and welcome to the RH community.
          Assuming that your project files are not located on a network drive, can you tell us what the error message is when you generate.
          • 2. Re: Conditional Build will not generate
            Contact Us Level 1
            Hi Colum,

            Thanks for responding. The project is on the network, but I also tried on my local as well.
            The message is:
            RoboHelp HTML Application in the title.
            Robohelp HTMS Application has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of somthing, the information you were working on might be lost.
            Please tell Microsoft abouth this problem.
            We have created an error report that you can send to us. We will treat this report as confidential and anonymous.
            To see what data this error report contains, CLICK HERE.

            I can select to send the error or not.
            Then RoboHelp closes.

            Also, when I remove the Conditional Build the project generates as usual.

            • 3. Re: Conditional Build will not generate
              Contact Us Level 1
              Oh, also in preview the excluded text is not visible, as should be the case.
              • 4. Re: Conditional Build will not generate
                RoboColum(n) Level 5
                If your project is, or has been, on a network then this is more than likely to be the issue. RoboHelp uses an Access database and these are well known to have problems when located on a network drive. It is possible that you have inadvertently corrupted your project. Follow the instructions in this link before you do anything else.
                • 5. Re: Conditional Build will not generate
                  Peter Grainge Adobe Community Professional (Moderator)
                  Take a look at Snippet 71 on my site first.

                  • 6. Re: Conditional Build will not generate
                    Contact Us Level 1
                    Thanks Peter that fixed my problem with conditional builds.

                    • 7. Re: Conditional Build will not generate
                      Contact Us Level 1
                      Thanks Colum, I am going to look into the issue of having our working projects on the network. We have had corruption problems when multiple writers work on the same project. I thought VSS was supposed to make that ok to do, but if Robohelp does not like it then I have more research to do. How do we share work on a project from a local drive. Should I start a new topic for this?
                      • 8. Re: Conditional Build will not generate
                        Peter Grainge Adobe Community Professional (Moderator)
                        Networks are OK if you are using source control, or they should be. Colums comment applies to working directly off the network. With source control, RH pulls a copy from the network and you are working on it locally so you should be OK.

                        Maybe someone who uses VSS can comment?

                        • 9. Re: Conditional Build will not generate
                          Contact Us Level 1
                          OK, We never did figure why it was getting corrupted. I welcome comments from a VSS user.
                          • 10. Re: Conditional Build will not generate
                            gsmichaels Level 1
                            I had a very similar problem and, following the advice given above re snippet 71, downloaded the two dll's and tried again. Instead of getting a failure notice, the project generation process simply led the program to freeze. I then tried moving the project file from the network to my C: drive, copied the dll's again and pasted them into the C:drive files -as specified. I generated the project again. Again, the project froze while the Generating HTML Help (Updating Files) dialog was displayed.

                            I would greatly appreciate additional suggestions. Parenthetically, I might add that I am generating a chm based on a single tag exclusion.
                            • 11. Re: Conditional Build will not generate
                              Peter Grainge Adobe Community Professional (Moderator)
                              See the replies above. Colum pointed out that having the project on a network may have corrupted it so perhaps the same occurred to you. See the link Colum provided.

                              • 12. Re: Conditional Build will not generate
                                gsmichaels Level 1
                                One more thing...

                                I also updated rhvariable.apj per snippet 79.

                                When I remove my conditional variable, the chm generates just as it should. When I apply it, no luck.
                                • 13. Re: Conditional Build will not generate
                                  Peter Grainge Adobe Community Professional (Moderator)
                                  Create a new project. One topic with a table. Merge two cells in the right hand column. Generate with a condition. Does it generate?

                                  • 14. Re: Conditional Build will not generate
                                    gsmichaels Level 1
                                    I created two topics, applied the condition to one and excluded it. The chm file generated successfully.
                                    • 15. Re: Conditional Build will not generate
                                      gsmichaels Level 1
                                      By the way, I did incorporate a table and merge two right hand cells.
                                      • 16. Re: Conditional Build will not generate
                                        Peter Grainge Adobe Community Professional (Moderator)
                                        OK. That proves your problem is no longer anything to do with the bug. Your main project has some problem, perhaps because it has been on the network. Follow the link that Colum gave for that.

                                        • 17. Re: Conditional Build will not generate
                                          gsmichaels Level 1
                                          As far as I can tell, I've followed every step suggested. Today, I identified all the occurrences of <td_null> in my project using (FAR), added an extra column (sans cell merges) to the right side of each table, reformatted them accordingly and saved the whole thing.

                                          I tried, yet again, deleting the xjp and chp files, then double clicking the hhp to reopen the project. Closed the project and reopened yet again the normal way. Created a new tag and applied it to one topic, tried generating a file and failed!

                                          I'm a bit frustrated. Any additional suggestions?
                                          • 18. Re: Conditional Build will not generate
                                            Amebr-ke0mH4 Level 2
                                            Just to make certain, have you done a search using FAR for colspan=2 and rowspan=2 (I would check all numbers up to 9) in your project? (I'm not sure if rowspan is a problem as well, but we made sure to remove those from our projects too.)
                                            Amebr
                                            • 19. Re: Conditional Build will not generate
                                              gsmichaels Level 1
                                              This is very irritating. I went to a lot of work to concieve/build/format tables that met my needs. Your sugggestion seems to indicate that only the simplest tables will enable conditional text.

                                              If true, that's a bad glitch. I have a very large number of tables embedded in my documentation. Indeed, the text within each topic is organized using a table-based format.

                                              Any change that this was resolved in Version 7?

                                              If not, I do hope that the product designers responsible for RH are paying attention to this one.
                                              • 20. Re: Conditional Build will not generate
                                                Peter Grainge Adobe Community Professional (Moderator)
                                                I am not following why we are still searching for merged table cells. We have proved that bug no longer exists on your PC.

                                                The link that Colum pointed to is about trashing the CPD and XPJ files and then reopening the project with the HHP file. Take a look at that topic titled Opening Projects on my site.

                                                The problem was resolved in RH6 as you have proved by downloading the fix and creating a project where merged cells behave.

                                                Try what I have suggested, with a copy of your project and post back.

                                                • 21. Re: Conditional Build will not generate
                                                  gsmichaels Level 1
                                                  Peter,

                                                  I did that stuff first. Several times. It didn't make a difference. I came to the conclusion that it was worth going back to find any instances of merged cells.

                                                  Interestingly, this morning, upon opening my project, it defaulted to WebHelp Pro as the primary layout. I reset it to MicroSoft HTML, tried generating a chm (after dumping the xpj and cpd files and using hhp to regenerate) and the program is now locking up
                                                  during the Update files process, although there are no conditional tags! In short, it won't generate at all (in Single Source > MS HTML = Primary Layout).

                                                  Just this morning, I've rebooted twice and regenerated once (per Colum) without success.

                                                  I've been using the Single Source > MS HTML = Primary Layout setting exclusively for nine months. Guess I'll try again using WebHelp Pro as the primary layout.

                                                  Why would the Single Source default setting change? It never has before.

                                                  Good Lord.
                                                  • 22. Re: Conditional Build will not generate
                                                    gsmichaels Level 1
                                                    Just figured out that it isn't enough to delete the conditional tags from the Project pane > Conditional tags folder, in order to generate a chm successfully.

                                                    It is also necessary to set the Generate Primary Layout window > Conditional Build Expression field to (None).

                                                    As I usually generate using the Tool bar > ? button, I had overlooked this setting.

                                                    I still don't know why I'm having such a problem with conditional text, however.
                                                    • 23. Re: Conditional Build will not generate
                                                      Peter Grainge Adobe Community Professional (Moderator)
                                                      Create a new layout by right clicking the SSL folder in Project Manager.

                                                      Go with all the default settings. Any change?

                                                      If not, copy the project and in Windows Explorer remove all the folders under SSL. Zip it all up and tell me the size of the zip file.

                                                      • 24. Re: Conditional Build will not generate
                                                        Just Mary Level 1
                                                        I was excited to see this answer because I'm having trouble generating a Printed Doc build when I use an excluded condition on the right column of a table, in which several columns in the top row happen to be merged. In my case, RH hangs when the build starts, and I have to kill it.

                                                        I am using RH 7, so I'm assuming the updates to the DLLs for the fix have already been incorporated, so I didn't copy them. Nonetheless, I tried adding a new column to the right of the merged one as suggested in Peter's Snippet 68, and then I tried regenerating my printed doc. RH still hangs. Any ideas?
                                                        • 25. Re: Conditional Build will not generate
                                                          Peter Grainge Adobe Community Professional (Moderator)
                                                          Mary

                                                          Whatever is causing the problem, it is not the same as the RH6 problem. That was with cells in the end column anyway rather then cells in the top row. Also it was with generating online help. Plus the tag didn't have to be related to the table.

                                                          Don't use DLLs from a different version.

                                                          First step is to exclude that whole topic from the document. Just create a copy of the print layout and then delete it from the topics in the wizard.

                                                          Also look in the Output view. Any messages there?

                                                          • 26. Re: Conditional Build will not generate
                                                            Just Mary Level 1
                                                            Hmm, I tried to post a reply twice last week, but neither showed up. Anyway, I'll try once more.

                                                            Peter,

                                                            After fooling with my table, I realized that the issue stems from some cells that span two rows; when I exclude other cells in the same rows (which span only one row each) from a build using conditional tags, RH simply excludes those cells and doesn't reformat the table accordingly. (I think I should be able to expect that it would reformat the table correctly to accommodate a condition, which would mean adjusting the colspan and/or rowspan values.) Here's a simplified version of my table configuration:

                                                            <table class=NormalTable x-use-null-cells style="x-cell-content-align: Center; border-spacing: 0px; border-spacing: 0px;"
                                                            cellspacing=0>
                                                            <col>
                                                            <col>
                                                            <col>
                                                            <col>
                                                            <col>
                                                            <tr style="x-cell-content-align: top;" valign=top>
                                                            <td rowspan=2><p class=TableHeader>Report</td>
                                                            <td rowspan=2><p class=TableHeader>Description</td>
                                                            <td rowspan=2><p class=TableHeader>Configurable Layout?</td>
                                                            <td colspan=2 rowspan=1 style=" ... x-condition: Internal_only;"><p class=TableHeader style="text-align: center;" align=center>Availability by Account Type</td>
                                                            <td_null>
                                                            </tr>
                                                            <tr style="x-cell-content-align: top;" valign=top>
                                                            <td_null>
                                                            <td_null>
                                                            <td_null>
                                                            <td style=" ... x-condition: Internal_only;"><p class=TableHeader>Client</td>
                                                            <td style=" ... x-condition: Internal_only;"><p class=TableHeader>Admin</td>
                                                            </tr>
                                                            <tr style="x-cell-content-align: top;" valign=top>
                                                            <td><p>Performance Highlights</td>
                                                            <td><p>[text]</td>
                                                            <td><p>No</td>
                                                            <td style=" ... x-condition: Internal_only;">Yes</td>
                                                            <td style=" ... x-condition: Internal_only;">Yes</td>
                                                            </tr>
                                                            </table>

                                                            So my workaround is to either reformat the table or use two versions of the table with conditions applied to the whole things. Do you think this constitutes a bug (for which I should send a report)?
                                                            • 27. Re: Conditional Build will not generate
                                                              Peter Grainge Adobe Community Professional (Moderator)
                                                              There is a workaround on this forum and I expect Colum can readily point you to it tomorrow. No point in reporting it as a bug as it has been fixed in RH7.