none
upload repeat event using sync command RRS feed

  • Question

  • Hi all 

    I am trying create repeat event using sync command but i get status 6 error . so here is my  request. can you please say what is incorrect im my request. I build request base on ms-ascmd.  it happens on both protocol versions 12.0 and 12.1.  the truble is that this work when i try upload simple event (i.e not repeat ) when i remove Recurrence tag  request returs ok status.  help me please fix problem. 

    <Sync>

    <Collections>

    <Collection>

    <SyncKey>1382104858</SyncKey>

    <CollectionId>2</CollectionId>

    <Commands>

    <Add>

    <ClientId>1111</ClientId>

    <ApplicationData>

    <StartTime>20121018T010000Z</StartTime>

    <EndTime>20121018T020000Z</EndTime>

    <Subject>New Event</Subject>

    <Body>

    <Type>1</Type>

    <EstimatedDataSize>664</EstimatedDataSize>

    <Data>Notes</Data>

    </Body>

    <Location>New Location</Location>

    <Recurrence>

    <RecurrenceType>5</RecurrenceType>

    <Interval>11</Interval>

    <WeekOfMonth>2</WeekOfMonth>

    </Recurrence>

    </ApplicationData>

    </Add>

    </Commands>

    </Collection>

    </Collections>

    </Sync>

    Thanks


    • Edited by ialeksey Wednesday, October 17, 2012 7:24 PM
    Wednesday, October 17, 2012 7:24 PM

Answers

  • Hi ialeksey,

    Sorry for the delay.  I was able to get your request working by adding DayOfMonth and MonthOfYear elements to the Recurrence section.  MS-ASCAL alludes to this but does not explicitly call these out as required for recurring events of this type.  We will review the specification to see if additional information needs to be added to clarify. 

    Here is the complete sync add request that I used to successfully add the event:

    <?xml version="1.0" encoding="utf-8"?>
    <Sync xmlns="AirSync" xmlns:calendar="Calendar" xmlns:airsyncbase="AirSyncBase">
    <Collections>
    <Collection>
     <SyncKey>540083092</SyncKey>
     <CollectionId>1</CollectionId>
     <Commands>
      <Add>
      <ClientId>12345678A3</ClientId>
      <ApplicationData>
       <calendar:StartTime>20121031T010000Z</calendar:StartTime>   
       <calendar:EndTime>20121031T020000Z</calendar:EndTime>
       <calendar:Subject>New Event</calendar:Subject>
       <airsyncbase:Body>
        <airsyncbase:Type>1</airsyncbase:Type>
        <airsyncbase:EstimatedDataSize>664</airsyncbase:EstimatedDataSize>
        <airsyncbase:Data>Notes</airsyncbase:Data>
       </airsyncbase:Body>
       <calendar:Location>New Location</calendar:Location>
       <calendar:Recurrence>
        <calendar:Type>5</calendar:Type>
        <calendar:Interval>11</calendar:Interval>
        <calendar:DayOfMonth>31</calendar:DayOfMonth>
        <calendar:MonthOfYear>10</calendar:MonthOfYear>
       </calendar:Recurrence>
      </ApplicationData>
      </Add>
     </Commands>
    </Collection>
    </Collections>
    </Sync>

    Thanks,

    Tom

    Monday, October 29, 2012 7:24 PM
    Moderator

