From: "Dwayne Smurdon @ DNA Media Pro" Date: 2003-02-06T13:32:45+09:00 Subject: error adding an Outlook Contact.. This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C2CD6E.97637710 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Ok, I'm adding in new Contacts in Outlook from a MS SQL Server database. It fails on Gender. If I add the gender field to 'user1' or something else, it's just fine. At first I thought it was because my datasource has an "M" instead of "Male" -- so catch that and change it. Below is the debug output from my script. Any thoughts? -Dwayne This is where I am (PREIT-RUBIN Inc.) CompanyName This is where I am (R.) MiddleName This is where I am (Dudley) FirstName This is where I am (Male) GENDER ./OutlookContact.rb:18:in `method_missing': (WIN32OLERuntimeError) OLE error code:4096 in Microsoft Outlook Type Mismatch: Unable to coerce parameter value. Outlook cannot translate your string. HRESULT error code:0x80020009 ------=_NextPart_000_0004_01C2CD6E.97637710 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable error adding an Outlook Contact..

Ok,  I'm adding in new Contacts in Outlook from a = MS SQL Server database.  It fails on Gender.  If I add the = gender field to 'user1' or something else, it's just fine.  At = first I thought it was because my datasource has an "M" = instead of "Male" -- so catch that and change it.  Below = is the debug output from my script. 

Any thoughts?

-Dwayne


This is where I am (PREIT-RUBIN Inc.)   = CompanyName
This is where I am (R.) MiddleName
This is where I am (Dudley)     = FirstName
This is where I am = (Male)       GENDER
./OutlookContact.rb:18:in `method_missing':  = (WIN32OLERuntimeError)
    OLE error code:4096 in Microsoft = Outlook
      Type Mismatch: Unable = to coerce parameter value. Outlook cannot translate your string.
    HRESULT error = code:0x80020009

------=_NextPart_000_0004_01C2CD6E.97637710--