What does "DLT template variable exceeded max length" mean?
Each variable in a DLT SMS template has a maximum length. When the value your system puts into a variable is longer, scrubbing rejects the SMS with a "variable exceeded max length" error, even though the template itself is approved. The fix is either a shorter value or a template with the right variable type.
Quick answer
The value you filled in is longer than the variable allows. Typed variables such as {#numeric#} and {#alphanumeric#} allow 40 characters, {#url#} allows 120, and the old {#var#} allowed 30. Shorten the value, or register a template with a type that fits it.Limits for each variable
These are the limits DLT portals publish. Operators can set their own, so confirm on your portal.
- {#numeric#}: 40 digits
- {#alphanumeric#}: 40 characters
- {#url#} and {#urlott#}: 120 characters
- {#cbn#}: 3 to 14 digits
- {#email#}: 40 characters
- Old {#var#}: 30 characters
How to fix it
Pick the fix that matches what overflowed.
- Long names or addresses: trim to a first name, or move the detail to a link
- Long links: shorten with a whitelisted short domain and send them in a {#url#} variable
- Text that changes a lot: move the stable part into the fixed text and keep the variable short
- Old {#var#} templates: register a typed version, which also allows longer values
Test before you send
Fill your template with the longest real values your system can produce, such as the longest customer name or product title, and check every variable fits. Our free checker validates sample values against each tag's type and length.
Frequently asked questions
Can I increase a DLT variable's length?+
Can I use two variables for one long value?+
Do spaces count towards the variable length?+
Why did it work before and fail now?+
Longer messages without variable limits
WhatsApp templates allow up to 1,024 characters in the body. Send detailed updates on WhatsApp through InfiQ.