INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Unable to open NotesSession

Unable to open NotesSession

(OP)
Hello,

I'm using GetObject("", "Notes.NotesSession") to get an open session or open a new one when there isn't one. It all works fine when there's an open session, but when there isn't it fails.
The strange thing is that on some PC's it works fine, but on others' it fails. It's not the vba that fails however.

I'm getting a message in Lotus Notes that says:

"Unable to access data directory 'D:\Documents and Settings\[userid]\My Documents\Program Data\Lotus\Notes\Data' using preferences file 'C:\Program Files\Lotus\Notes\notes.ini'."

I've no idea what causes this error.

Any thoughts are appreciated as I've ran out of ideas.

Cheers,

Roel

RE: Unable to open NotesSession

Seems that this is a file permission issue. Is the file in the path that the code expects ? Does the user executing the code have access to the file ? Can you open the File Explorer and navigate to that point ?

Pascal.


I've got nothing to hide, and I'd very much like to keep that away from prying eyes.

RE: Unable to open NotesSession

(OP)
Hi,

thanks for replying. Well, the thing really is that it's following the path with as userid the administrator instead of the user. sorry, forgot to mention that before.

I have no idea why it is attempting to go to that directory. I was thinking that it's trying to get the ID file from there, but I've looked at the location of the ID file in Notes under User Security and that directs it to the correct path.

If I could somehow tell it to look at that path, I believe the problem will be solved, but I've no idea how to accomplish that.

Cheers,

Roel

RE: Unable to open NotesSession

What is the default Notes Data directory set to ? Is it the same on all PCs ?

Pascal.


I've got nothing to hide, and I'd very much like to keep that away from prying eyes.

RE: Unable to open NotesSession

(OP)
Hi,

no, it varies. Some are looking at Environ("ProgramFiles")\Lotus\Notes\Data, others at Environ("USERPROFILE")\My Documents\Program Data\Lotus\Notes\Data.

It seems to only occur on the ones where it's using the USERPROFILE environment.

Neither of which is the path that I get in the error message, by the way. (it's not specified anywhere in Notes.INI either)

Cheers,

Roel

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close