# \[BUG-16270\] Component Names Not Allowing Hyphens

**URL:** <https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599>\
**Category:** Ignition Early Access\
**Tags:** ignition80\
**Created:** [April 1, 2020, 6:42pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599 "2020-04-01T18:42:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![WillMT10](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@WillMT10](https://forum.inductiveautomation.com/u/WillMT10)\
**Post date:** [April 1, 2020, 6:42pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/1 "2020-04-01T18:42:09Z")

</div>

In the vision module, if you create a new component that already has a hyphen ("-") in the default component name, the designer allows it (“2-State Toggle”, etc). But if you then try to change the name of the component to anything that still includes the hyphen it causes an error (example: changing to “2-State Toggle Test” is not allowed). So either hyphens should be allowed and the error is the bug, or hyphens should NOT be allowed and the bug is that the default component names have hyphens. Based on [this topic](http://forum.inductiveautomation.com/t/bug-13089-error-invalidpathsyntax-in-perspective-binding/26282) it sounds like they should be allowed.

We’re running 8.0.10, with the designer running on a Mac.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 1, 2020, 7:27pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/2 "2020-04-01T19:27:52Z")

</div>

Oof. That’s…a bit embarrassing. I filed a ticket.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 1, 2020, 8:12pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/3 "2020-04-01T20:12:48Z")

</div>

Well that was a Perspective topic and this is a Vision issue. Personally, I strongly disagree with allowing hyphens, for the reason noted in that thread. Y’all are boxing out any possibility of tight jython or json integration with the component model (in either Perspective or Vision).

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 1, 2020, 8:13pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/4 "2020-04-01T20:13:44Z")

</div>

Yeah, but the 2-state toggle button has been dropping into Vision with an invalid name since 2014. We’ll probably just update that so it’s no longer using hyphens.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 7, 2020, 10:18pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/5 "2020-07-07T22:18:29Z")

</div>

Fixed in 8.0.15.

---

<div class="post-metadata">

**Author:** ![WillMT10](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@WillMT10](https://forum.inductiveautomation.com/u/WillMT10)\
**Post date:** [July 8, 2020, 6:45pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/6 "2020-07-08T18:45:46Z")

</div>

I see in the change log it calls out the “2-State Toggle” button specifically. Does this also fix the issue with the 3 other hyphenated components?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 8, 2020, 7:19pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/7 "2020-07-08T19:19:51Z")

</div>

…Of course. I definitely didn’t just read 2-State toggle button on this thread and not think to actually check other components. Certainly not.

Joking aside, unfortunate timing means that the other component fixes will go into 8.0.16, not 8.0.15, but they’ll also be fixed.

---

<div class="post-metadata">

**Author:** ![WillMT10](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@WillMT10](https://forum.inductiveautomation.com/u/WillMT10)\
**Post date:** [July 8, 2020, 7:27pm UTC](https://forum.inductiveautomation.com/t/bug-16270-component-names-not-allowing-hyphens/33599/8 "2020-07-08T19:27:02Z")

</div>

Haha I figured it had to be something like that, but just wanted to check! Thanks Paul!