All replies

  • Hi Ialeksey

    Thank you for your question.  A colleague will follow up with you soon to investigate this issue.

    Regards


    Tarun Chopra | Escalation Engineer | Open Specifications Support Team

    Wednesday, October 17, 2012 8:56 PM
  • thanks for replay I am in confused and can't solve this problem is there any suggestion
    Thursday, October 18, 2012 1:06 PM
  • Hi ialeksy,

    I will look into this and get back to you shortly.

    Best regards,
    Tom Jebo
    Escalation Engineer
    Microsoft Open Specifications

    Thursday, October 18, 2012 6:01 PM
    Moderator
  • Hi ialeksy,

    The status code description from [MS-ASCMD] 2.2.3.162.16 "Status (Sync)" is:

    "6 - Error in client/server conversion. | The client has sent a malformed or invalid item."

    In my initial review of your ActiveSync command XML, I see that you use:

    <Recurrence>
    
    <RecurrenceType>5</RecurrenceType>

    However, you should be using "Type" as specified in [MS-ASCAL] 2.2.2.43.  This could be the problem.

    Tom

    Thursday, October 18, 2012 6:51 PM
    Moderator
  • thanks for replay.

    RecurrenceType actual is type i.e i only change name in my xml.

    0x4,0x1c => RecurranceType,

     

    here is my table value. http://www.phpkode.com/source/s/php-address-book/addressbook/z-push/lib/wbxml/wbxmldefs.php

    based on document http://msdn.microsoft.com/en-us/library/ee237562(v=exchg.80).asp i try build Recurrence node in my request xml. but i always get status error 6.

    i can not fix problem  can you please help. 

    Thursday, October 18, 2012 7:41 PM
  • Hi ialeksey,

    Then the next likely cause of the status code 6 would be your WeekOfMonth element.  You specify a valid value but [MS-ASCAL] 2.2.2.46 "WeekOfMonth" says:

    "The WeekOfMonthelement MUST only be included in requests or responses when the Type
    element (section 2.2.2.43) value is either 3 or 6."

    You specify a Type of 1. 

    Tom

    Thursday, October 18, 2012 8:33 PM
    Moderator
  • yes you are right  i try with 1 but get same result . i,e same response with status 6. i try with value 0 and same response.  i have no idea what can i do for solve this problem.
    Thursday, October 18, 2012 9:44 PM
  • Did you remove the WeekOfMonth element?

    Tom

    Thursday, October 18, 2012 9:49 PM
    Moderator
  • yes I add only type element which is  only required. the other elements is optional so i remove them  now my Recurrence  tag has only type child element but get same error

    <Recurrence>

    <RecurrenceType>1</RecurrenceType> //or 0

    </Recurrence>


    • Edited by ialeksey Thursday, October 18, 2012 10:21 PM
    Thursday, October 18, 2012 10:11 PM
  • Ok, let me do some testing with your sync add command and I'll try to determine what the problem is.  What version of Exchange or other server are you using?

    Tom

    Saturday, October 20, 2012 12:22 AM
    Moderator
  • thanks 

    I am using 12.0 and 12.1 versions

    Saturday, October 20, 2012 8:00 AM
  • hi Tom 

    is there any news?

    Thanks 

    Monday, October 22, 2012 9:50 PM
  • Not yet ialeksey.  Hopefully by tomorrow sometime.

    Tom

    Monday, October 22, 2012 10:23 PM
    Moderator
  • Hi Tom

    do you investigate problem ? any news?  

    Thanks

    Wednesday, October 24, 2012 8:49 PM
  • Hi ialeksey,

    Sorry for the delay.  I was able to get your request working by adding DayOfMonth and MonthOfYear elements to the Recurrence section.  MS-ASCAL alludes to this but does not explicitly call these out as required for recurring events of this type.  We will review the specification to see if additional information needs to be added to clarify. 

    Here is the complete sync add request that I used to successfully add the event:

    <?xml version="1.0" encoding="utf-8"?>
    <Sync xmlns="AirSync" xmlns:calendar="Calendar" xmlns:airsyncbase="AirSyncBase">
    <Collections>
    <Collection>
     <SyncKey>540083092</SyncKey>
     <CollectionId>1</CollectionId>
     <Commands>
      <Add>
      <ClientId>12345678A3</ClientId>
      <ApplicationData>
       <calendar:StartTime>20121031T010000Z</calendar:StartTime>   
       <calendar:EndTime>20121031T020000Z</calendar:EndTime>
       <calendar:Subject>New Event</calendar:Subject>
       <airsyncbase:Body>
        <airsyncbase:Type>1</airsyncbase:Type>
        <airsyncbase:EstimatedDataSize>664</airsyncbase:EstimatedDataSize>
        <airsyncbase:Data>Notes</airsyncbase:Data>
       </airsyncbase:Body>
       <calendar:Location>New Location</calendar:Location>
       <calendar:Recurrence>
        <calendar:Type>5</calendar:Type>
        <calendar:Interval>11</calendar:Interval>
        <calendar:DayOfMonth>31</calendar:DayOfMonth>
        <calendar:MonthOfYear>10</calendar:MonthOfYear>
       </calendar:Recurrence>
      </ApplicationData>
      </Add>
     </Commands>
    </Collection>
    </Collections>
    </Sync>

    Thanks,

    Tom

    Monday, October 29, 2012 7:24 PM
    Moderator