# Not a valid tag name

**URL:** <https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758>\
**Category:** Ignition\
**Created:** [April 15, 2010, 3:28pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758 "2010-04-15T15:28:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 15, 2010, 3:28pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/1 "2010-04-15T15:28:59Z")

</div>

I am creating a bunch of SQL tags based on the clients device names.  
It appears that ‘28L67’ is invalid. I’m guessing that it is because it’s starting with a #.

1. What are the tag naming rules? Can they be put in the user manual please?
2. Can you change it so that ‘28L67’ is an allowed tag name? Please? ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [April 16, 2010, 7:58am UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/2 "2010-04-16T07:58:18Z")

</div>

I’ve ended up prefacing numeric tags with an underscore.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 16, 2010, 3:20pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/3 "2010-04-16T15:20:56Z")

</div>

For the moment I’ve done something similar. However, This tags are been generated by a 3rd party application and are been accessed/updated by it as well. Having to filter all tags access means a bunch of work that I’d rather not have to do.

Why is the limitation there? If it’s an OPC standard, I can see it for OPC tags, but I’m not using OPC.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [April 16, 2010, 3:45pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/4 "2010-04-16T15:45:38Z")

</div>

Right now tag names are restricted to starting with a character or an underscore. It was coded this way out of habit, I suppose, since we are used to this sort of naming restriction for things like database columns, programmatic variable names, etc.

I don’t think there should be any problem allowing digits as the starting character of tag name.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 16, 2010, 5:26pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/5 "2010-04-16T17:26:30Z")

</div>

So I can look for it in this weeks release? 😈

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [April 16, 2010, 8:44pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/6 "2010-04-16T20:44:39Z")

</div>

Yes you can! It is done.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 16, 2010, 11:08pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/7 "2010-04-16T23:08:11Z")

</div>

you guys are awesome ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:") ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:") ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [May 3, 2010, 4:22pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/8 "2010-05-03T16:22:49Z")

</div>

_sigh_  
More things you can not put in a SQL TAG name:  
é + . ( ) /

Things you can put in a SQL Tag name:  
1234567890\_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

Can the naming restrictions please be added to the documentation? ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [May 3, 2010, 9:34pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/9 "2010-05-03T21:34:17Z")

</div>

This info will be in the help manual in the next release.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [May 4, 2010, 4:23pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/10 "2010-05-04T16:23:41Z")

</div>

Thank you, thank you, thank you

---

<div class="post-metadata">

**Author:** ![tyrel.parker](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tyrel.parker](https://forum.inductiveautomation.com/u/tyrel.parker)\
**Post date:** [August 26, 2019, 10:01pm UTC](https://forum.inductiveautomation.com/t/not-a-valid-tag-name/1758/11 "2019-08-26T22:01:55Z")

</div>

Where are the naming rules in the manual? I cannot find them. If you search for naming in the documentation it simply pulls up Named Queries and such.
