EWS manage API subscribes to a specific mailbox and returns errorexeedconnectioncount

丁丁 1 Reputation point
2021-03-16T09:48:02.543+00:00

Environmental information: 2016 cu14

At present, there is a specific mailbox user, and the mailbox can be used normally. However, when you try to stream notifications to the calendar folder of the user, the,

EWS returns error information:

Error code: errorexeedconnectioncount

Policy:MaxStreamingConcurrency

MaxConcurrencyLimit:10

ErrorMessage: this operation will exceed the budget limit of policy part "maxstreamingconcurrency", budget value "10", budget type: "EWS". The recommended fallback time is 0 Ms. You have exceeded the number of concurrent connections available to your account. Please try again after other requests have completed.

After trying to migrate the user's mailbox database, subscribe again, and still return such as report error.

The service account used to subscribe to this mailbox has opened applicationimpersonation, and simulates this user before subscribing.

Whether the mailbox is set to x-anchormalbox or not, this error will be returned.

In this case, there are the following questions:

  1. According to the related documents, errorexeedconnectioncount is related to the limitation of hangingconnectionlimit.

https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/handling-notification-related-errors-in-ews-in-exchange

  1. If it is related to hangingconnectionlimit, is there any way to: a. Query the usage of hangingconnectionlimit of the user b. Configure the hangingconnectionlimit limit for this user separately c. Clear the hangingconnectionlimit of the user
  2. If it is irrelevant, how can we locate the problem.
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,431 Reputation points
    2021-03-17T01:07:04.897+00:00

    a. No there are no API's to get the current connection count or the number of streaming subscriptions that a user has open.
    b. Yes create another policy for that user and include them in it https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/ews-throttling-in-exchange . The default for MaxConcurrencyLimit was increased to 27 in Exchange 2013 but it sounds like your policies are still set to their 2010 values.
    c. No