Getting error 4005 when scheduling LotusScript agent

351865 pts.
Tags:
Lotus Notes
LotusScript
We have a LotusScript agent that we want to loop through documents (in a view) and extract the attached files to a folder on our server. This is our code:
'extract file
If Not IsEmpty(rtitem.embeddedObjects) Then
    ForAll o In rtitem.EmbeddedObjects
        If (o.Type = EMBED_ATTACHMENT) Then
            Call o.ExtractFile("\TestServerTestFolder"+o.name)
        End If
    End ForAll
End If
It's been working fine when it's running through the Lotus Notes client. But when it's scheduled, we keep getting the following error: Error: 4005 - Notes error: Logon failure: unknown user name or bad password. We've tried to change the security settings to allow restricted operations with full administration rights but it keeps happening. What should we do?

Answer Wiki

Thanks. We'll let you know when a new response is added.

My first suspicion would be the write permissions on the folder you’re writing to.  When you run from the client, the write operation is being performed with your network credentials.  When it runs from the server, there’s no one “logged on” so there are no individual credentials to use.  Either have the write permissions on the folder made less restrictive, or check the event viewer for the write failure and find the ID that’s trying to perform the write operation and grant it permission.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following