When a phone stops syncing, the mail app shows a vague message, but Exchange records the real answer: a Status value in the ActiveSync response or an HTTP status in the IIS log. This quick reference lists the codes Exchange Server admins meet most, with the meaning from Microsoft's protocol documentation ([MS-ASCMD]), the usual on-premises cause and the first check.
Codes in this quick reference
112 ActiveDirectoryAccessDenied: the server can't read or write an object in the directory serviceActiveSync mailbox log (Status) 123 UserHasNoMailbox: a mailbox could not be found for the userActiveSync mailbox log (Status) 124 UserCannotBeAnonymous: the request was sent without credentialsActiveSync mailbox log (Status) 125 UserPrincipalCouldNotBeFound: the user was not found in the directory serviceActiveSync mailbox log (Status) 126 UserDisabledForSync: the user is not allowed to use ActiveSyncActiveSync mailbox log (Status) 129 DeviceIsBlockedForThisUser: the user may sync only some devices and this isn't one of themActiveSync mailbox log (Status) 130 AccessDenied: the user is not allowed to perform that requestActiveSync mailbox log (Status) 131 AccountDisabled: the user's account is disabledActiveSync mailbox log (Status) + 48 more codes in the tables below.
How this guide is organized: How to read these codes → Account, device and access codes → Policy and provisioning codes → Server, mailbox and sync state codes → Sending mail and item codes → Calendar, availability and IRM codes → Malformed request codes → Sync, FolderSync and Ping status codes → HTTP status codes in the IIS log → How to verify a fix Flow diagram of the article's sections in reading order: 1. How to read these codes. 2. Account, device and access codes. 3. Policy and provisioning codes. 4. Server, mailbox and sync state codes. 5. Sending mail and item codes. 6. Calendar, availability and IRM codes. 7. Malformed request codes. 8. Sync, FolderSync and Ping status codes. 9. HTTP status codes in the IIS log. 10. How to verify a fix. Toolbox: Event ID 1053, Event ID 15004, Get-MailboxDatabaseCopyStatus, Get-ServerComponentState, Get-User. 1 How to readthese codes 2 Account,device and ac… 3 Policy andprovisioning c… 4 Server, mailboxand sync stat… 5 Sending mailand item codes 6 Calendar,availability an… 7 Malformedrequest codes 8 Sync,FolderSync an… 9 HTTP statuscodes in the II… 10 How to verify afix TOOLBOX Event ID 1053 Event ID 15004 Get-MailboxDatabaseCopyStatus Get-ServerComponentState Get-User How this guide is organized: How to read these codes → Account, device and access codes → Policy and provisioning codes → Server, mailbox and sync state codes → Sending mail and item codes → Calendar, availability and IRM codes → Malformed request codes → Sync, FolderSync and Ping status codes → HTTP status codes in the IIS log → How to verify a fix Flow diagram of the article's sections in reading order: 1. How to read these codes. 2. Account, device and access codes. 3. Policy and provisioning codes. 4. Server, mailbox and sync state codes. 5. Sending mail and item codes. 6. Calendar, availability and IRM codes. 7. Malformed request codes. 8. Sync, FolderSync and Ping status codes. 9. HTTP status codes in the IIS log. 10. How to verify a fix. Toolbox: Event ID 1053, Event ID 15004, Get-MailboxDatabaseCopyStatus, Get-ServerComponentState, Get-User. 1 How to read these codes 2 Account, device and access codes 3 Policy and provisioning codes 4 Server, mailbox and sync state codes 5 Sending mail and item codes 6 Calendar, availability and IRM codes 7 Malformed request codes 8 Sync, FolderSync and Ping status codes 9 HTTP status codes in the IIS log 10 How to verify a fix TOOLBOX Event ID 1053 Event ID 15004 Get-MailboxDatabaseCopyStatus Get-ServerComponentState Get-User At a glance: how this guide is organized · 10 sections · 5 key settings and tools
How to read these codes#
Telling ActiveSync code families apart Where did you find the code? if IIS log: Read it as an HTTP status (Protocol 2.5, 12.0 and 12.1 clients, or a request that failed before ActiveSync); if Mailbox log: Which range is the Status value in? if 101–184: Common status code (Same meaning for every command; sent to protocol 14.0 and later clients); if 1–16: Is the value 1? if Yes: Success (Every command response carries a Status value; 1 means success); if No: Command-specific code (Read it with its command: Sync status 9 isn't FolderSync status 9) Where did you find the code? NOTE Read it as an HTTPstatus Protocol 2.5, 12.0 and 12.1clients, or a request that failed before ActiveSync IIS log Which range is the Status valuein? NOTE Common status code Same meaning for everycommand; sent to protocol 14.0 and later clients 101–184 Is the value 1? OK Success Every command responsecarries a Status value; 1 means success Yes NOTE Command-specificcode Read it with its command:Sync status 9 isn't FolderSync status 9 No 1–16 Mailbox log Telling ActiveSync code families apart Where did you find the code? if IIS log: Read it as an HTTP status (Protocol 2.5, 12.0 and 12.1 clients, or a request that failed before ActiveSync); if Mailbox log: Which range is the Status value in? if 101–184: Common status code (Same meaning for every command; sent to protocol 14.0 and later clients); if 1–16: Is the value 1? if Yes: Success (Every command response carries a Status value; 1 means success); if No: Command-specific code (Read it with its command: Sync status 9 isn't FolderSync status 9) Where did you find the code? IIS log NOTE Read it as an HTTP status Protocol 2.5, 12.0 and 12.1 clients, or a request thatfailed before ActiveSync Mailbox log Which range is the Status value in? 101–184 NOTE Common status code Same meaning for every command; sent toprotocol 14.0 and later clients 1–16 Is the value 1? Yes OK Success Every command response carries a Statusvalue; 1 means success No NOTE Command-specific code Read it with its command: Sync status 9isn't FolderSync status 9 Figure 1 · Decision tree Telling ActiveSync code families apart. Start with where the code appears, then the range of the Status value. Each value also has a scope: Global, Item or Policy.
Status element: every command response carries a Status value; 1 means success. To see them for one user, turn on mailbox logging, reproduce the problem and collect the log, which shows each request and response.
IIS log: /Microsoft-Server-ActiveSync requests in %SystemDrive%\inetpub\logs\LogFiles\W3SVC1 show the command (Cmd=Sync, Cmd=Ping), the device ID and type, and the HTTP status.
PowerShell
Set-CASMailbox jane@contoso.com -ActiveSyncDebugLogging $true
# reproduce the problem on the phone, then send yourself the log:
Get-MobileDeviceStatistics -Mailbox jane@contoso.com -GetMailboxLog -NotificationEmailAddresses admin@contoso.com
Set-CASMailbox jane@contoso.com -ActiveSyncDebugLogging $false
Values Family How to read it
101–184Common status codes Same meaning for every command; sent to protocol 14.0 and later clients
1–16Command-specific codes The meaning depends on the command: Sync status 9 (mailbox may be out of space) isn't FolderSync status 9 (bad sync key)
HTTP 4xx / 5xx IIS log status Protocol 2.5, 12.0 and 12.1 clients get these instead of 1xx values; any client gets one if the request fails before ActiveSync handles it
Each value also has a scope: Global (the whole request failed), Item (one item failed, the rest went through) or Policy (the Provision command).
Account, device and access codes#
Code Meaning Usual cause First check
112 ActiveDirectoryAccessDeniedThe server can't read or write an object in the directory Exchange can't create the device container under the user (inheritance off, often admin accounts) Event ID 1053 in the Application log (ActiveSync guide )
123 UserHasNoMailboxNo mailbox found for the user No on-premises mailbox, for example after a move to Exchange Online Get-Recipient jane | fl RecipientTypeDetails
124 UserCannotBeAnonymousThe request arrived without credentials A proxy drops the credentials, or virtual directory authentication changed Get-ActiveSyncVirtualDirectory | fl Server,*Auth*
125 UserPrincipalCouldNotBeFoundThe user wasn't found in the directory Wrong sign-in name (email address differs from the UPN) or a new account not replicated yet Get-User with the exact name the phone uses
126 UserDisabledForSyncThe user isn't allowed to use ActiveSync ActiveSync disabled on the mailbox Get-CASMailbox jane | fl ActiveSyncEnabled
129 DeviceIsBlockedForThisUserThe user may sync only certain devices, and this isn't one of them The mailbox's device ID lists don't include this phone Get-CASMailbox jane | fl ActiveSync*DeviceIDs
130 AccessDeniedThe user isn't allowed to perform that request A permission or block decision for this user or device Get-MobileDevice -Mailbox jane | fl DeviceId,DeviceAccessState*
131 AccountDisabledThe user's account is disabled Disabled AD account, or a shared or resource mailbox account used to sign in Get-ADUser jane | Select-Object Enabled
177 MaximumDevicesReachedToo many device partnerships; delete some first Retired phones pile up until the throttling policy limit (EasMaxDevices) is hit List and remove stale partnerships (below); policies: throttling guide
PowerShell
Get-MobileDeviceStatistics -Mailbox jane@contoso.com |
Sort-Object LastSuccessSync | Format-Table Identity, DeviceType, LastSuccessSync -AutoSize
Remove-MobileDevice -Identity "<Identity of a retired phone>"
Policy and provisioning codes#
Code Meaning Usual cause First check
139 / 141 DeviceNotFullyProvisionable / LegacyDeviceOnStrictPolicyThe device can't apply every policy setting (139) or can't provision at all (141) The policy demands settings the app can't enforce, and non-provisionable devices aren't allowed Get-MobileDeviceMailboxPolicy | fl Name,IsDefault,AllowNonProvisionableDevices
140 RemoteWipeRequestedA remote wipe is pending; the device should provision to receive it, then acknowledge it Expected after a wipe request; repeats mean the device never confirms Get-MobileDeviceStatistics -Mailbox jane | fl DeviceId,*Wipe*
142 DeviceNotProvisionedA policy applies and the device must provision first Normal on a first sync; a loop means the device can't accept the policy (passcode, encryption) Get-MobileDeviceStatistics -Mailbox jane | fl DeviceId,*Policy*
143 / 144 PolicyRefresh / InvalidPolicyKeyProvision again: refresh interval passed (143) or the policy key is invalid, usually after a policy change (144) Normal after a policy edit or reassignment; a loop points at the app Get-CASMailbox jane | fl ActiveSyncMailboxPolicy
145 ExternallyManagedDevicesNotAllowedThe device says another system manages it, but the server doesn't allow externally managed devices The policy doesn't allow external device management Get-MobileDeviceMailboxPolicy | fl Name,AllowExternalDeviceManagement
Server, mailbox and sync state codes#
Code Meaning Usual cause First check
110 ServerErrorUnknown server error; the device shouldn't retry A server-side exception for this mailbox or item Application log at the failure time
111 ServerErrorRetryLaterUnknown server error; the device should retry later Transient: database failover, restart, busy server Get-MailboxDatabaseCopyStatus; ActiveSync health sets
113 MailboxQuotaExceededThe mailbox reached its size quota Mailbox over its quota Get-MailboxStatistics jane | fl TotalItemSize (quota guide )
114 MailboxServerOfflineThe mailbox server is offline Database dismounted, server down or in maintenance Get-MailboxDatabaseCopyStatus; Get-ServerComponentState
132 SyncStateNotFoundThe device's sync state file is missing; the next request will likely force a full sync State removed while a request ran, for example a deleted partnership Let the device resync; if it recurs, the Application log
133 SyncStateLockedThe sync state is locked, possibly by a current or recent mailbox move A mailbox move in progress or just finished Get-MoveRequest jane (move guide )
134 / 136 SyncStateCorrupt / SyncStateVersionInvalidThe sync state looks corrupt (134) or has an invalid version (136) Damaged partnership data Remove the partnership, then add the account again on the phone
148 RemoteServerHasNoSSLThe request must be proxied to a server without SSL, and this server only proxies to SSL servers The target server's ActiveSync virtual directory doesn't require SSL SSL settings of that virtual directory in IIS
151 TooManyFoldersToo many folders; by default a mailbox can't have more than 1,000 Large folder trees, often from imports (Get-MailboxFolderStatistics jane).Count
Sending mail and item codes#
Code Meaning Usual cause First check
115 SendQuotaExceededThe request would exceed the send quota Mailbox above its send quota Get-Mailbox jane | fl *Quota*
116 MessageRecipientUnresolvedA recipient couldn't be resolved to an email address A name or contact without a valid address Send to the same recipient from OWA
119 / 183 MessageHasNoRecipient / InvalidRecipientsNo recipient (119), or a draft without recipients or with a non-SMTP address (183) The app sent an incomplete message Reproduce in OWA; update the app
120 MailSubmissionFailedThe server failed to submit the message for delivery Transport not accepting mail: back pressure, stopped services, stuck Submission queue Get-Queue; Event ID 15004 (back pressure guide )
122 AttachmentIsTooLargeThe attachment is too large for this request ActiveSync request limits or message size limits Message size limits
118 MessagePreviouslySentThe message was already sent, or its client ID was used recently The device retried a send that already went through Nothing if occasional; check Sent Items
150 ItemNotFoundThe item being replied to or forwarded (SmartReply, SmartForward) wasn't found The original was deleted or moved first Whether the original still exists
Calendar, availability and IRM codes#
Code Meaning Usual cause First check
160 / 161 AvailabilityTooManyRecipients / AvailabilityDLLimitReachedToo many recipients for one free/busy lookup, or a distribution list too big for the availability service Large meetings or groups Fewer attendees or smaller groups
162 / 163 AvailabilityTransientFailure / AvailabilityFailureThe availability (free/busy) request failed, temporarily (162) or not (163) Availability service problems, often cross-premises OWA Scheduling Assistant for the same people (free/busy guide )
168 IRM_FeatureDisabledInformation Rights Management is disabled IRM not enabled for ActiveSync clients Get-IRMConfiguration | fl ClientAccessServerEnabled; policy IrmEnabled
169 / 170 IRM_TransientError / IRM_PermanentErrorIRM encountered an error (temporary or permanent) RMS connectivity, licensing or templates Test-IRMConfiguration (IRM guide )
184 OneOrMoreExceptionsFailedNot all exceptions of a recurring series were saved; the client resends the failed ones Problems with specific occurrences The exception statuses in the mailbox log
Code Meaning Usual cause First check
101 / 102 / 103 InvalidContent / InvalidWBXML / InvalidXMLInvalid body, undecodable WBXML, or XML that breaks the protocol rules An app bug, or a security device rewriting requests Another app; bypass the inspecting device
108 / 109 DeviceIdMissingOrInvalid / DeviceTypeMissingOrInvalidThe device ID or type is missing or badly formatted A non-standard client or a rewriting proxy The DeviceId and DeviceType values in the IIS log
137 / 138 CommandNotSupported / VersionNotSupportedCommand not supported, or not in the requested protocol version The app asks for something the server doesn't offer The client's protocol version in the mailbox log
Sync, FolderSync and Ping status codes#
Code Meaning Usual cause First check
Sync 3 Invalid synchronization key, or corrupted sync state; the folder restarts from key 0 Device and server disagree about the sync state Occasional: harmless; constant: re-create the partnership
Sync 5 Server error, frequently transient Misconfiguration, a temporary issue or a bad item Retry; one folder always failing: a damaged item
Sync 8 Object not found: the folder or item ID is no longer valid Deleted on the server or by another client Resync the folder
Sync 9 The Sync command can't be completed; the account could be out of space Mailbox over quota Mailbox size and quotas
Sync 12 The folder hierarchy changed; folders aren't synchronized Folders created, renamed or deleted elsewhere Device runs FolderSync; a loop suggests a damaged folder
Sync 14 The Wait or HeartbeatInterval value is outside the administrator's range; the response gives the limit Client heartbeat outside server limits Normally self-correcting; check idle timeouts on firewalls and load balancers
Sync 16 Retry: a retriable server error A temporary server-side condition If it recurs, the Application log
FolderSync 9 Synchronization key mismatch or invalid key, or corrupt sync state on the server Folder list state out of step The device resyncs from key 0; repeating: re-create the partnership
FolderSync 6 / 11 An error occurred on the server / an unknown error occurred; frequently transient A server issue or a bad item Retry; persistent: Application log and mailbox log
Ping 7 Folder hierarchy sync required Folders changed since the last FolderSync Normal once; the device should run FolderSync
Ping status 1 (heartbeat expired, nothing changed) and 2 (changes in a monitored folder) are normal, not errors.
HTTP status codes in the IIS log#
Code Meaning Usual cause First check
400Bad request; older protocol versions get it instead of 101, 103, 106 or 138 A malformed request from the app User agent in the IIS log; update the app
401Credentials rejected Wrong password or sign-in name, or authentication changed on the virtual directory Get-ActiveSyncVirtualDirectory | fl *Auth* (ActiveSync guide )
403Forbidden; older versions get it instead of 112, 125 or 126 User not enabled for ActiveSync, not found, or directory access denied ActiveSyncEnabled; Event ID 1053
449The device must provision first; older versions get it instead of 141 to 144 The device hasn't applied the mailbox policy AllowNonProvisionableDevices; the device's policy status
451Redirect: the mailbox is served elsewhere Common after a move to Exchange Online Re-add the account if the phone doesn't follow (Exchange Online mobile access )
500Server error; older versions get it instead of 110 or 132 A server-side exception; Event ID 1053 is the classic Application log at the same time
503Service unavailable; older versions get it instead of 111 Stopped app pool, ActiveSyncProxy inactive, busy server, no healthy back end Get-ServerComponentState; /Microsoft-Server-ActiveSync/healthcheck.htm
507Older versions get it instead of 113 (mailbox quota exceeded) Mailbox over quota Mailbox size and quotas
How to verify a fix#
Device: Get-MobileDevice shows the device Allowed, and LastSuccessSync moves forward with each sync.
IIS log: the device's Cmd=Sync, Cmd=FolderSync and Cmd=Ping requests return 200.
Mailbox log: Sync and FolderSync return status 1; Ping returns 1 or 2. Then turn logging off.
PowerShell
Get-MobileDeviceStatistics -Mailbox jane@contoso.com |
Format-List DeviceId, DeviceType, LastSuccessSync, LastSyncAttemptTime
Get-MobileDevice -Mailbox jane@contoso.com | Format-List DeviceId, DeviceAccessState, DeviceAccessStateReason
Get-HealthReport EX01 | Where-Object { $_.HealthSet -like "ActiveSync*" }
Set-CASMailbox jane@contoso.com -ActiveSyncDebugLogging $false
Good: a recent LastSuccessSync, DeviceAccessState : Allowed and healthy ActiveSync health sets. For quarantine and access rules, see ActiveSync not syncing on Exchange Server .
References#