• Vcard causes Misatch error

    By Louis Benioff 2 decades ago

    I am running a Notes 8 and 7.02 client on two different machines using the 8.0 template. Both come up with a tyep mismatch error if I have selected to incude a Vcard. The error in 8 reads: Type mismatch in method ForAllInit: FromVar found, unknown expected.

    • Can you debug a bit?

      By Vince Schuurman/NotesOSS 2 decades ago

      It works for me so hard to fix :(

    • Vcard causes Misatch error

      By Alix Gilles 2 decades ago

      I get the same error. Error occurs on all messages in database when double clicked.



      Only happens in OpenNTF mail template. When switching mail file to regular Lotus 8 template vCard works fine.

      • Can you debug?

        By Vince Schuurman/NotesOSS 2 decades ago

        Since I don't get the error I can't find it

        • Type Mismatch on vCards

          By Gordon Inkson 2 decades ago

          Hi Vince,

          I experienced the same issue (with ONTF ME 8.0.2) and then did the requisite digging/debugging. Here's the deal:


          • The issue is with the creation of the vCard attachment on the profile.
          • Sub writeVCard in library OpenNTFLibraryUI is currently called from InvokePreferences in library Preferences.
          • However, InvokePreferences has been decommissioned (see comments at the top of the sub).
          • I moved the ONTF calls to writeVCard and RebuildQFOutline into the function Pref_Save in library Preferences.
          • This meant the subs were called on a Preferences save.
          • However, there was a new issue with writeVCard because there was now an item ONTF_VCardFile on my profile with no attachments.
          • This meant there was a Type Mismatch with the code that clears old attachments.
          • I added a couple of Ifs to that code (If doc.HasEmbedded and If Not ( rtItem.EmbeddedObjects is Nothing ). This seemed to clear the issue.



            My guess is you wouldn't get the problem if your profile already had a vCard. It was only if people used vCard for the first time with this template.



            Hope that helps.



            Regards,

            Gordon



            PS - Keep up the good work. ONTF is excellent.