none
Invalid XML returned for a user's Master Category list using Office 365 and EWS API (C#) RRS feed

  • Question

  • Hi all

    Having a problem with one user's Master Category List. The Xml returned by the UserConfiguration call is corrupted (see below - superfluous /categories tag!) It is fine for other users.

    Wondering if anyone has seen this before?

    Thanks

    James

    <?xml version="1.0"?>
    <categories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" default="" lastSavedSession="2" lastSavedTime="2013-12-18T15:39:00.837" xmlns="CategoryList.xsd">
    	<category name="Red Category" color="0" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="2013-12-17T10:51:29.974" lastTimeUsed="2013-12-17T10:51:29.974" lastSessionUsed="3" guid="{00000000-0000-0000-0000-000000000000}"/>
    </categories>
    ="Blue Category" color="7" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="2012-03-26T08:16:46.052" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}" renameOnFirstUse="1"/>
    	<category name="Kids" color="4" keyboardShortcut="0" usageCount="7" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="2012-03-26T08:49:30.305" lastTimeUsedMail="2012-09-03T14:33:29.077" lastTimeUsed="2012-09-03T14:33:29.077" lastSessionUsed="2" guid="{00000000-0000-0000-0000-000000000000}"/>
    	<category name="Purple Category" color="8" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="2012-03-26T08:16:46.052" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}" renameOnFirstUse="1"/>
    	<category name="Orange Category" color="1" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="2012-09-03T14:35:33.995" lastTimeUsed="2012-09-03T14:35:33.995" lastSessionUsed="2" guid="{00000000-0000-0000-0000-000000000000}"/>
    	<category name="Yellow Category" color="3" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="2012-09-03T14:35:57.543" lastTimeUsed="2012-09-03T14:35:57.543" lastSessionUsed="2" guid="{00000000-0000-0000-0000-000000000000}"/>
    	<category name="Synchronised with Infinity" color="19" keyboardShortcut="0" usageCount="0" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="1601-01-01T00:00:00.000" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}"/>
    	<category name="Processed by iCapture" color="20" keyboardShortcut="0" usageCount="0" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="1601-01-01T00:00:00.000" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}"/>
    </categories>
    

    Tuesday, February 4, 2014 4:55 PM

All replies

  • If its only one user then its probably unlikely that EWS is at fault and what is happening is because its been corrupted in the MAPI property for Master categories list. (eg from the looks of some of the entries "Synchronised with Infinity" there is a third party app they may have modified this list ?). Exchange doesn't validate what you try to post to that property so if something has posted bad data then that's what you'll end up with.

    I would suggest you open the Master categories list in MFCMapi see http://blogs.technet.com/b/outlooking/archive/2010/05/14/useful-tools-while-troubleshooting-outlook-issues-3-mfcmapi.aspx and verify what's in the property. If it looks okay in a MAPI editor and bad in EWS then it maybe a bug but you need to be able to reproduce it with other users, more then likely you just need to delete the Master Caterogies list and start again for that user.

    Cheers
    Glen

    Wednesday, February 5, 2014 4:54 AM
  • Hi Glen,

    Thanks for getting back.  I've downloaded the app and have logged on to it, but am at a loss as to where I'd find the Master Category list. Can you give me a pointer?

    Yes there are some Categories that we've added via our application, but that code has been in there since the year dot and we've only started having the issue with this one user in the last couple of days.

    Thanks again

    James

    Wednesday, February 5, 2014 10:17 AM
  • You need to right click on the Calendar folder for the Mailbox and select the menu option to open the associated Items for that folder. In that list of Items you should find an Item like

    IPM.Configuration.CategoryList

    You then need to check the 0x7C080102  property on that item.

    Cheers
    Glen

    Thursday, February 6, 2014 8:27 AM
  • Hi James,

    Did you figure out why your Master Category List became corrupted? I'm currently struggling with the same problem. 

    We build a product which adds custom Outlook categories and for one user we encountered this problem. Unfortunately his mailbox is no longer available thus it's not possible to look at 0x7C080102 property. We use the code from http://www.infinitec.de/post/2011/07/28/Working-with-the-Master-Category-List%E2%80%93EWS-edition.aspx, it worked for us for about a year.

    The problem has appeared only few times, at random days. User was managing his categories by both Outlook and our application so I suspect there might be a kind of concurrency/synchronization issues which I cannot identify.

    I tried some stress test scenarios to reproduce it without any luck.

    Any comments or ideas will be very appreciated!

    Thanks,

    Anton

    Thursday, October 29, 2015 3:21 PM