# MQTT Engine automatic tag generation not working as expected

**URL:** <https://forum.inductiveautomation.com/t/mqtt-engine-automatic-tag-generation-not-working-as-expected/59583>\
**Category:** 3rd Party Modules\
**Tags:** ignition81\
**Created:** [May 15, 2022, 1:52pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-automatic-tag-generation-not-working-as-expected/59583 "2022-05-15T13:52:51Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [May 18, 2022, 7:02pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-automatic-tag-generation-not-working-as-expected/59583/21 "2022-05-18T19:02:41Z")

</div>

The first thing I see is there are ‘.’ chars in the topic. These are not valid in Ignition tag names. So, you need to do a conversion on the ‘.’ → ‘\_’ or some other valid character for Ignition tags like this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/0/70ce58a6d7aa7fe97c262d064985c40a00e6a0bc.png)

After I made this change I think everything showed up…

---

<div class="post-metadata">

**Author:** ![Rick\_Bullotta](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rick\_Bullotta](https://forum.inductiveautomation.com/u/Rick_Bullotta)\
**Post date:** [May 18, 2022, 8:47pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-automatic-tag-generation-not-working-as-expected/59583/22 "2022-05-18T20:47:28Z")

</div>

…except they do show up without that change, as long as you disable the other namespace(s). I have a feeling there’s more going on here.

The original issue was that only one tag was being created, and disabling the default namespace(s) seemed to solve that.

---

<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:** [May 18, 2022, 9:54pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-automatic-tag-generation-not-working-as-expected/59583/23 "2022-05-18T21:54:01Z")

</div>

So if I don’t add the conversion rule - no tags with a ‘.’ show up and I see messages like this in the logs (which is what I’d expect):

```auto
INFO | jvm 1 | 2022/05/18 14:50:41 | E [c.c.m.e.g.j.JsonPayloadHandler] [21:50:41]: Failed to handle tagPath - not adding tag: TwinThread/Assets/Gentovo/Gentovo Energy Drink Plant/Packing/Packaging Line 1/Case Packer/Properties/ED.Pack.Line1.CasePacker.SKU/topicName - Remove it from future payloads 

```

I’ve run through this a few times - This occurs regardless of whether or not default namespaces are enabled or not. Without the conversions rule it is just tags associated with those specific topics that don’t show up. I still end up with a decent sized tag tree. I can’t seem to ever get only a single tag to appear regardless of what I do. When that happens in your environment, what tag is it?

[Previous page](https://forum.inductiveautomation.com/t/mqtt-engine-automatic-tag-generation-not-working-as-expected/59583.md?page=1)
