Why am I getting ExchangeWebServices Inbox Error: Error, ErrorServerBusy. The server cannot service this request right now. Try again later

I recently switched my application that uses EWS from an on-premise Exchange Server to Exchage Online through Office356.
The process worked just fine for several days, then I started getting the following errors;
Error accessing [USERNAME] email account.; ExchangeWebServices Inbox Error: Error, ErrorServerBusy, The server cannot service this request right now. Try again later. --> 
This has been happening for the past 14 hours now. 
I contacted my Office365 support team and they acted like they had never heard of the Exchange Web Services API, so no help there.
I can access the mailbox using the O365 web portal and I can access the mailbox account using the Outlook 2013 desktop client. The issue seems specific to EWS
My program is a Windows service, written in VB.Net. It connects to EWS, goes to the user account inbox, iterates through the inbox extracting attachments from messages, then moves the messages to a saved folder below the inbox.
I created the wrapper for EWS that I can reference in my project code using the following, run from an elevated VS2012 command prompt;
wsdl.exe /namespace:ExchangeWebServices /out:EWS.cs https://outlook.office365.com/ews/services.wsdl /username:[email protected] /password:p@ssw0rd
csc /out:EWS_E2K13_release /target:library EWS.cs
I bind to EWS in my class, using the following code;
Imports System.Net
Imports ExchangeWebServices
Public Class Exchange2013WebServiceClass
    Private ExchangeBinding As New ExchangeServiceBinding
    Public Sub New(ByVal userEmail As String, ByVal userPassword As String, ByVal URL As String)
        ExchangeBinding.Credentials = New NetworkCredential(userEmail, userPassword)
        ExchangeBinding.Url = URL
    End Sub
The error that is logged gets triggered when my code makes a call to the following method;
    Public Function GetInboxMessageIDs() As ArrayOfRealItemsType
        Dim returnInboxMessageIds As ArrayOfRealItemsType = Nothing
        Dim errMsg As String = String.Empty
        'Create the request and specify the travesal type.
        Dim FindItemRequest As FindItemType
        FindItemRequest = New FindItemType
        FindItemRequest.Traversal = ItemQueryTraversalType.Shallow
        'Define which item properties are returned in the response.
        Dim ItemProperties As ItemResponseShapeType
        ItemProperties = New ItemResponseShapeType
        ItemProperties.BaseShape = DefaultShapeNamesType.IdOnly
        'Add properties shape to the request.
        FindItemRequest.ItemShape = ItemProperties
        'Identify which folders to search to find items.
        Dim FolderIDArray(0) As DistinguishedFolderIdType
        FolderIDArray(0) = New DistinguishedFolderIdType
        FolderIDArray(0).Id = DistinguishedFolderIdNameType.inbox
        'Add folders to the request.
        FindItemRequest.ParentFolderIds = FolderIDArray
        Try
            'Send the request and get the response.
            Dim FindItemResponse As FindItemResponseType
            FindItemResponse = ExchangeBinding.FindItem(FindItemRequest)
            'Get the response messages.
            Dim ResponseMessage As ResponseMessageType()
            ResponseMessage = FindItemResponse.ResponseMessages.Items
            Dim FindItemResponseMessage As FindItemResponseMessageType
            If ResponseMessage(0).ResponseClass = ResponseClassType.Success Then
                FindItemResponseMessage = ResponseMessage(0)
                returnInboxMessageIds = FindItemResponseMessage.RootFolder.Item
            Else
                '' Server error
                Dim responseClassStr As String = [Enum].GetName(GetType(ExchangeWebServices.ResponseClassType), ResponseMessage(0).ResponseClass).ToString
                Dim responseCodeStr As String = [Enum].GetName(GetType(ExchangeWebServices.ResponseCodeType), ResponseMessage(0).ResponseCode).ToString
                Dim messageTextStr As String = ResponseMessage(0).MessageText.ToString
                Dim thisErrMsg As String = String.Format("ExchangeWebServices Inbox Error: {0}, {1}, {2}", responseClassStr, responseCodeStr, messageTextStr)
                errMsg = If(errMsg.Equals(String.Empty), String.Empty, errMsg & "; ") & thisErrMsg
            End If
        Catch ex As Exception
            'errMsg = String.Join("; ", errMsg, ex.Message)
            errMsg = If(errMsg.Equals(String.Empty), String.Empty, errMsg & "; ") & ex.Message
        End Try
        If Not errMsg.Equals(String.Empty) Then
            returnInboxMessageIds = Nothing
            Throw New System.Exception(errMsg)
        End If
        Return returnInboxMessageIds
    End Function  
