locked
[EWS] Cancel a recurring series RRS feed

  • Question

  • I am revisiting this as i have found an issue when cancelling an appointment series.

    I do that by creating a CancelCalendarItem and use the id of the recurring master as ReferenceItemId

    The Server replies with ErrorPropertyValidationFailure: "At least one property failed Validation"

    here is my full request:

    <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
       <v:Header>
          <n0:RequestServerVersion Version="Exchange2010_SP1" xmlns:n0="http://schemas.microsoft.com/exchange/services/2006/types"/>
       </v:Header>
       <v:Body>
          <n1:CreateItem MessageDisposition="SendAndSaveCopy" xmlns:n1="http://schemas.microsoft.com/exchange/services/2006/messages">
             <n1:Items>
                <n3:CancelCalendarItem xmlns:n3="http://schemas.microsoft.com/exchange/services/2006/types">
                   <n3:ReferenceItemId Id="AAMkADUwYjRkZTEzLThmNDctNGY4NC1hOTkxLWZjY2Y2ZmNlZGM0MwBGAAAAAACeWOzwuSt/T7F3xqtKxoElBwDK9as4chtYSKM9dU/3KGiYAAAAJDtUAADEhKstbSqtRYSQ+LCX0M/RAADdMct4AAA=" ChangeKey="DwAAABYAAACa1bwZBJD6TIBAlswnwZoqAAD1gDJ+"/>
                   
                </n3:CancelCalendarItem>
             </n1:Items>
          </n1:CreateItem>
       </v:Body>
    </v:Envelope>

    Monday, February 29, 2016 5:28 PM

Answers

  • The Request looks okay does this only happen on 1 appointment or all recurring appointments you try to cancel ? I would suggest you have a look in the EWSLog on the CAS server to see if any more detailed information is logged when you perform the cancel.

    Cheers
    Glen

    • Marked as answer by Simon Hain Tuesday, March 1, 2016 4:45 PM
    Tuesday, March 1, 2016 1:27 AM

All replies

  • The Request looks okay does this only happen on 1 appointment or all recurring appointments you try to cancel ? I would suggest you have a look in the EWSLog on the CAS server to see if any more detailed information is logged when you perform the cancel.

    Cheers
    Glen

    • Marked as answer by Simon Hain Tuesday, March 1, 2016 4:45 PM
    Tuesday, March 1, 2016 1:27 AM
  • We did not find anything in the logs, maybe it was only a freak error as i was not able to reproduce the behavior with a different event series.

    The initial test case was creating a series, modifying one element, deleting another, then deleting the whole series (which failed)

    Tuesday, March 1, 2016 4:45 PM