-832306935 "The operation cannot be performed because the message has been changed."

J

JohnV@nn

I'm trying to implement my own "Save and Close" button on an
appointment form. In my button-click handler, I am calling
_thisAppointment.Save(). The item does get saved, but I also get an
exception

"The operation cannot be performed because the message has been
changed."

The error code is -832306935. Does anyone know what will cause this
exception? I'm able to save the item by pressing ctrl-S with no
errors.

Thanks,
John
 
K

Ken Slovak - [MVP - Outlook]

Are you moving or changing the item in your code or in the Item.Write event
handler?
 
J

JohnV@nn

Yes, I'm changing some user properties in the Write event. But this
also happens when I save by pressing ctrl-S.
 
K

Ken Slovak - [MVP - Outlook]

See if the error goes away if you comment out the code that changes things
in Write. If that fixes the problem then you need to release your handles to
the Outlook objects before Write would fire. Without seeing your code I
don't know what you're doing but something in your click event handler for
your button is doing something that leads to the conflict.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top