Hi,I got a problem with Database Open by agent invoked in Browser, look at the following code:
…
set db = session.getDatabase(server,dbfilepath)
set db1 = session.getDatabase(server,dbfilepath1)
…
I met a problem that object “db” and “db1” are both got, but “db” is not open, then I call db.open(“”,“”) but it doesn’t work, “db” is still not open.
Any help?
Regards,
Eric
Subject: Problem with Database Open
Sounds to me like you’re not getting a proper handle on that database.Maybe the name isn’t quite right, so it’s creating a new database file…but never initializing it?
Subject: RE: Problem with Database Open
I have revised the parameter to the string like this: set db = session.getDatabase(server,“path/dbfilename.nsf”)
but it still doesn’t work, and I found an interesting thing that if I open dbfilename.nsf in Notes client, the code will do the good job, and if I closed the database in the client, several hours later, the code will meet the problem again. It really confused me. 
Subject: Problem with Database Open
When any of the the getDatabase methods return “database is not yet open” (or a variation of that message) it normally means it cannot find the database, or you do not have access to the database with the ID that is running that code, one or the other.
Subject: RE: Problem with Database Open
but seems what I met are not one or the other, I got the db handle and I have the administrator control to the db.