Discussion:
Exchange Web Services returning ErrorOccurrenceTimeSpanTooBig
(too old to reply)
Jason Dove
16 years ago
Permalink
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?
Lee Derbyshire [MVP]
15 years ago
Permalink
...
I don't have an immediate fix, but I would suggest that your FindItem could
also be affected by an inconsistent item outside your requested range, since
it will need to inspect each one. If it doesn't show in Outlook (no matter
how far back or forward you browse), then maybe OL is also refusing to show
it. Try the FindItem with no restrictions, and see how many items are
returned. Or use Exchange Explorer to look at the Calendar.

Lee.
--
_______________________________________

Outlook Web Access for PDA, OWA For WAP:
www.leederbyshire.com
________________________________________
Jason Dove
15 years ago
Permalink
Thanks for the quick response. I suppose I was slightly misleading at first:
they only have one appointment _that day_. I assumed that since it was
returning an error for a view of a single day that the problem was with an
appointment on that day. Since this doesn't appear to be the case, how might
I go about figuring out which appointment is causing the problem (on a
calendar that has hundreds)?

Thanks,
Jason
...
Lee Derbyshire [MVP]
15 years ago
Permalink
The first thing I would suggest is to send a FindItem request that simply
returns all the appointments, with no restriction. See if it succeeds, or
fails with a (hopefully more specific) error message. If it succeeds, then
try a GetItem on each returned ID, and see if any of those fails.
...
Loading...