none
[MS-ASCMD] Sync Request - ConversationMode data type RRS feed

  • Question

  • We were trying to Sync the Exchange 2010 for ConversationMode

    Following is what is specified in the specifications

    (http://msdn.microsoft.com/en-us/library/ee203491%28v=EXCHG.80%29.aspx)
    2.2.2.19.1.2.1.1.7 ConversationMode

    Setting the <ConversationMode> element to FALSE in a Sync request results in the synchronization of items that meet the criteria of the <FilterType> value. Setting <ConversationMode> to TRUE expands the result set to also include any items with identical <email2:ConversationId> values to those in the <FilterType> result set.

     

    As per the XSD in the specification the type is specified as xs:boolean


    http://msdn.microsoft.com/en-us/library/ee158440%28v=EXCHG.80%29.aspx

    2.2.2.19.1 Request

    <xs:element name="ConversationMode" minOccurs="0" type="xs:boolean"/>

    W3C defines xs:boolean as follows and the valid values associated:


    http://www.w3.org/TR/xmlschema-2/#boolean
    3.2.2.1 Lexical representation

    An instance of a datatype that is defined as ·boolean· can have the following legal literals {true, false, 1, 0}.

     

    http://msdn.microsoft.com/en-us/library/ee219871%28v=EXCHG.80%29.aspx

    Exchange 2010 server was returning Status 4 (protocol error) 2.2.2.19.2.1.1 Status

    if the <ConversationMode> had values false or FALSE (as mentioned in specs) only the values 0 was accepted by the exchange server.

    Just wanted to clarify is it by design of exchange server 2010 that all the xs:boolean allowed values is "0" and "1" and not as per the W3C recommendation.

    Thanks

    Sireesh

    Friday, March 4, 2011 8:15 AM

Answers

  • Sireesh,

    It seems that only the numeric equivalent of the boolean values are acceptable. I have filed a bug against the documentation and this will be corrected in a future release of the documentation.

    • Marked as answer by King Salemno Thursday, March 24, 2011 5:50 AM
    Thursday, March 24, 2011 5:47 AM

All replies

  • Hi Sireesh, thank you for your question. A member of the protocol documentation team will respond to you soon.
    Josh Curry (jcurry) | Escalation Engineer | US-CSS DSC Protocols Team
    Friday, March 4, 2011 3:17 PM
    Moderator
  • Sireesh,

    I am currently investigating this and will update you with more information as it is obtained.

     

    Monday, March 7, 2011 7:45 PM
  • Sireesh,

    Is the collection you are attempting to use <ConversationMode> store e-mail results?

    Notice the following note:

    Specifying <ConversationMode> for collections that do not store e-mails results in an invalid XML error, <Status> value 4.

    Is this the case and this note is incorrect?

    Also, do you have any wire traces of this behavior that you could send to dochelp [at] microsoft.com?

    Thank you.

    Tuesday, March 8, 2011 6:14 PM
  • Hi

       The store is email only.

       I will soon post the traces in this forum.

    Thanks

    Sireesh

    Friday, March 11, 2011 6:54 AM
  • Sireesh,

    Thank you. I am still investigating on my end.

    Monday, March 14, 2011 5:55 PM
  • Hi,

       Please find the traces i have partially erased the optimized URI which is sufficient to identify the protocol version is 14.0 and not above or below

    Surprisingly today i am receiving ServerError 110 status and not the status 4 reported earlier which doesn't makes sense to me.

     

    Date: Tue, 22 *** **** 06:19:00 GMT

    http://172.24.6.87/Microsoft-Server-ActiveSync?jA4JBA********************
    Content-Type: application/vnd.ms-sync
    <?xml version="1.0"?>
    <!DOCTYPE AirSync PUBLIC "-//AIRSYNC//DTD AirSync//EN" "http://www.microsoft.com/">
    <GetItemEstimate xmlns="ItemEstimate">
     <Collections>
      <Collection>
       <SyncKey xmlns="AirSync">1888293344</SyncKey>
       <CollectionId>5</CollectionId>
       <ConversationMode xmlns="AirSync">false</ConversationMode>
       <Options xmlns="AirSync">
        <Class>Email</Class>
        <FilterType>1</FilterType>
       </Options>
      </Collection>
     </Collections>
    </GetItemEstimate>


    Http Status Code : 200 
    Content-Type: application/vnd.ms-sync
    Date: Tue, 22 *** **** 06:19:32 GMT
    Content-Length: 15
    <?xml version="1.0"?>
    <!DOCTYPE AirSync PUBLIC "-//AIRSYNC//DTD AirSync//EN" "http://www.microsoft.com/">
    <GetItemEstimate xmlns="ItemEstimate">
     <Status>110</Status>
    </GetItemEstimate>

     

    Thanks

    Monday, March 21, 2011 6:57 AM
  • Sireesh,

    I am looking into this.

    Monday, March 21, 2011 4:40 PM
  • Sireesh,

    It seems that only the numeric equivalent of the boolean values are acceptable. I have filed a bug against the documentation and this will be corrected in a future release of the documentation.

    • Marked as answer by King Salemno Thursday, March 24, 2011 5:50 AM
    Thursday, March 24, 2011 5:47 AM