Recently, there has been an upgrade to Notes 6.02 on one our servers. And ever since that upgrade, there has been a delay between saving a document and retrieving that document. I am using a View to retrieve the document. The ironic thing is that the code works perfectly on another server but whenever I run it on the server in question, the delay problem still exists. Exactly the same code, but possibly different point releases.
Here is the partial code:
Set ansview = db.getView(“Ans_Author”)
UseRes=Evaluate({@Middle(Query_String;"User=";"&")},doc)
DocRes=Evaluate({@Middle(Query_String;"DocID=";" ")},doc)
FileRes=Evaluate({@ReplaceSubString(@SubSet(@Dbname;-1);"\\";"/")})
anskey= Cstr(UseRes(0))+Cstr(DocRes(0))
Set Q_Doc = View.GetDocumentByKey(Cstr(DocRes(0)),True)
Set A_doc = AnsView.getDocumentByKey(anskey,True)
A_doc should not be null when the document has been submitted. After the delay (random), A_doc suddenly isnt null.
Also anskey always has the correct value in it.
Does anyone have any suggestions?
Thanks,
Emeka.