Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Agent cannot access to domain folders

Posted on 2003-11-25
3
205 Views
Last Modified: 2010-04-22
Hi All,

I am having this problem in R6 not in R5. THis is an auto agent to pull files from folder. The workstation where the files are located is in domain as for the domino server is not in domain. When i tried to run manually it can work but set to auto-schedule it can't. Error msg is file not found. i have checked the file is located in that folder. Initially it was Permission denied then i set my agent to share and allow others to view and run .The following is my code

Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As Notesdocument
Dim form As NotesForm
Dim rtitem As NotesRichTextItem
Dim object As NotesEmbeddedObject
Dim m As String
Dim d As String

Set db = session.CurrentDatabase
Set doc = db.CreateDocument
Set form = db.Getform("Document")
Set doc = New NotesDocument( db )
Set rtitem = New NotesRichTextItem( doc, "Body" )

m = "x:\Oep-hq\Daily Sales Performance for NSOs without Cost & GP.xls"
n = "x:\Oep-hq\ErrFile\Daily Sales Performance NSC and NSO Err file.txt"
Print "............"Left(Cstr(Filedatetime(n)),8) " " Cstr(Today)
doc.Date = Today
doc.Form = "Document"
doc.Categories = "Daily Accumulated Sales Performance for NSOs Without Cost & GP"
doc.Index = "BPR Report"
doc.Country = "[OEP-SG]"
doc.From = "Dwhadmin Oepis"
'doc.Authors =
'doc.Readers = "[OEP-HQ]"
doc.Subject = "Daily Accumulated Sales Performance for NSOs without Cost & GP"
Call doc.Save(True,True)

What is the problem?Is it the domain? Then why R5 work? Is it R6 have higher security?Or is there anything i need to set ?

Pang
0
Comment
Question by:Horse
3 Comments
 
LVL 13

Accepted Solution

by:
CRAK earned 500 total points
ID: 9823129
My guess would be that the R5 server does, and the R6 server does NOT have access to the drive, share, folder or file.
That would mean that this is an OS-administrator issue rather than a developper one: it works in R5 (checked it), so the code is ok.

(Why assign "doc" twice? And why not "print <statement> & <statement>", using "&" as concatenation operator to make the codeeasier to read?)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question