From: "Dwayne Smurdon @ DNA Media Pro" Date: 2003-02-06T14:34:12+09:00 Subject: Re: error adding an Outlook Contact.. This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C2CD77.2D6548D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Ok, I found my answer via IRC. It turns out that there are constants for Gender. 1 is for female and 2 is for male. -Dwayne -----Original Message----- From: Dwayne Smurdon @ DNA Media Pro [mailto:smurdon@dnamediapro.com] Sent: Wednesday, February 05, 2003 11:33 PM To: ruby-talk ML Subject: 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_000C_01C2CD77.2D6548D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable error adding an Outlook Contact..
Ok, I=20 found my answer via IRC.  It turns out that there are constants for = Gender.  1 is for female and 2 is for male.  =
 
-Dwayne
-----Original Message-----
From: Dwayne Smurdon @ = DNA Media=20 Pro [mailto:smurdon@dnamediapro.com]
Sent: Wednesday, = February 05,=20 2003 11:33 PM
To: ruby-talk ML
Subject: error = adding an=20 Outlook Contact..

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

Any thoughts?

-Dwayne


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

------=_NextPart_000_000C_01C2CD77.2D6548D0--