SOLVED! : "Error loading USE or USELSX module" with sheduled agent only!

Hi,

***** SOLVED ************************

I found the solution myself (If this can help someone) :

In script library, I have several functions,in one of them I use the “DocumentContext” property (I use it because this agent can be run manually), it was the cause of the error message, finally I believe, because since I corrected script my agent functions correctly…

It’s annoying which the errors messages are not more explicit…

Thierry

***** SOLVED ************************

***** The problem ***************************

Before to write here, I have read many, many posts about that and I read also the Julie Kadashevich’s article “Troubleshooting agents” :

http://www-10.lotus.com/ldd/today.nsf/8a6d147cf55a7fd385256658007aacf1/27f79cb66e381900852565b6006d2eb4?OpenDocument and other.

I create a scheduled agent which use a LotusScript script library called “testlib”.

When I run this agent with an action from NOTES or WEB client, no problem BUT when this agent is scheduled I get this message :

“Error loading USE or USELSX module: testlib”

  • there is NOT UI classes in this agent,

  • agent is signed with my name,

I tried to :

  • put the name in lowercase,

  • recompile,

I’m not any more very sure, but it seems to me that I did not have this problem in R5…

I don’t understand…

Thank you for your help,

Thierry