How to handle SMPP error: Message Length invalid

This document shows the settings that need to be applied in case you receive an SMPP error: 1: Message Length is invalid from your mobile network operator or SMPP service provider. In short, this error indicates that the submitted SMPP SMS PDU contains a message that is longer than the allowed limit set by the SMS service provider.

Error Message

2023-06-20 14:02:58.398 ERRO Swisscom: Envelope rejected by SMSC. SMPP error: 1: Message Length is invalid.
2023-06-20 14:02:58.398 INFO Swisscom: Message submit failed.

Relevant settings

To begin the process, log into your Ozeki SMS Gateway account, or if you do not have an Ozeki account, then download the Ozeki Gateway from the https://ozeki-sms-gateway.com/ website. After logging in to the Ozeki SMS Gateway, you need to load the SMS Gateway, by clicking on the "SMS Gateway" icon from the given ones. It will bring you to the Ozeki Home page, where you need to find the "Connections" part of the page, which is located on the upper left side. Click on your SMPP client to set up the necessary settings to solve the error message, you've received before.

Figure 1 - Open the SMPP client

By clicking on the SMPP client, you will be directed to the connection's details page. Choose the "Configure" menu, then the "SMS" tab, which allows you to access various configurations.

Figure 2 - Select SMS tab in the Configuration

Open the "Multipart (SAR)" section of the SMS details. There you need to set up the message reference number length to use. Mark the needed options with an "X" sign. To enable Segmentation, you need to mark the "Segment plain text messages", "Segment unicode text messages" and "Segment binary messages" formats.

Figure 3 - Enable Segmentation

Summary

In conclusion, Ozeki SMS Gateway provides an effective solution for overcoming SMPP issues and assuring seamless SMS transmission. Ozeki SMS Gateway is high-performance, reliable SMS gateway software that helps handle SMPP errors. By following these steps, the error can be resolved, allowing users to send longer messages within the provider's limitations.