none
UID property of Calendar Null Exchange Web Services 2010 SP2 RRS feed

  • Question

  • Hi,

    I'm using Java to consume EWS APIs. I am trying to fetch Calendar items within a certain date range. For few Calendars items I'm getting UID property as null. As per the MSDN documentation UID of Calendar cannot be null or empty reference http://msdn.microsoft.com/en-us/library/office/bb891878(v=exchg.150).aspx 

    Here is the request payload:

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    	<soap:Header>
    		<t:RequestServerVersion Version="Exchange2007_SP1" />
    	</soap:Header>
    	<soap:Body>
    		<GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    			<ItemShape>
    				<t:BaseShape>IdOnly</t:BaseShape>
    				<t:AdditionalProperties>
    					<t:FieldURI FieldURI="calendar:Organizer" />
    					<t:FieldURI FieldURI="calendar:OptionalAttendees" />
    					<t:FieldURI FieldURI="calendar:RequiredAttendees" />
    					<t:FieldURI FieldURI="item:Body" />
    					<t:ExtendedFieldURI PropertyTag="0x1013" PropertyType="Binary" />
    					<t:ExtendedFieldURI PropertyTag="0x1000" PropertyType="String" />
    					<t:FieldURI FieldURI="item:DateTimeCreated" />
    					<t:FieldURI FieldURI="calendar:Start" />
    					<t:FieldURI FieldURI="calendar:End" />
    					<t:FieldURI FieldURI="calendar:Location" />
    					<t:FieldURI FieldURI="item:LastModifiedTime" />
    					<t:FieldURI FieldURI="calendar:AppointmentSequenceNumber" />
    					<t:FieldURI FieldURI="item:Subject" />
    					<t:FieldURI FieldURI="item:ItemId" />
    					<t:FieldURI FieldURI="item:ParentFolderId" />
    					<t:FieldURI FieldURI="calendar:UID" />
    				</t:AdditionalProperties>
    			</ItemShape>
    			<ItemIds>
    				<t:ItemId Id="AAMkADlkMGVlMGNlLTljNDktNGFlMi1iZmIyLTJhMzcyNDg2NDg4NwBGAAAAAABXjL+81Py5TY5OXVsf4Q4NBwDlZIRAnXFLTrTCydbbFjQEAACkS8cwAAA5cSgq91wDQp3guH/kYhAjAEPbSRyBAAA=" />
    			</ItemIds>
    		</GetItem>
    	</soap:Body>
    </soap:Envelope>

    In the response I do get UID field at all which in turn is evaluated null.

    Can somebody confirm whether it's an issue with exchange? Because we have written out business logic with an assumption that UID will never be null.

    Thanks


    Nitin Arora


    • Edited by aronitin Wednesday, April 9, 2014 12:52 AM
    Wednesday, April 9, 2014 12:51 AM

All replies

  • What version of Rollup are you at with SP2 ? Also have you tried versioning your requests to Exchange 2010_SP2 ? you might also want to try testing this with the EWSEditor to see if you get the same results http://ewseditor.codeplex.com/ .

    As a general rule the best id to use for calendaring would be the CleanGlobalObjectId http://blogs.msdn.com/b/mstehle/archive/2009/09/02/ews-uid-not-always-the-same-for-orphaned-instances-of-the-same-meeting.aspx . You can get this using and Extended Properties and it should never be blank

    Cheers
    Glen

    Wednesday, April 9, 2014 5:40 AM
  • Hi Glen,

    Thanks for the reply. The problem that we are facing is on one of our client's exchange server.

    1. I don't exactly know the Rollup version for SP2. But below is the response that I receive from our client's exchange server.

    <h:ServerVersionInfo MajorVersion="14" MinorVersion="3" MajorBuildNumber="174" MinorBuildNumber="1" Version="Exchange2010_SP2" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

    2. Yes I tried to version requests to Exchange 2010_SP2 but got the same results.

    3. Since this problem is coming at one of our client's exchange server we cannot use ewseditor to test.

    4. I will try to fetch the CleanGlobalObjectId and will update this post with results.

    Thanks


    Nitin Arora



    • Edited by aronitin Wednesday, April 9, 2014 10:26 PM
    Wednesday, April 9, 2014 10:24 PM
  • >> ServerVersionInfo MajorVersion="14" MinorVersion="3" MajorBuildNumber="174" MinorBuildNumber="1"

    This translates to Service Pack3 Rollup 4 http://technet.microsoft.com/en-us/library/hh135098(v=exchg.150).aspx (Exchange2010_SP2 is just the schema version which is the same on SP2 and SP3). Rollup 5 is the latest rollup for 2010 SP3.

    Cheers
    Glen

    Thursday, April 10, 2014 4:33 AM