Setting categories causes problems with Add-In

Add-in Express™ Support Service
That's what is more important than anything else

Setting categories causes problems with Add-In
 
Subscribe
BerndH




Posts: 114
Joined: 2014-09-23
After having a problem with my own add-in, I tried the source code from
https://cdn.add-in-express.com/blog-upload/samples/outlook-item-events.zip
and the problem is the same.

When I access a mailbox from two different computers and set/delete categories, I often get the error message like "Item was changed in the background," and the setting or deletion of them fails.

Both computers have the Exchange mailbox set to "no cache." Do you have any idea why this is happening or how I can fix it?
(Setting a category and then changing the selected mailitem for saying Outlook "save it", doesn't always work either.)


Bernd
Posted 06 Aug, 2025 10:38:42 Top
Andrei Smolin


Add-in Express team


Posts: 19169
Joined: 2006-05-11
Hello Bernd,

BerndH writes:
I access a mailbox from two different computers and set/delete categories


In what event do you do this?

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 08 Aug, 2025 18:44:01 Top
BerndH




Posts: 114
Joined: 2014-09-23
I don´t use an event.
I only use outlook "wild clicking" :-)

Bernd
Posted 11 Aug, 2025 06:26:45 Top
Andrei Smolin


Add-in Express team


Posts: 19169
Joined: 2006-05-11
Hmmm... Not sure if we are on the same page.

Does the issue at https://www.add-in-express.com/creating-addins-blog/solve-synchronization-conflict-when-modifying-outlook-item-itemadd-event/ resemble yours?

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 12 Aug, 2025 18:35:11 Top
BerndH




Posts: 114
Joined: 2014-09-23
Hm, the text says "Reportedly, turning the Cached Mode off solves the issue." I my case, the cache is off.

I only installed your source code as an addin and then I started to change categories of mail items with right click in outlook. If you do this, you have no problems with "in background changed items" ?

Okay, maybe the problem isn´t outlook with our addin?!
Posted 13 Aug, 2025 09:16:57 Top
Andrei Smolin


Add-in Express team


Posts: 19169
Joined: 2006-05-11
Hello Bernd,

I don't understand your scenario. How do you set the Categories property? In what event of the Outlook object model do you do this?

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Aug, 2025 14:53:46 Top
BerndH




Posts: 114
Joined: 2014-09-23
I set the category with a right klick on the mailitem.
This takes the outlook source code to set a category.No add-in involved ;-)

Bernd
Posted 15 Aug, 2025 08:24:50 Top
Andrei Smolin


Add-in Express team


Posts: 19169
Joined: 2006-05-11
Hello Bernd,

We can't be of help if no add-in is involved.

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Aug, 2025 11:03:47 Top
BerndH




Posts: 114
Joined: 2014-09-23
But the problem only exists, when one Outlook of my two has the demo-add-in from your website installed?!

If both Outlooks are "add-in-clean" it works...

Bernd
Posted 15 Aug, 2025 11:07:27 Top
Andrei Smolin


Add-in Express team


Posts: 19169
Joined: 2006-05-11
Is the source code of that add-in involved?

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Aug, 2025 11:11:41 Top