MDS Error Codes: What They Mean and How to Fix Them
In this article
MDS error codes come from the MDS (Mobile Data System) Connection Service, most often on older BlackBerry Enterprise Server setups, and they usually point to a stopped service, a blocked network connection, or a bad push request. Restarting the MDS service and checking its log files clears the majority of them.
Time 20 min · Steps 6 · Level Medium
The Six Checks That Clear Most MDS Errors
- Write the exact code down. Note the full number and any text after it, plus what the device was doing when it appeared. Two different problems can produce codes that differ by one digit, so the exact string matters when you search the vendor's knowledge base.
- Restart the MDS Connection Service. On the server, stop and start the service from the services console (labels can differ slightly by version). A service that has hung after a network blip is the single most common cause, and a restart takes under two minutes.
- Check the server's network path. Confirm the server can reach the internet and any internal mail or application servers it proxies for. A failed ping or traceroute from the server itself tells you the problem is upstream of MDS, not inside it.
- Read the MDS log files. The service writes detailed logs that show the request that failed and the underlying reason, which is often more specific than the code shown on the device. Compare the timestamp of the error with the log entries around it.
- Verify the device is registered. A device that has lost its enterprise registration will fail every MDS request no matter how healthy the server is. Re-activate or re-register the device, then retry the same request that failed.
- Reproduce with a known-good request. Open a simple web page through the MDS browser or push a test message. If the test works but the original app fails, the problem is in that app's configuration, not the MDS service.
Confirming the Fix Worked
After each change, retry the exact action that produced the error, not a different one. A successful fix shows three things at once: the request completes on the device, the MDS log shows a normal completion entry instead of the error, and the code does not reappear within about 15 minutes of normal use. If the code returns only under load — many users at once, or large attachments — note that pattern before the next check, because it points to capacity or timeout settings rather than a hard failure.
What the Code Groups Usually Mean
MDS codes generally cluster into three families, and knowing which family yours is in saves time. Codes in the 400 range typically mean the request itself was malformed or rejected — the client or app sent something the service could not process, so the fix is on the device or app side. Codes in the 500 range typically mean the MDS service hit an internal problem or an unreachable downstream server, so the fix is on the server or network side. Codes that mention timeouts or connection refused almost always mean a firewall, a stopped downstream service, or a wrong port in the configuration. Treat these as starting points, not certainties: the log entry for your specific code is the authority, and the vendor's knowledge base article for that exact code should confirm it before you change settings.
Server-Side Causes and Their Fixes
Stopped or hung service
Confirm it by checking the service state in the services console and looking for a gap in the log timestamps. Fix it with a stop-and-start of the MDS Connection Service; if it hangs repeatedly, check that the server has enough free memory, since a starved service is the usual reason for repeat hangs.
Blocked ports
Confirm it by running a connectivity test from the server to the downstream system on the port the log names. Fix it by opening that port in the firewall between the two, or correcting the port in the MDS configuration if it was typed wrong. Only change firewall rules you own, and record what you opened so it can be reviewed later.
Expired or invalid certificates
Confirm it by looking for certificate or handshake messages in the log at the same timestamp as the error. Fix it by renewing or reinstalling the certificate on the affected system, then restarting the service so it picks up the new certificate.
Device-Side Causes and Their Fixes
If the server checks all pass, the device is the likely culprit. A device with a stale enterprise registration sends requests the server cannot match to a valid account, which surfaces as a generic MDS error on the device even though the server is fine. Re-registering the device fixes it, and you can confirm success by watching the MDS log show the new registration arrive. A second device-side cause is a corrupted service book or configuration entry; deleting and re-sending it from the server administration console, then waiting a few minutes for the device to receive it, is the standard fix. A third is an app with a hard-coded server address that no longer resolves; test by opening a plain web page through the same connection — if that works, the app's own settings are the place to look.
When the Same Code Keeps Coming Back
A code that survives a service restart, a device re-registration, and a verified network path is telling you something is misconfigured rather than broken. At that point the order of work changes: pull the exact log entries for three separate occurrences and compare them. If all three show the same downstream server or the same app, you have your suspect, and the next step is that system's own logs rather than more MDS restarts. If the three point to different systems each time, look at what they share — the firewall, a proxy, or the server's resource limits — because the common component is where an intermittent fault lives. Escalate to your server administrator or the vendor's support channel with the code, the timestamps, and the log excerpts; that bundle is what they will ask for first, and having it ready shortens the back-and-forth considerably.
Official source: BlackBerry Support