Hi,
I have very stange behaviour with one of my databases and I can’t figure out what causes the error.
I would like to know if anybody encountered a similar situation and could provide me some ideas …
In one of my applications if have a fuction which opens an other database and performs several actions on it.
(The function is very complicated but it uses only LotusScript (no API).
Most of its part are actually placed in an agent which is triggered with Agent.Run on server)
This function works usually fine :-))
However some users get all of the suddenly the error “Cannot open database ”
I debugged the code and found that it ends on an ordinary Session.GetDatabase(Server,Path)-Function.
I also isolated the code and created a simple 3-line agent with hardcoded values and even if the users run this one, they get the error over and over again.
(No typos and yes the users have access to the database)
Many more test brought the following results:
-
if I try to reproduce it with an id which has manager access to the target-db then the error never occurs.
It only happens for users with “Author”-Access.
-
If the user has the target-database open in an other tab on his workspace then the error never occurs !!!
(I can even try the following: Run my 3-liner → get the error, Open Target-DB and switch back to my db. Run my 3-liner again —> NO error, Close the tab of the target-db and run my 3-liner —> get the error)
-
Once this “ERROR” starts happening it is quite difficult to get rid of it. Sometimes it stopps after logging off. Sometimes it stays even if I restart the whole client several times. (After restarting client, deleting cache it works usually)
-
This behaviour is definitly somehow caused by the unspecified “complicated” function, as it always starts happening ONLY after this function is used.
FYI: - It happens on an R5(5.0.12)-server with R5-clients and R6-Clients (6.5.3) / We reproduced it on 2 different server and 3 PC running both R5 and R6 clients
- It is not due to a corrupt desktop/bookmarks as we tried to delete them as well and it still happened.
Has anybody seen such an behaviour before ?
Any ideas what could cause this ?
Thanks in advance for your helps.
Bye
Hynek