# Import json tags generating out of bounds for length

**URL:** <https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336>\
**Category:** Ignition\
**Created:** [September 19, 2023, 12:25pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336 "2023-09-19T12:25:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martial\_Wilbert](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Martial\_Wilbert](https://forum.inductiveautomation.com/u/Martial_Wilbert)\
**Post date:** [September 19, 2023, 12:25pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/1 "2023-09-19T12:25:56Z")

</div>

Hi,  
I want to use the interactive tag import function because I find it really cool.  
But I've come across an error that I don't understand and I'd like to know if any of you can help me out.

Here are the elements:

First test: Import the tagD1.json file =\> Perfect !  
[tagD1.json](https://forum.inductiveautomation.com/uploads/short-url/A7bo3F9mEcy665JWAIdIYlMGOq7.json) (1.0 KB)

Second test: Import the tagD2.json  
[tagD2.json](https://forum.inductiveautomation.com/uploads/short-url/3JUDs8TTCeZic6z4uu514Id8CY4.json) (1.0 KB)

Get the error  
 ![2023-09-19_14h18_44](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4f86553584f00ff62009ccbbee7296cfa297e1f5.png)

The 6 depends on where I'm trying to create the tags. If I try to create folder on the root, I will get the same error but with Index 5 instead of 6:  
 ![2023-09-19_14h19_20](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/f/3f4c721bba8e1f7b2c3c8e6795a2af8affa1863e.png)

I thought that it may coming from a too long property on the tag definition but I do not see. It's propably something on the json file that it generated by an external tool but I do not see the issue....

Thanks,  
Martial

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 19, 2023, 1:05pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/2 "2023-09-19T13:05:15Z")

</div>

You may find this of interest.

> [@Tag Naming, Characters not allowed](https://forum.inductiveautomation.com/t/tag-naming-characters-not-allowed/53840/9):
>
> I agree with victor here, I’d use only [a-z][A-Z][0-9] and \_ ( "^[a-zA-Z0-9\_]\*$") for tag names. Now, it would be cool to have a displayName prop on tags, that would be used for things like tag browsers, that would accept any character.

---

<div class="post-metadata">

**Author:** ![Martial\_Wilbert](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Martial\_Wilbert](https://forum.inductiveautomation.com/u/Martial_Wilbert)\
**Post date:** [September 19, 2023, 2:01pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/3 "2023-09-19T14:01:25Z")

</div>

Thx Jordan,  
Interested.  
But tagD1.json was imported properly even with {é} and {-} on tagName

So ...

---

<div class="post-metadata">

**Author:** ![Martial\_Wilbert](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Martial\_Wilbert](https://forum.inductiveautomation.com/u/Martial_Wilbert)\
**Post date:** [September 19, 2023, 2:13pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/4 "2023-09-19T14:13:26Z")

</div>

At the end, effectively, the issue was on the name of the folder that contains a . on G.E

Thanks Jordan for this orientation... I did not deeply dig about it enough.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 19, 2023, 3:08pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/5 "2023-09-19T15:08:34Z")

</div>

You may also want to consider trimming/commonizing folder and tag names. A lot of terms are getting repeated. It's okay for the documentation properties, but the full tag paths stretch off into the horizon. 😉

An example may be:  
`Armoire test/TGBT2/Tension Arrivée/QPT-IS1/Position`  
`Armoire test/TGBT2/Tension Arrivée/QPT-IS1/Defaut`

---

<div class="post-metadata">

**Author:** ![Martial\_Wilbert](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Martial\_Wilbert](https://forum.inductiveautomation.com/u/Martial_Wilbert)\
**Post date:** [September 27, 2023, 11:49am UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/6 "2023-09-27T11:49:49Z")

</div>

Jordan,  
Thanks but I don't really understand what you mean...

You suggest to me to not use Tree organisation but better using long name with /, isn't it?

Thx

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 27, 2023, 12:09pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/7 "2023-09-27T12:09:45Z")

</div>

Tree organization is fine. I'm suggesting that extending the tree may help better group your tags.

```plaintext
Armoire test
    └ TGBT2
		└ Tension Arrivée
			└ QPT-IS1
				├ Position
				└ Defaut

```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 27, 2023, 12:10pm UTC](https://forum.inductiveautomation.com/t/import-json-tags-generating-out-of-bounds-for-length/79336/8 "2023-09-27T12:10:19Z")

</div>

> [@Martial\_Wilbert](#):
>
> You suggest to me to not use Tree organisation but better using long name with /, isn't it?

I don't think `'/'` is a valid character in tag names.  
He's suggesting reorganizing your tree so that things are logically grouped.
