Jason Dove
16 years ago
I've developed a program that updates our schedules in Exchange (2007 SP1)
via EWS (proxy class generated by svcutil). One of our clients has a user
that fails to update and returns ErrorOccurrenceTimeSpanTooBig.
The request looks like:
<FindItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Traversal="Shallow">
<ItemShape
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<BaseShape
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">AllProperties</BaseShape>
</ItemShape>
<CalendarView StartDate="2009-09-17T00:00:00-04:00"
EndDate="2009-09-17T23:59:59-04:00"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" />
<ParentFolderIds
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<DistinguishedFolderId Id="calendar"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<EmailAddress>***@somewhere.com</EmailAddress>
</Mailbox>
</DistinguishedFolderId>
</ParentFolderIds>
</FindItemType>
and the response is:
<FindItemResponseType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ResponseMessages
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<FindItemResponseMessage ResponseClass="Error">
<MessageText>One occurrence of the recurring calendar item overlaps
with another occurrence of the same calendar item.</MessageText>
<ResponseCode>ErrorOccurrenceTimeSpanTooBig</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</FindItemResponseMessage>
</ResponseMessages>
</FindItemResponseType>
I'm confused because I'm only asking for a single day, and the only thing on
their calendar is a two hour appointment:
","[...] Training Room",,"Normal","False","Normal","2"
"[...]","9/17/2009","8:00:00 AM","9/17/2009","10:00:00
AM","False","True","9/17/2009","7:45:00 AM",,,,,,,"When: Occurs every 2 weeks
on Thursday effective 7/23/2009 until 12/17/2009 from 8:00 AM to 10:00 AM
(GMT-05:00) Eastern Time (US & Canada).
Where: [...] Training RoomThe appointment doesn't seem to be overlapping
with itself, and doesn't seem to be larger than Int32.MaxValue
(http://msdn.microsoft.com/en-us/library/exchangewebservices.responsecodetype.aspx).
Any ideas on how I can get FindItem to work for this person?
via EWS (proxy class generated by svcutil). One of our clients has a user
that fails to update and returns ErrorOccurrenceTimeSpanTooBig.
The request looks like:
<FindItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Traversal="Shallow">
<ItemShape
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<BaseShape
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">AllProperties</BaseShape>
</ItemShape>
<CalendarView StartDate="2009-09-17T00:00:00-04:00"
EndDate="2009-09-17T23:59:59-04:00"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" />
<ParentFolderIds
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<DistinguishedFolderId Id="calendar"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<EmailAddress>***@somewhere.com</EmailAddress>
</Mailbox>
</DistinguishedFolderId>
</ParentFolderIds>
</FindItemType>
and the response is:
<FindItemResponseType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ResponseMessages
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<FindItemResponseMessage ResponseClass="Error">
<MessageText>One occurrence of the recurring calendar item overlaps
with another occurrence of the same calendar item.</MessageText>
<ResponseCode>ErrorOccurrenceTimeSpanTooBig</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</FindItemResponseMessage>
</ResponseMessages>
</FindItemResponseType>
I'm confused because I'm only asking for a single day, and the only thing on
their calendar is a two hour appointment:
","[...] Training Room",,"Normal","False","Normal","2"
"[...]","9/17/2009","8:00:00 AM","9/17/2009","10:00:00
AM","False","True","9/17/2009","7:45:00 AM",,,,,,,"When: Occurs every 2 weeks
on Thursday effective 7/23/2009 until 12/17/2009 from 8:00 AM to 10:00 AM
(GMT-05:00) Eastern Time (US & Canada).
Where: [...] Training RoomThe appointment doesn't seem to be overlapping
with itself, and doesn't seem to be larger than Int32.MaxValue
(http://msdn.microsoft.com/en-us/library/exchangewebservices.responsecodetype.aspx).
Any ideas on how I can get FindItem to work for this person?