Unable to import tag JSON list in UDT, new or existing

i will not manually add 250+ tags to my UDT through the UI. that's just :ox: :tshirt: . when i import an edited list, i get the following error:

Screenshot 2023-12-19 072616

when i export an existing tag list and try to import it immediately, with no changes, i get the exact same error. if i copy an existing UDT, export its tags, edit, and attempt to import: same error. regardless of combination: import yeilds error. i also noted that i cannot import from the context menu, but must use the little hamburger in the top left:

would someone be so kind as to explain what the :fork_and_knife: is going on?

running Ignition 8.1.27.

cow blouse ? you madman.

4 Likes

i have been known to turn a phrase, now and then. :smiley: :wink:

1 Like

I don't think you can import tags into the UDT definitions. The contextual menu is in "context" to UDT definitions. While the other assumes tag's are tag's as it is a standard menu.

I arrived at Bull Shirt. :man_shrugging:

3 Likes

Are you trying to modify the UDT definition by "importing" the list of internal tags?
Honestly I kind of wish that worked. As it is, you might be better off copying JSON, modifying that in your favorite macro-enabled text editor/shell script, then pasting back in.

pasting? not importing? how does that work? i've exported and edited the JSON file (pretty bog-standard there). so this should be a no-brainer...

if that's true, that's one the dumbest things i've ever seen. are we really expected to manually build hundreds of UDT tags from scratch or copy/paste/modify them???

maybe i'm using the wrong terminology. i am working in the UDT definition tab, creating UDT tags. does this still apply??

Nevermind, I just tried it and it's not working the way I would have expected. Trying to paste on top of the existing UDT makes it think I'm trying to nest a second UDT inside, Just trying to paste the tag JSON makes it think I'm importing tags into the UDT definitions.

Maybe this needs to be a feature request because it's not behaving intuitively at all.

jacked up, right? this should be stupid simple. maybe i'm not stupid enough?? :laughing:

joking aside, i can't believe this is an issue. there must be something i'm missing.

Well, I don't know what I did differently from you, but I was able to get the export/import function to do what I wanted.

Right click - export tags:

Edit in notepad to add a tag.

Right click - import tags - Interactive (direct might work but didn't check):

Imports just fine.
I'm also on Ignition 8.1.27 so I don't know what's going on.

UDT Definitions are where the structure of a UDT is defined. UDT Tags (Instances) are Tags which use the UDT as a type.

UDT Tags would be added in the Tags tag.

So the question is are you trying to create 150 different UDT Definitions, or are you trying to create 150 different instances of a UDT?

You exported and imported a UDT definition.

I'm going to take the risk of wading into this thread (I have nothing to do with the UX of the tag system, so don't jump down my throat).

It sounds like what you're trying to do is take a collection of "regular" tags, maybe make some out of band modifications to them, and then add them to an existing UDT?

Again, I won't talk about my thoughts about the nature of this flow, but to achieve that result, you can import your tags in the "regular" tag area, cut them from there, go to the UDT Definitions tab, expand the UDT you want to update, and paste the tags you want directly into it.

1 Like

UDT definitions. i exported UDT definitions, edited them, and tried to import the changes definitions back in.

FWIW, i am working with the labels, &c. that have come before me. if they are wrong (which is likely), please advise. for those who know me from a few months ago, i've been off developing a piece of software. but now i'm back (you poor bastards) and trying to reorient my brain to all things Ignition. :smiley:

everything i have attempted has been in the UDT Definitions tab.

@PGriffith okay. i'll give that a shot. i had tried to import the definitions as 'Interactive' and they all dumped into the Tags tab. from what you've explained, this is halfway to where i need to get. and, yeah... we won't talk about workflow... :wink:

I can only assume that whatever @ian.sebryk is trying to work with isn't being recognized as a UDT definition for reasons.

I may not have read every reply here... but thought I'd chime in with my knowledge of the intricacies of importing tags into or updating UDT definitions.

The tag editor does not accept:

  • tag JSON
  • copied tags from the tag browser

It only accepts tags copied from within the tag editor.

The tag browser UDT tab does not allow:

  • pasting tag JSON directly onto or into UDT Definitions.
    • To update a UDT Definition from tag JSON, you must select the folder it resides in, or the root (i.e. click just to the left of any UDT definition in the blank space so that nothing is selected) before pasting tag JSON from the clipboard. Otherwise, it will try to paste the tag JSON into the UDT definition and fail.
    • To copy tags into a UDT Definition, copy the tags (not the JSON) from the standard tab and then paste them into the UDT Definition in the UDT tab.
      If you've created the tag JSON from tools and it's in the clipboard, paste it into the standard Tags tab and then copy them from there and do as above.
3 Likes

Not the most intuitive workflow but I'm glad there is one.

Now that I think about it, would this possibly be the reason why @ian.sebryk was unable to choose the "import tags" command when right clicking inside the UDT Definitions tab? I notice he right clicked on the UDT itself while I right clicked in empty space.

3 Likes