Has anyone experienced any changes in the performance of ‘GetDocumentByUNID’ in ND6 ?
It always used to be the case in R5 that if you fed the UNID of a deleted document to GetDocumentByUNID it would still be found - then you could use checks like IsValid or IsDeleted to ascertain whether you actually had a deletion stub or not.
I am finding at the moment that GetDocumentByUNID is producing the ‘Invalid Note ID’ exception when I feed GetDocumentByUNID the UNID of a Deleted Document that I KNOW is in the DB (I can see it in NotesPeek).
My code (which I don’t think is the issue) is below:-
Let DeletionStubUNID = rollback_Doc.rollback_OldValue(rollbackAuditID)
Set DeletionStub = rollback_ProcessDB.GetDocumentByUNID(DeletionStubUNID)
…nothing too complicated I’m sure you’ll agree. The ‘DeletionStubUNID’ string is being populated correctly with the expected UNID.
If GetDocumentByUNID doesn’t return the Deletion Stub in ND6 does anyone know an alternative way to grab a handle to deleted documents ?
Many thanks.