Error: MAPI_E_NOT_FOUND(8004010F) fixed in 2002?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm get this error running on an Outlook 2002 client. I
thought this was fixed. Any help on resolving this error
 
The error means that an Extended MAPI expected property was not found on a
message, folder, etc.
When exactly do you get that error?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thank you for your quick response.

I am reciving this error when I try to get the
MeetingStatus property from a MAPI.AppointmentItem object.

Your help is greatly appreciated.
 
No, it does not happen with every appointment.

I do know which appointment items it does happen to. So
if there is anything I can do to solve this mystery I
would be glad to give it a try if you have any ideas.
 
I did not see a CDO property for "MeetingStatus" however
I did see one as CdoPR_MSG_STATUS. When I use this code

CDOApptItem.Fields(CdoPR_MSG_STATUS) I will recive the
MAPI_E_NOT_FOUND error.

I did some further testing just to make sure the above
code would work so I used CdoPR_Subject and I was able to
print the value of that field. I also attempted to call
Update(false,true) and I also get the error.

Any further thoughts?

PS I opened up the entry (it is an repeating appointment)
and resaved it and still the same problems.
 
Look at the message using OutlookSpy (click IMessage button), change the
meeting status, then click IMessage again and compare the properties to find
out which named property is responsible for the meetiung status.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
I looked for the Meeting Status and was unable to find
the property. However I also recive this error when I
try to use GetRecurrenceParent of an appointment after
checking the IsRecurring property.

When I opened up a Meeting using the OutlookSpy I did
find many other properties that have the MAPI_E_NOT_FOUND
error in the value column.

I could send you the message or a screen shot if you'd
like. I just can't past an image here or attach files to
this newsgroup.
 
It is a named property with GUID = {00062002-0000-0000-C000-000000000046}
and id = 0x8217, type is PT_LONG

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thank you for the direction. I brought up the
AppointmentItem that is causing the error using
OutlookSpy. The MeetingStatus property is not listed. I
brought up a diffrent item and the MeetingStatus property
was listed and I was able to see the value.

I created a new copy of that appointment, opened it and
resaved it and still no MeetingStatus property.

Thank you for your direction below.
 
I don't know why the property is missing, but at least the error
(MAPI_E_NOT_FOUND) makes sense :-)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Well.... Thanks for your help!

I will probably stop montering this thread at the end of
this week so if you ever stumble across an answer after
that you can send me an email. Which I'll provide on
request.
 
Hopefully you will get this Dmitry. I have been playing
around with your OutlookSpy program and I have a question
for you.

If I select the Calendar Folder then click on CDO and
select the Folder from the OutlookSpy toolbar I then
navigate to the Script tab and run the following script.

DIM CDOMESSAGES
DIM CDODFLTMESSAGES
DIM FLDR
SET FLDR = CDOSESSION.GETDEFAULTFOLDER(CDODEFAULTCALENDAR)
SET CDODFLTMESSAGES = FLDR.MESSAGES
SET CDOMESSAGES = FOLDER.MESSAGES

DEBUG.PRING CDODFLTMESSAGES.COUNT
DEBUG.PRING CDOMESSAGES.COUNT


Result :
2147483647
975

What is the deal? Why do they differ?
 
2147483647 is 0x7FFFFFFF, which is -1, which means "I have no idea how many
messages you have because of the posible recurrences in the Calendar
folder".
What OutlookSpy displays is the regular (non-Calendar) CDO folder - CDO is
not smart enough to realize that it is really a Calendar folder, you need to
force it to return its Calendar-aware version of the Folder object by
calling Session.GetDefaultFolder().

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top