Since the code worked just fine for several days and then suddenly stopped working with a server busy error, I have to think that this is some type of limit or throttling by EWS on the account. I process several thousand emails per day, in chunks of 300
at a time. 
But I have no idea how to check for any limits exceeded. I am nowhere close to my O365 mailbox size limit. Right now, there are over 4,000 messages in my inbox, and growing. 
Thanks in advance for any ideas you can offer.
Dave

All the API's EWS, MAPI, ActiveSync,Remote powershell are throttled on Office365 (based around what 1 particular user could resonably do). If you have had a read of this already i would recommend
http://msdn.microsoft.com/en-us/library/office/jj945066(v=exchg.150).aspx
 You can't adjust or even find your current throttle usage so you have to try to design your code around living inside the default limits. If your using One Service Account to access multiple Mailboxes (or if that account is because used across multiple
applications) that can cause problems. In this case using EWS Impersonation is good solution as described in
http://blogs.msdn.com/b/exchangedev/archive/2012/04/19/more-throttling-changes-for-exchange-online.aspx (this basically means the Target Mailbox is charged instead of the Service Account).
 Looking at the code one thing I notice missing is your don't appear to be paging the results of FindItems, also have versioned your requests to Exchagne2013. eg ". When the value of the
RequestServerVersion element indicates Exchange 2010 or an earlier version of Exchange, the server sends a failure response with error code
ErrorServerBusy. If the value of the RequestServerVersion
element indicates a version of Exchange starting with Exchange 2010 SP1
or Exchange Online, and the client is using paging, EWS may return a
partial result set instead of an error"
To Page FindItems Correctly you should use the IndexedPageViewType class and page the Items at no more the 1000 at a time eg something like
IndexedPageViewType indexedPageView = new IndexedPageViewType();
indexedPageView.BasePoint = IndexBasePointType.Beginning;
indexedPageView.Offset = 0;
indexedPageView.MaxEntriesReturned = 1000;
indexedPageView.MaxEntriesReturnedSpecified = true;
FindItemType findItemrequest = new FindItemType();
findItemrequest.Item = indexedPageView;
findItemrequest.ItemShape = new ItemResponseShapeType();
findItemrequest.ItemShape.BaseShape = DefaultShapeNamesType.IdOnly;
BasePathToElementType[] beAdditionproperties = new BasePathToElementType[3];
PathToUnindexedFieldType SubjectField = new PathToUnindexedFieldType();
SubjectField.FieldURI = UnindexedFieldURIType.itemSubject;
beAdditionproperties[0] = SubjectField;
PathToUnindexedFieldType RcvdTime = new PathToUnindexedFieldType();
RcvdTime.FieldURI = UnindexedFieldURIType.itemDateTimeReceived;
beAdditionproperties[1] = RcvdTime;
PathToUnindexedFieldType ReadStatus = new PathToUnindexedFieldType();
ReadStatus.FieldURI = UnindexedFieldURIType.messageIsRead;
beAdditionproperties[2] = ReadStatus;
findItemrequest.ItemShape.AdditionalProperties = beAdditionproperties;
DistinguishedFolderIdType[] faFolderIDArray = new DistinguishedFolderIdType[1];
faFolderIDArray[0] = new DistinguishedFolderIdType();
faFolderIDArray[0].Mailbox = new EmailAddressType();
faFolderIDArray[0].Mailbox.EmailAddress = "[email protected]";
faFolderIDArray[0].Id = DistinguishedFolderIdNameType.inbox;
bool moreAvailible = false;
findItemrequest.ParentFolderIds = faFolderIDArray;
int loopCount = 0;
do
FindItemResponseType frFindItemResponse = esb.FindItem(findItemrequest);
if (frFindItemResponse.ResponseMessages.Items[0].ResponseClass == ResponseClassType.Success)
foreach (FindItemResponseMessageType firmtMessage in frFindItemResponse.ResponseMessages.Items)
Console.WriteLine("Number of Items retreived : " + ((ArrayOfRealItemsType)firmtMessage.RootFolder.Item).Items.Length);
if (firmtMessage.RootFolder.IncludesLastItemInRange == false)
moreAvailible = true;
else
moreAvailible = false;
((IndexedPageViewType)findItemrequest.Item).Offset += ((ArrayOfRealItemsType)firmtMessage.RootFolder.Item).Items.Length;
Console.WriteLine("Offset : " + ((IndexedPageViewType)findItemrequest.Item).Offset);
if (firmtMessage.RootFolder.TotalItemsInView > 0)
foreach (ItemType miMailboxItem in ((ArrayOfRealItemsType)firmtMessage.RootFolder.Item).Items)
Console.WriteLine(miMailboxItem.Subject);
else
throw new Exception("error " + frFindItemResponse.ResponseMessages.Items[0].MessageText);
} while (moreAvailible);
The support people should be able to help you as long as you can get past the first level. The EWS Managed API has a RequestId header that gets submitted with requests
http://blogs.msdn.com/b/exchangedev/archive/2012/06/18/exchange-web-services-managed-api-1-2-1-now-released.aspx . In theory they should be able to take this and then from the Logs tell more information about why your request failed etc.
Cheers
Glen

