PC Review


Reply
Thread Tools Rate Thread

Delete recurring appointment with MAPI DeleteMessages()?

 
 
Eric
Guest
Posts: n/a
 
      28th Jan 2004
Whenever I try and delete a recurring appointment item using
IMAPIFolder:eleteMessages() it fails with this error:

MAPI_W_PARTIAL_COMPLETION

The item is not deleted, and none of the ocurrences are deleted
either. I'm just trying to delete the entire item. I am able to use
the same code to delete any other item, just not recurring appointment
items. Do I need to do something special to delete them, maybe remove
the IsRecurring (whatever MAPI property it maps to) flag first?

I notice I am able to delete these items using Outlook Spy's
IMAPIFolder GUI. I view the "Contents Table" tab and then click the
"delete" button, and it removes it without any errors. Maybe I'll try
MDBView also since that lets me get to a bit lower level... If anyone
has a "tested" (or documented) answer that would be appreciated
though, and safer than me just trying something new.
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      28th Jan 2004
Make sure there are no outstanding references to the appointment or any of
its subobjects (attachments, etc).

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


"Eric" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Whenever I try and delete a recurring appointment item using
> IMAPIFolder:eleteMessages() it fails with this error:
>
> MAPI_W_PARTIAL_COMPLETION
>
> The item is not deleted, and none of the ocurrences are deleted
> either. I'm just trying to delete the entire item. I am able to use
> the same code to delete any other item, just not recurring appointment
> items. Do I need to do something special to delete them, maybe remove
> the IsRecurring (whatever MAPI property it maps to) flag first?
>
> I notice I am able to delete these items using Outlook Spy's
> IMAPIFolder GUI. I view the "Contents Table" tab and then click the
> "delete" button, and it removes it without any errors. Maybe I'll try
> MDBView also since that lets me get to a bit lower level... If anyone
> has a "tested" (or documented) answer that would be appreciated
> though, and safer than me just trying something new.



 
Reply With Quote
 
Eric
Guest
Posts: n/a
 
      29th Jan 2004
Thanks, in this case it ended up being that I was using PR_RECORD_KEY
by mistake, instead of PR_ENTRYID, to try and delete the item. With
Exchange folders those two keys are very similar, and it slipped past
me in the debugger, until I switched over to a non-exchange folder and
noticed what I thought was the entryid was only 4 bytes long =)

"Dmitry Streblechenko \(MVP\)" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Make sure there are no outstanding references to the appointment or any of
> its subobjects (attachments, etc).
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "Eric" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Whenever I try and delete a recurring appointment item using
> > IMAPIFolder:eleteMessages() it fails with this error:
> >
> > MAPI_W_PARTIAL_COMPLETION
> >
> > The item is not deleted, and none of the ocurrences are deleted
> > either. I'm just trying to delete the entire item. I am able to use
> > the same code to delete any other item, just not recurring appointment
> > items. Do I need to do something special to delete them, maybe remove
> > the IsRecurring (whatever MAPI property it maps to) flag first?
> >
> > I notice I am able to delete these items using Outlook Spy's
> > IMAPIFolder GUI. I view the "Contents Table" tab and then click the
> > "delete" button, and it removes it without any errors. Maybe I'll try
> > MDBView also since that lets me get to a bit lower level... If anyone
> > has a "tested" (or documented) answer that would be appreciated
> > though, and safer than me just trying something new.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete a recurring appointment that I have imported? =?Utf-8?B?bXRicGFpZ2U=?= Microsoft Outlook Calendar 0 26th Oct 2006 07:38 PM
How can I delete a recurring appointment in Outlook that has an er =?Utf-8?B?QmFyYkM=?= Microsoft Outlook Calendar 0 13th Jun 2005 04:31 PM
change, delete recurring appointment =?Utf-8?B?0JbQvtGB0YHQtdC70Lc=?= Microsoft Outlook Calendar 0 20th May 2005 12:01 PM
Can Not Delete Recurring Appointment gcd Microsoft Outlook Discussion 0 30th Dec 2004 05:13 PM
DeleteMessages for Appointment items, how to update free/busy cache? Eric Microsoft Outlook Program Addins 0 28th Apr 2004 10:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 AM.