Generic LSE Failure and Globals Options on a Form

I had a form with a “Use” statement in the Globals > Options property. This worked fine in 7.0.3.

I moved to 8.5 and recompiled the code. The code recompiled successfully. However, when the user attempted to open this form, the “Generic LSE Failure” message appeared.

I found out it was the Globals > Options property by:

  1. Remark out the call to the Script Library in the form itself in the Globals > Options property

  2. Opened the Script Library, made a quick change and save the Script Library.

  3. Went back to the Form and un-remarked out the call to the Script Library.

  4. Received the “Error loading script library”

  5. Moved the “Use” statement from the Globals > Options to the Form > Options

  6. Saved the form and recompiled the script and everything worked fine.

Just an FYI for anyone else having this issue…

HTH,

Dan

Subject: I have similar experience occasionally.

Once every 10- 12 times you save a script library, it compiles correctly and seems to save but the $ScriptLib_O items are not there if you look at the fields under the properties. Recompiling the library generally fixes this.Newbs

Subject: Is that what the bug is? Please tell me there’s an SPR for this.

I’ve seen this behavior on occasion in 6.x, 7.x and now 8.0.x and 8.5, but never looked to see that there was no $ScriptLib_O items. Is there an SPR for this?

There are times when Recompile All doesn’t fix it – you have to go into the root library and save that one by hand and then the rest will work (including Recompile All).