[python-win32] Operational errorr :
Tim Roberts
timr at probo.com
Fri Dec 21 20:00:42 CET 2007
Antony Joseph wrote:
> I am getting Operational Error : when i try get my contacts .
> ...
> My Error:
>
> File "m1.py", line 5, in <module>
> redemption = oOutlook.CreateObject('Redemption.SafeContactItem')
> File
> "C:\Python25\lib\site-packages\win32com\gen_py\00062FFF-0000-0000-C000-00
> 0000000046x0x9x3\_Application.py", line 82, in CreateObject
> ret = self._oleobj_.InvokeTypes(277, LCID, 1, (9, 0), ((8,
> 1),),ObjectName
> pywintypes.com_error: (-2147352567, 'Exception occurred.', (4096,
> 'Microsoft Off
> ice Outlook', 'The operation failed.', None, 0, -2147221005), None)
Tim G gave you the pointer on how to do this correctly, but I wanted to
point out what the error meant. The COM error is the second large
negative number here, -2147221005. Converting that to hex, we get
800401F3. Looking up that error, we find it is CO_E_CLASSSTRING, which
means the COM class identifier is not valid.
"Redemption.SafeContactItem" is part of a third-party product, not part
of standard Outlook. Have you installed the Redemption objects?
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list