I have an application that syncs appointments between Outlook and my application. The syncing code uses Redemption to update the appointments in Outlook.
When an appointment is added in Outlook, my code catches the item added event, generates an equivalent appointment in my application, and adds my appointment ID as a user property in the Outlook appointment then saves it.
The strange problem I'm having is this:
- Single click on a day in the month view
- Text box shows in the day block, type in the subject, then hit Enter
- Double click the new appointment to open it right away
- Make some changes such as setting a reminder
- Hit save button
At this point, the Outlook will show me a message box saying "The item cannot be saved because it was changed by another user or in another window."
I find this happening quite often if I have my appointment syncing add-in enabled, but never happens if I disable it.
It almost looks like Outlook detects the change of my code saving the user property via Redemption and doesn't like it.
Is this because Redemption is accessing to the MAPI table directly to save the data, while Outlook still caches the appointment COM object when I open it too quickly. So that the appointment I opened is "outdated" by the time I want to save it again?
The Outlook version I'm testing against is Outlook 2016.