Hi,
We are currently working on a project that requires access to the Tag ID (UUID) in Ignition 8.3.
In Ignition 8.1, we understand that tag UUIDs are stored in the Config.IDB database, and we have been able to retrieve them successfully from there.
However, in Ignition 8.3, tag configurations appear to be file-based, and the Tag Config tables are no longer use in the Config.IDB database. As a result, we have been unable to locate the Tag ID (UUID). We assume it may now be stored in a different file or location.
Could you please help us identify where tag UUIDs are stored in Ignition 8.3 and share the relevant file names and storage locations?
Hmmm. Very good question. Not in tags.json, and not in the persistence value store.
They aren't stored anywhere now, they're computed from the path, something along the lines of:
public Serializable newId(Serializable name) {
MessageDigest md = MessageDigest.getInstance("MD5");
md.update(name.toString().getBytes(UTF_8));
return UUID.nameUUIDFromBytes(md.digest()).toString();
}
Interesting. So not fixed if a tag is renamed.
Correct. Compared to 8.1, the UUID is not stable across rename or move operations.
Probably want to reconsider this.
Understood. So, if we want to use UUIDs, we'll need to implement our own logic. Thanks for the information @Kevin.Herron