[python-win32] Operational errorr :
Tim Golden
mail at timgolden.me.uk
Fri Dec 21 21:54:22 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?
Thanks for that, Tim. I hadn't really understood what he was
trying to do with that Redemption.SafeContactItem thing!
Whenever I try to look up MS numbers using the negative dec.
version, I always forget that for Google, an unquoted -xxxxx
means "don't include xxxxx in the search" and always wonder
why it's unearthed this page which doesn't even include the
error number anywhere!
TJG
More information about the python-win32
mailing list