Domino 9 und frühere Versionen > Administration & Userprobleme

Fehlermeldung bei periodischem Agenten

(1/1)

MrMagoo:
Hallo folgende Fehlermeldung steht im Notes Protokoll.

AMgr: Agent ('XXX' in 'XX\XX.nsf') Fehlermeldung: Invalid universal id

Ich lasse einen periodischen Agenten laufen. Kennt die jemand?
Danke

Glombi:
Hi,
evtl. ist das die Ursache:
With all Notes Releases:  When you have a handle to a parent document and mistakenly attempt to use ParentDocumentUNID with the GetDocumentByUNID method, the following error occurs:

"Invalid universal ID"

The error code associated with this message is 4091.

It is important to note that this is the same error message you receive when you attempt to access the parent of an orphan in Notes releases 4.6, 4.6a, and 4.6.2x.

One way to avoid trying to access the parent of a document that is actually a parent itself is to use the IsResponse property (of the NotesDocument class).  This methodology is utilized in the Conclusion section of the technote.

Andreas

MrMagoo:
Danke Glombi,
 
ich arbeite in dem Agenten zwar mit getdocumentby Key aber nicht mir Parentdocument.

Glombi:
Trotzdem kann der Fehler "durch internen Notes Source Code" auftreten (steht jedenfalls so in der Lotus Knowledge Base).

Um das abzufangen kannst Du mit
On Error goto....

arbeiten, damit er wenigstens die anderen Dokumente bearbeitet.

Wenn das bspw. in einer While Schleife ist mache ich das so:

on error goto ErrorHandling_While
set doc = dc.GetFirstDocument
while not (doc is nothing)
'hier der Code....

NextDocument:
set doc = dc.GetNextDocument(doc)

wend

exit sub

ErrorHandling_While:
resume NextDocument

exit sub

MrMagoo:
Danke, probiere ich mal aus
Gruß

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln