Customized Notes ==> OpenMailDatabase and GetDBDirectory

Hello!

I am having a problem with the either the OpenMailDatabase or GetDBDirectory methods. The following code snipet:

Set notesdir = session.GetDbDirectory(“”)

Set maildb = notesdir.OpenMailDatabase

yields the following:

Reason for error: File does not exist.

Error number: -2147217501

Source Object: NotesDbDirectory (notesdir)

I have found the following new information from the client:

"The way that the agency users are set up is, they receive 5 Notes files

which are customized for them. The files are

names.nsf, desktop.dsk, notes.ini, notesdis and the id file. They place

these 5 files in a folder within the data directory (i.e. c:

\notes\data\nglcbjr). The ini file points to that directory to launch

lotus notes. We also have connection documents in their address book which

has the destination server address for the servers that they access listed

with their fully qualified domain name (i.e.,

xxx.xxx.com). They should be able to resolve the name

this way, however, we could try to put the IP address of the server in

place of the fully qualified domain name to see if this is what the problem

is with authenticating."

We then found that when we replaced the domain name with the IP address, we got the “Database failed to open” error INSTEAD of the “file does not exist” error.

I am sure this customization is the reason why our program can not access their calendars, etc. - but I am not sure how to resolve it.

I hope this all makes sense :slight_smile:

I would greatly appreciate any help you can give.

Thanks,

Justin