Similar Messages

  • MSDN Internet Server error: Sorry, we were unable to service your request. Please try again later.

    I have been experiencing a high rate (maybe 1 in 5 page renders) errors from the MSDN servers in the last 4-6 weeks.
    It reports in the breadcrumb "Internal Server error"
    And then writes below: Sorry, we were unable to service your request. Please try again later.
    Is Microsoft aware of this ongoing and high rate issues?
    --Dale

    There are many who are facing this issue.
    https://social.msdn.microsoft.com/Forums/en-US/098dc7d7-b12a-4a6d-ae74-47e612531e68/internal-server-error-coming-when-accessing-msdn-forum?forum=reportabug
    -Vaibhav Chaudhari

  • I am getting the error "We're sorry we cannot complete your request on the iTunes store at this time. Please try again later." on both my iPhone and iTunes on my computer. What is wrong with iTunes? Is the server down???

    I am getting the error "We're sorry we cannot complete your request on the iTunes store at this time. Please try again later." on both my iPhone and iTunes on my computer. What is wrong with iTunes? Is the server down or what? I need to download some things and update some apps...

    I've been getting the same message for like an hour now.  Since everything was working fine a few hours ago, and nothing changed on my end before it stopped working, I'm guessing it's something on Apple's end.  They probably already know about it by now, and are hopefully working on fixing it, so there's probably not much we can do but wait for them to fix it.

  • I keep gettign an error that says: We're sorry, we cannot complete your request on the itunes store at this time. Please try again later. Is this a common error? is there a fix?

    When I try to access itunes, I get this error: We're sorry, we cannot complete your request on the itunes store at this time. Please try again later. Is this a common error? Is there a fix?

    Sorry, I don't have any suggestions at this time. You can try running the Network Diagnostics in iTunes:
    http://support.apple.com/kb/HT3204
    and post the results here. That may provide some clues that someone can use to diagnose the problem and offer suggestions.
    Regards.

  • I can't seem to get support for my iphone, i need to contact apple because it isn't working at all , and it says it cannot process my request and to try again later, what can I do?

    My Iphone 4 isn't working, It got wet and now I have it in a bag of rice. I heard that I should not try to turn it on or mess with the power button, so I haven't. It makes sounds when I get a text message but the screen is blank., I have tried to contact apple support online and it tries to send my iphone a message, but because it doesnt work, I can't receive it, so if I decline the "health check" then it says that it's "unable to complete my request at this time. Please try again in a few minutes or start over now."   I have tried this several times and it's still not letting get any help. I don't know what to do. Someone please help. How did you get help with your phone when it got messed up or damaged?
    Thank you to anyone that can help me.
    -Shannbud

    A wet phone is out of warranty. This is considered user damage. Even if you were able to get it to start now, the chances of it working for long are slim. I suggest going to Apple and see about an OOW replacement. One for the iPhone 4 is only $149USD and it would come with a short warranty. It is a refurbished device and you would not be worried about encountering additional problems.

  • ITunes Store movie won't download it says error movie can't download right now try again later

    It just won't download it have enough room for it

    Hello, emmanuel1122. 
    Thank you for visiting Apple Support Communities. 
    Try closing down iTunes and restarting it.  Once this is down attempt to resume the interrupted download.  If this is a purchased movie, try canceling the download and download it again via your past purchases.  If the issue persists, you may need to troubleshoot the connection to the iTunes Store. 
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    If none of the steps help resolve the issue, please reply back with the exact error message that you are receiving, if this issue is happening on a computer either Windows/Mac or on an iOS device.  Please also let me know what OS you are running on the computer or iOS device. 
    Cheers,
    Jason H. 

  • Why do I keep gettingService Unavailable - Zero size object The server is temporarily unable to service your request. Please try again later. Reference #15.5610c50.1279470802.3ae16f5

    I keep getting the following message a lot when i try to link to an article in comcast home page.
    == URL of affected sites ==
    http://

    Did you try later?
    Contact Comcast support about their server problem.

  • HT1539 Why Do I keep getting an error message telling me "Code redemption is temporarily unavailable. Please try again later." whenever I try to redeem my digital copy code for "Oz The Great and Powerful"?

    Why Do I keep getting an error message telling me "Code redemption is temporarily unavailable. Please try again later." whenever I try to redeem my digital copy code for "Oz The Great and Powerful"?

    I had the same problem so I decided to try going to website on the back. (DisneyOzMovieandOffers.com). It will take you to a page that says to redeem code, enter the code that is given to you and click enter. It will give you options of where you would like to download it from. Click iTunes and it will give you the correct code to download the movie from iTunes.

  • When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this

    When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!

    Hi,
    Please download the updates directly from the link below:
    WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    Regards,
    Sheena

  • Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.

    Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.

    The problem was solved by Apple Technical Help. The process is as flollows:
    1. Open Safari
    2. Menu item Safari-Reset Safari - remove all website data - reset
    3. Now if you try to login on iTunes connect it will work.

  • Is it possible to run BBC iPlayer from an iPhone4 through AirPlay to Apple TV2 please? I keep getting the message "An error occured loading this content. Please try again later"

    Is it possible to run BBC iPlayer from an iPhone4 through AirPlay to Apple TV2 please? I keep getting the message "An error occured loading this content. Please try again later"

    First, try a system reset on the iPod.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If that doesn't work, reset the Apple TV.  I'm not at mine right now and I'm talking from memory but the reset is somewhere in the Settings menu.

  • Just getting: "There was an error contacting the server. Check your internet connection and try again"

    When signing in from PSE12 i just get this error message: There was an error contacting the server. Check your internet connection and try again
    Internet is working (access this forum) and adoberevel website works fine. Everything works but elements revel sign in from PSE12. PSE12 have been syncing thumbnails for several days - now have 48.000 of my revel library, but now it will not allow me to sign in again from PSE12.
    Running Win7.
    Any ideas ?

    Hi,
    I tried this but it did not work. Still getting: There was an error contacting the server. Check your internet connection and try again
    I do not think there actually is a network issue, because if i try another username/password i do get: Please provide valid Adobe ID and/or password to sign in. So i assume PSE12/Revel Agent actually has a network connection to adobe.
    Any other ideas?

  • Office Home and Student 2010 has stopped working Unspecified Error has occurred. Request cannot be processed at this time. Please try again later ( 0x8007000D )

    My office is saying its an unlicensed product and it prompts me to re install.  It come up with Microsoft Activation Wizard then when I select to activate software via the internet an error comes up saying:
    Unspecified Error has occurred.  Request cannot be processed at this time. Please try again later ( 0x8007000D )
    Please can you help me? I have tried pressing shift and right click an using system administrator but still not working.  I've called the UK helpline and have been cut off twice after repeating myself to the person on the other end.  May be easier
    to try and get some assistance on here? 

    Hi,
    This error can indicate a permissions issue in the registry and/or other operating system issues.
    Here is a
    blog post which descripts some fixes to this specific error:
    Check the Device Manager first to determine whether the issue was caused by an underlying operating system issue.
    If it's not an issue with the operating system, try the rest steps descripted in the blog to troubleshoot the issue.
    Please have a try and feel free to post back with any findings.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I can log into my itunes account on my friends computer however for 3 months now she has been getting the following message "We could not complete your iTunes Store request. The iTunes Store is temporarily unavailable. Please try again later" Why is this?

    Hi there I have been trying to help a friend work out why she hasn't been able to access itunes on her home computer for 3 months as it comes up with the following error "We could not complete your iTunes Store request. The iTunes Store is temporarily unavailable. Please try again later"
    I have cleared her crache and dissabled firewalls still no luck. Then I tried logging in with my id and to our surprise it worked. So any assistance would be great. Please find the report below maybe you can help!
    Microsoft Windows XP Professional Service Pack 3 (Build 2600)
    Hewlett-Packard hp workstation xw4200
    iTunes 11.1.1.11
    QuickTime 7.7.4
    FairPlay 2.5.16
    Apple Application Support 2.3.6
    iPod Updater Library 11.1f5
    VoiceOver Kit 1.4.2 (222093/222742)
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.0.0.117
    Apple Mobile Device Driver 1.59.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 0012B4A009D5EBF0
    Current user is an administrator.
    The current local date and time is 2013-10-08 22:38:51.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    NVIDIA Quadro FX 540
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 11.1.1.11 is currently running.
    iTunesHelper 11.1.1.11 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:           {CF4127E8-FA53-4985-9CB6-F74A04C92757}
    Description:                 Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport
    IP Address:                 10.0.0.1
    Subnet Mask:             255.255.255.0
    Default Gateway:       10.0.0.138
    DHCP Enabled:          Yes
    DHCP Server:             10.0.0.138
    Lease Obtained:         Tue Oct 08 22:19:05 2013
    Lease Expires:           Tue Oct 15 22:19:05 2013
    DNS Servers:              10.0.0.138
    Active Connection:    LAN Connection
    Connected:                  Yes
    Online:                          Yes
    Using Modem:            No
    Using LAN:                  Yes
    Using Proxy:               No
    Firewall Information
    Windows Firewall is off.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2013-10-08 22:21:42.

    Same problem. I can see the itunes store so not a problem with windows firewall. The account is active on my iphone so i know i am not locked out. I can connect the PC to my iphone so i know itunes is working ok. It is just logging into itunes on this pc which doesn't work. Only thing I can think of is that the email address I use for my apple id has been offline for a while and is working again now, I'm wondering whether this has been the case for others who are having this issue?

  • Please help I have to update my clients site tonight I have been using muse subscription since Nov 19, 2012 An unexpected error occurred.An unexpected error occurred processing your request. Please try again later.I-2

    please help I have to update my clients site tonight I have been using muse subscription since Nov 19, 2012 An unexpected error occurred.An unexpected error occurred processing your request. Please try again later.I-2

    Hi Carey,
    Please refer to this trouble-shooting guide for the error that you are getting, An unexpected error occurred I -200
    - Abhishek Maurya

