# BUG MQTT Engine: Server Settings: ClientID limited to 24characters

**URL:** <https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 14, 2021, 4:02pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597 "2021-04-14T16:02:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![321liftoff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/321liftoff/32/27544_2.png) [@321liftoff](https://forum.inductiveautomation.com/u/321liftoff)\
**Post date:** [April 14, 2021, 4:02pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597/1 "2021-04-14T16:02:06Z")

</div>

The MQTT Engine fails to create a connection to an MQTT server when the clientID is set to more than 24 characters.

For example, a clientID of 01234567890123456789012 works, but a clientID of 012345678901234567890123 fails.

Entries in the log file are the following:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/98463ca7015adb87552ddabd27f28da1f7b51e0b.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 14, 2021, 4:20pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597/2 "2021-04-14T16:20:46Z")

</div>

MQTT spec says the client identifier must be between 1 and 23 characters.

edit: actually it says the server must support lengths between 1 and 23, and may allow longer ones, but that is up to the server.

---

<div class="post-metadata">

**Author:** ![321liftoff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/321liftoff/32/27544_2.png) [@321liftoff](https://forum.inductiveautomation.com/u/321liftoff)\
**Post date:** [April 14, 2021, 4:44pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597/3 "2021-04-14T16:44:10Z")

</div>

Thanks @Kevin.Herron for digging into this. I thought it was failing on the addition of an “\_” character, but dug in and found it was the length that was the issue.

If the MQTT Engine is going to observe that limitation, it should do some data entry validation or at least have that information in the header of the text box of the ClientID on the web interface to help users. Also, the log files that are produced aren’t helpful to the layman in pointing to what the real issue is.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 14, 2021, 4:47pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597/4 "2021-04-14T16:47:22Z")

</div>

Yes, agree. @wes0johnson should be looped in.

---

<div class="post-metadata">

**Author:** ![wes0johnson](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@wes0johnson](https://forum.inductiveautomation.com/u/wes0johnson)\
**Post date:** [April 14, 2021, 5:05pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597/5 "2021-04-14T17:05:05Z")

</div>

I also agree. This required limitation was removed in the latest module versions (3.4.12 for Ignition7 and 4.0.7 for Ignition8). If the MQTT Client ID is user specified and over 23 chars - it will be accepted. Any internal programmatically generated MQTT client IDs will remain under 23 chars.

---

<div class="post-metadata">

**Author:** ![321liftoff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/321liftoff/32/27544_2.png) [@321liftoff](https://forum.inductiveautomation.com/u/321liftoff)\
**Post date:** [April 14, 2021, 5:44pm UTC](https://forum.inductiveautomation.com/t/bug-mqtt-engine-server-settings-clientid-limited-to-24characters/45597/6 "2021-04-14T17:44:30Z")

</div>

Thank you. I forgot to mention I was using 4.0.6 of the MQTT Engine.
