Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LotusScript Agent & Script Library

64 views
Skip to first unread message

Roland STAUB

unread,
Sep 27, 2001, 5:37:43 AM9/27/01
to
Hello
I am a Notes developper, and as long as I worked under Notes, I have
placed quantities of little functions and tools in a script library
called "Outils" (Utilities in French).
This works fine in all places where LotusScript can be used, even in
manually run agents.
The problems is that with LotusScript Agents programed to run
periodically on a server, I got "Cannot find external name: XXXXXXXXX"
for any function called in the agent and defined in the script library.
The facts :
- a Use "Outils" have been included
- the agent is compiled normally, no error
- the functions I want to use are defined once only (no function defined
in the agent called the same name). eg : the function "GetFieldText" is
only defined in the library "Outils"

Has someone had the same problem?
Is this even a common problem?
How can it be resolved?

Thanks for helping.

PS : The server is running a Domino 4.6.5 (Intl)

Rafal Milczewski

unread,
Sep 27, 2001, 2:39:53 PM9/27/01
to
In comp.groupware.lotus-notes.apps Roland STAUB <roland....@wanadoo.fr> wrote:
> The problems is that with LotusScript Agents programed to run
> periodically on a server, I got "Cannot find external name: XXXXXXXXX"

You must rename Outils to outils - script libraby name must be in lower
case.

Rafal

--
Rafal Milczewski ra...@inx.pm.waw.pl +48 (1044) (22) 673 28 44

bicker

unread,
Sep 27, 2001, 2:21:01 PM9/27/01
to
On Thu, 27 Sep 2001 11:37:43 +0200, Roland STAUB
<roland....@wanadoo.fr> wrote:
> The problems is that with LotusScript Agents programed to run
> periodically on a server, I got "Cannot find external name: XXXXXXXXX"
> for any function called in the agent and defined in the script library.
> Has someone had the same problem?

Just today. Recompiling all the libraries that Use that script
library, and all the agents that use those script libraries solved the
problem for me.


--
Brian Charles Kohn (¤bicker¤)
Principal Certified Lotus Professional (R4) - Application Developer
Principal Certified Lotus Professional (R5) - Application Developer
IBM Certified Specialist - IBM WebSphere Application Server, Standard Edition
bk...@qualitysys.com http://www.qualitysys.com

Copyright © 2001, Brian Charles Kohn. All Rights Reserved.
Posting in no way grants receivers any privileges, rights,
or licenses, with the exception of quoting in reply as long
as such use complies with US Law concerning Fair Use.
(This has nothing to do with regular USENET quoting and replies.)

bicker

unread,
Sep 27, 2001, 3:02:58 PM9/27/01
to
On Thu, 27 Sep 2001 18:39:53 +0000 (UTC), Rafal Milczewski
<ra...@inx.pm.waw.pl> wrote:
> You must rename Outils to outils - script libraby name must be in lower
> case.

Not true.

Jakob Majkilde

unread,
Sep 28, 2001, 3:08:49 PM9/28/01
to
Nonsens - the name of the script library can be in any cAse......

"Rafal Milczewski" <ra...@inx.pm.waw.pl> wrote in message
news:9ovrpp$qpv$1...@hq.pm.waw.pl...

Rafal Milczewski

unread,
Sep 29, 2001, 5:51:38 AM9/29/01
to
In comp.groupware.lotus-notes.programmer Jakob Majkilde <ja...@majkilde.dk> wrote:
> Nonsens - the name of the script library can be in any cAse......

Chech this Technote, please:

http://www.support.lotus.com/sims2.nsf/852561c1006719a98525614100588964/5b2410c734388803852565070073b819?OpenDocument

bicker

unread,
Sep 29, 2001, 9:19:39 AM9/29/01
to
On Sat, 29 Sep 2001 09:51:38 +0000 (UTC), Rafal Milczewski
<ra...@inx.pm.waw.pl> wrote:
> In comp.groupware.lotus-notes.programmer Jakob Majkilde <ja...@majkilde.dk> wrote:
> > Nonsens - the name of the script library can be in any cAse......
> Chech this Technote, please:
> http://www.support.lotus.com/sims2.nsf/852561c1006719a98525614100588964/5b2410c734388803852565070073b819?OpenDocument

That TechNote contradicts your assertion. It shows a script library
in proper case: "Test Lib". The error it is pointing out is that the
developer named the script library "Test Lib" and then referred to it
in the agent as follows:
Use "test lib"
The solution offered was ACTUALLY to fix the error in the agent:
Use "Test Lib"

This is a better approach then changing the name of the script library
to all-lower-case as you originally suggested, since it recompiles the
dependent object. That is a superior solution to changing the name of
the script library, which would recompile the relied-on object. That
might not clear the error.

Rafal Milczewski

unread,
Sep 30, 2001, 6:37:15 PM9/30/01
to
In comp.groupware.lotus-notes.programmer bicker <bicker_...@yahoo.com.1nval1d> wrote:

> That TechNote contradicts your assertion. It shows a script library
> in proper case: "Test Lib". The error it is pointing out is that the
> developer named the script library "Test Lib" and then referred to it
> in the agent as follows:
> Use "test lib"
> The solution offered was ACTUALLY to fix the error in the agent:
> Use "Test Lib"

I resolved my problem by lowercasing both script library name and name in
use clause. And I remebered it worked. Someone asked - I tried to do my
best.

BUT - there might be another two reasons why this agent won't run: UI
functions used in code or agent signer don't have an mail box on a server
runnig agent.

> This is a better approach then changing the name of the script library
> to all-lower-case as you originally suggested, since it recompiles the
> dependent object. That is a superior solution to changing the name of

Scripts that use this library ?

0 new messages