Maybe you are looking for

  • Billing and delivery address to be displayed in PO

    Dear Gurus,                       Here client requirement is as follows : There are three plants in three different places- Chennai, Bangalore and Hyderabad. Client is creating PO from Chennai plant and they want the material to be delivered in Banga

  • Problems with My Documents - work server

    I am using Windows XP on my laptop and I also use this same computer to get a network connection at the office. I beleive that the issue is that My Music ends up savings some ITunes files and when the network synches there is a conflict. I open itune

  • Why do I have no cursor and cannot click on anything in Facebook app games?

    I use a Mac and updated Firefox to version 3.6. Ever since, I have not been able to click in any facebook app game that I play. The cursor doesn't even show up. I used to love Firefox, but not anymore. Please tell me if there is a way to fix this. Th

  • Photo Stream not working on my Mac since upgrade to Mountain Lion

    I've noticed that Photo Stream isn't downloading new photos that I've taken on my iPhone since I upgraded to Mountain Lion. My iPad is syncing just fine. I've tried both iPhoto and Aperture on my Mac, neither seem to be receiving new photos in the st

  • Problem with Table Model Listener

    I hava a JTable with three columns and dynamic number of rows. The first column has a text. Second column has check box and each third column has three radio buttons. I am using the table model listener to fetch the row and column which the user clic