‘Updating search context’ has encountered as problem

5 pts.
Tags:
Lotus Domino 8.5
Lotus Script
I have lotus script code and when I run the program, there is intermittent error :  'Updating search context' has encountered as problem. It appears before the page is open, but when clicked ok, the program continue to run OK. Sometimes it ouccrs, sometimes it does not. What causes this error? code: Sub Postopen(Source As Notesuidocument)     'jdm.01242012.EnableViewDB_GoTo parm     Dim session As New NotesSession     Dim workspace As New NotesUIWorkspace     Dim db As NotesDatabase     Dim doc_profile As NotesDocument     Dim ipAddress As HostIP_Address     Dim v_EnableAccessToLogonPage As String     Dim v_EnableViewDB_GoTo As String     Set ipAddress = New HostIP_Address     Set db = session.CurrentDatabase     Set doc_profile =  db.GetProfileDocument("Notes ID Profile",session.CommonUserName + "~" + ipAddress.GetHostName + "~" + ipAddress.GetClientIP)     If doc_profile.IsProfile Then         v_EnableAccessToLogonPage = doc_profile.EnableAccessToLogonPage(0)     End If            '----------------------------------------------------------------------------------------------------------     'jdm.01242012.default trap check if logged in (PM_2011_12_078383)     'jdm.02.0842012.prevent logonpage to open if already loggedon (PM_2011_12_078383)     If Instr(workspace.currentview.viewname,"(Default View)") >= 1 Then         Dim v_LogonString As String         Dim uidb As NotesUIDatabase    '03142012 compare uidb before reset         v_LogonString = doc_profile.DBLogonString(0)         If v_LogonString <> "" Then             Set uidb = workspace.CurrentDatabase    '03142012 compare uidb before reset             If uidb Is Nothing Then                            '03142012 compare uidb before reset                  doc_profile.DBLogonString = ""            '03142012 compare uidb before reset                 Call doc_profile.Save(True,True)             End If             Call workspace.CurrentView.Close             Exit Sub         End If            Call workspace.CurrentView.Close   '02.27.2012     End If     '----------------------------------------------------------------------------------------------------------        If getDB_ProfileDocVariable("EnableViewDB_GoTo","Open",db) = "No" Then         If v_EnableAccessToLogonPage <> "Yes" Then             Msgbox "Database Go To is not allowed, please click [OK] to continue..",48,"Database Go To Not Allowed"                Call workspace.CurrentView.Close    '02.27.2012         End If            Call workspace.CurrentView.Close    '02.27.2012     Else         If v_EnableAccessToLogonPage = "Yes" Then             Call workspace.CurrentDocument.Close                Else                        Call workspace.PickListStrings(PICKLIST_CUSTOM,False, _             db.Server,db.FilePath,    _             workspace.currentview.viewname,_             "Database Go To Allowed","EnableViewDB_GoTo is Enabled",1,"")             Call workspace.CurrentDocument.Close         End If     End If     If v_EnableAccessToLogonPage = "Yes" Then         Call workspace.SetTargetFrame("")            Call workspace.OpenFrameSet("Frameset_LogonPage")     End If    End Sub

Software/Hardware used:
Lotus Script: domino

Answer Wiki

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

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