This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 5, 2015, 4:48 AM
8 Posts

Random type mismatch error - posted in wrong forum, please ignore as I can't delete.

  • Category: Other
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: random,type mismatch
  • Replies: 0

Posted this in the wrong forum - please ignore.  I reposted in the Notes 9 forum (http://www-10.lotus.com/ldd/ndseforum.nsf/xpTopicThread.xsp?documentId=EDD8DB0E5DA44B0085257E3C007F2239).  No option for me to delete, but feel free to do do Admins.

I have a piece of code that does a lookup to a view to get a document.  This works fine most of the time, however something happens to the Notes Client where the code suddenly returns a type mismatch error.  

This cannot be reproduced.

It randomly happens, then I get the user to restart the Notes client and it works fine.  When it happens to one user, it does not happen to another user doing exactly the same thing.

This is the piece of code where it errors.  As it is a type mismatch I have checked the content of the documents, done a cstr conversion, am pretty clueless as to how this is an error, and that this error disappears once the client has been reopened.

Does anyone have any thoughts on how to fix this?

        If Not (view Is Nothing) Then
            Set docFooter = view.Getfirstdocument()
            While Not (docFooter Is Nothing)
                Forall x In docFooter.ShowFooter
                    If (Cstr(x) = "13") Then    ***** <<< This is where it errors
                        Set rtFooter = docFooter.Getfirstitem("Body")
                        If Not (rtFooter Is Nothing) Then
                            Call rtMailbody.Appendrtitem(rtFooter)
                        End If
                    End If
                End Forall
                Set docFooter = view.Getnextdocument(docFooter)
            Wend
        End If

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal