Eigentlich nicht.
Das komische ist zudem, dass wenn ich den Agenten manuell starte, läuft er ohne Probleme durch & er ist auf einem anderen Server ohne Probleme gelaufen.
Anbei noch mal der komplette Quellcode des Agenten.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim tempdoc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView("($DelFlag)")
Set doc = view.GetFirstDocument
If doc Is Nothing Then
Set doc = New NotesDocument(db)
doc.Form = "DeleteFlag"
doc.CanDelete = "1"
Else
Call doc.ReplaceItemValue("CanDelete","1")
End If
Call doc.Save(True, False)
Set view = db.GetView("($DBLocked)")
Set doc = view.GetFirstDocument
If doc Is Nothing Then
Set view = db.GetView("($DelFlag)")
Set doc = view.GetFirstDocument
Call doc.ReplaceItemValue("CanDelete","0")
Call doc.Save(True, False)
Exit Sub
End If
While Not ( doc Is Nothing )
Set tempdoc = doc
Set doc = view.GetNextDocument( doc )
If db.GetOption(DBOPT_SOFTDELETE) Then
Call tempdoc.RemovePermanently(True)
Else
Call tempdoc.Remove(True)
End If
Wend
Set view = db.GetView("($DelFlag)")
Set doc = view.GetFirstDocument
Call doc.ReplaceItemValue("CanDelete","0")
Call doc.Save(True, False)
End Sub