Skip to main content
Known Participant
June 25, 2009
Question

Compile Error (RoboHelp 8)

  • June 25, 2009
  • 4 replies
  • 12553 views

I am compiling webhelp uing RoboHelp 8 and although the result looks fine and works ok, i keep getting the following error in the output view.

Applying WebHelp 5.50 Template...
........................Template Error: can not resolve macro: WH_LNG_FtsMaxResult
...........................................................................

As i said there is nothing wrong with the compiled output (as far as i can see) but am just wary of what this error is as i only recently upgraded to version 8, form version 5, and have had a host of problems since doing it!

This topic has been closed for replies.

4 replies

Inspiring
February 2, 2012

I received a string of macro error messages all related to the Web Help files after I converted over from RH7 to RH9.

A small section of the error msgs:

Applying WebHelp 5.50 Template...

Template Error: can not resolve macro: WH_LNG_LoadingData

....Template Error: can not resolve macro: WH_LNG_MergeError1

Template Error: can not resolve macro: WH_LNG_MergeError2

Template Error: can not resolve macro: WH_LNG_JS_alert_ProjectLoadingFail

..Template Error: can not resolve macro: WH_LNG_PreTooltip in C:\HG\PCDmisQA\Pcdlrn\Help\Planner\!SSL!\Webhelp\whtopic.js

Template Error: can not resolve macro: WH_LNG_NextTooltip in C:\HG\PCDmisQA\Pcdlrn\Help\Planner\!SSL!\Webhelp\whtopic.js

Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\HG\PCDmisQA\Pcdlrn\Help\Planner\!SSL!\Webhelp\whtopic.js

How I resolved it was to check the Republish All check box in the Publish tab (which I don't normally have checked).

Once I did this and then republished my project I had no errors.

I hope this is of some help.

Captiv8r
Legend
February 3, 2012

Welcome to our community, Steve

Sorry, but I'm going to remain skeptical on this and consider what you pointed out to be a red herring.

Here's why:

The Template Error messages you cite should be stemming from the Generation process. This is the process that occurs when RoboHelp is creating the output files. One by one each file is read into memory from the source location and script is added to the topics. After modification, copies of the topics are placed in the output location. RoboHelp is also configuring things like the skin and other settings during this process.

The option you pointed out "Republish All" should have zero effect at this point. This is because that option is related to the Publishing process. Think of Generating as being like mixing a bowl full of cookie dough, dropping the dough balls onto the cookie sheet and baking the cookies. Think of Publishing as moving (copying) the cookies from the cookie sheet into the cookie jar.

I'm thinking there has to be some other issue that perhaps resolved on its own or that resolved as a result of a change you made and didn't realize it.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

Peter Grainge
Community Expert
Community Expert
February 3, 2012

I think I saw something like that when testing RoboHelp 9 but that it only occurred on upgrade, maybe I had to delete the CPD after upgrade as well. Pretty sure it did just go away.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
April 7, 2011

I faced a similar issue today Our organization decided to migrate from RH7 to RH9, and for most of the projects I tested the WebHelp output compiled just fine. However, for some, post-conversion, every time I tried generating the WebHelp output I received a long list of messages all proclaiming "Template Error:Cannot resolve macro:<macro name> in <location of whtbar.js file in the output folder>, and a pretty long intimidating list of errors that was.

None of the solutions provided on any of the related threads helped me solve the problem I was facing, but it did convince me that it was definitely a problem with the LNG file. The only thing that worked for me was to close the project, delete the !language! folder, reopen the project, and generate the WebHelp.

Hope this helps anyone who faces the same issue as I did.

Known Participant
August 18, 2009

I just upgraded from RH6 to RH8 and I have the exact same error: Applying WebHelp 5.50 Template...
........................Template Error: can not resolve macro: WH_LNG_FtsMaxResult
...........................................................................

And I have been investigating this for a few days now and have found no thing. Do I need to recreate my template? My machine is running very slow and my templates don't seem to be working anymore. Help!

Captiv8r
Legend
August 18, 2009
Known Participant
August 18, 2009

Thanks Rick~

I was able to fix it my issue by generating a new project and I saw the default.css and the RHStyleMapping.css that I had deleted weeks ago from my project. So I imported both the default.css and the RHStyleMapping.css back into my project. (I also have my own style sheet: Save HTC Style Sheet.CSS) I don't know if this had any bearing on the fix but I did it anyways. Then I took the new project Robohhre.lng file and overwritten my old Robohhre.Ing into my existing project and then generated the project.And no macro error:

Finished processing Full-Text-Search data in 226 sec(s)

Applying WebHelp 5.50 Template...
...................................................................................................
Finished applying Template in 23 sec(s)

Finished compiling WebHelp in 416 sec(s)

Compilation complete.

Thank-you,

Michelle

RoboColum_n_
Legend
June 25, 2009

See if this thread solves the problem.


Read the RoboColum(n) for mutterings on RoboHelp, Technical Communication Suite and technical communication.

robm44Author
Known Participant
June 25, 2009

Thanks for the advice. I created another project and generated the webehlp in this as suggested in the other post. There were no errors when i did this. Does this mean it is something wrong with the template i am using? If so how do i sort this issue out? I did try the solution that the other person used (downloading RoboScriptReg.exe, and then running it from the installation folder) but this didn't solve the problem. Am a bit stuck about what to do next as i don't exactly know how to generate a new template and use that instead.

September 28, 2009

What did you open the .lng file up with?

Since you can not copy the new code in, can you type it in?


I opened .lng in Notebook, pasted the code <element name="FtsMaxResult" value="Search results per page" />, and regenerated the WebHelp file, but continue to receive the error. Thoughts?