The Right Notes

Contributing development ideas to the Lotus Domino community

Recompile All

Posted by therightnotes on May 16, 2007

How often do you use the “Recompile All” feature in the Lotus Designer?  Periodically, I get error messages that pop up in a large database I support after design refreshes.  The error messages themselves on incorrect.  For example, I’ll get a “Duplicate puble name” error when there are no duplicates.  The only thing that makes it go away, it seems, is a recompile all.  My trouble with this “solution” is that it seems drastic; everything gets signed with a new updated date.  That means things that were working fine now appear as though they’ve been modified.  This causes more things to be replicated than is necessary.  Even more, though, the team of developers lose track of when something was last “really” worked on, which is often a useful piece of information.  So I’m wondering how often people use the feature and if others have had errors (and fixes) like I’ve described.

5 Responses to “Recompile All”

  1. I only use it if we get the “public name” error too. I definitely don’t like it touching all of the code making it appear that it was updated. Seems it’s the only way to clear the public name error, though, in my experience.

  2. vvv said

    I know my help is not solution of your cause. But you can use my db recompiler http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/DbReCompiler
    There you can perform dbrecompilation of all your databases in one click.

  3. Scott Leis said

    I come across errors like “Duplicate public name” and “Generic LSE failure” quite often after editing script libraries then attempting to use the modified code in the client. With Notes 6 and 7, “Recompile all” is usually needed to fix it.

    Here’s another fix that often works for me:
    If I’ve just got one of those errors after editing a specific piece of code, as long as the code is Notes 5 compatible, editing and saving it in Designer 5 may fix the problem. Prior to saving in Designer 5, you may need to make a change to force a recompile (e.g. add a space then remove it immediately). If the error still appears in other elements (specific forms, agents, etc.), you’ll need to edit, force recompile, and save those as well.

  4. I use recompile all on a fairly regular basis as its an invaluable tool, especially when you have multiple script libraries. It can be a pain tracking down the geeric LSE failures but if you get this you need to fix it. I don’t tend to use it on a production database only on the master template so replication of the changes is not a factor for me.

  5. Wesley Roebuck said

    I’m frequently forced to use the recompile tool. However, it causes an additional problem. Sometimes, if you have code on subforms which reference script libraries, the recompile action itself can cause the code to break, forcing you to manually open and edit each subform in order to correct the problem.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>