# Lost my tags

**URL:** <https://forum.inductiveautomation.com/t/lost-my-tags/1877>\
**Category:** Ignition\
**Created:** [May 27, 2010, 8:30pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877 "2010-05-27T20:30:58Z")\
**Posts on this page:** 9\
**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:** [May 27, 2010, 8:30pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/1 "2010-05-27T20:30:58Z")

</div>

I have created a project with lots of tags in a DB provider. The driver is our own software.  
I have just moved the project onto a new gateway (on the customers computer) and now it can’t see the tags. I have configured the database in the gateway. I have used the sql browser tool in the designer and it can see the values changing in the sqlt\_core table. But the tags don’t show up in the tag list.

Where should I look?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [May 27, 2010, 9:00pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/2 "2010-05-27T21:00:23Z")

</div>

You have to make sure that the database connection is valid and the Database Provider is added pointing to the right datasource.

---

<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 27, 2010, 9:01pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/3 "2010-05-27T21:01:05Z")

</div>

Done that

---

<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 27, 2010, 9:13pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/4 "2010-05-27T21:13:51Z")

</div>

I’m getting a lot of these on my console:

[code]Message

Error during tag store poll.  
Logger

com.inductiveautomation.ignition.gateway.sqltags.DBTagStore.[Maisonneuve]  
Time 5/27/10 5:12:36 PM Level ERROR Thread http-8088-3  
Exception  
com.inductiveautomation.ignition.gateway.web.pages.config.systemconsole.LogViewer$SerializableLoggingEvent$ClonedThrowable: java.lang.IllegalArgumentException: Unknown typecode: 2003  
…deleted to retain sanity…  
(Event 1 of 249) \< Previous Next \>[/code]

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [May 27, 2010, 9:36pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/5 "2010-05-27T21:36:53Z")

</div>

Err… very mysterious. Does your app create the tables?

Check out the data types of the columns in the sqlt\_perm table. It appears that one of them is possibly some sort of… array type? Basically, when Ignition reads that table and gets the meta information, one of the columns is coming back as type 2003, which in JDBC is ARRAY, and doesn’t have a mapping in our system.

Regards,

---

<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 27, 2010, 9:50pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/6 "2010-05-27T21:50:49Z")

</div>

Yes we created the tables our selves:

```auto
CREATE TABLE sqlt_perm
(
  tagid integer NOT NULL,
  rolename character varying[],
  accessrights integer,
  CONSTRAINT sqlt_core_id_fkey FOREIGN KEY (tagid)
      REFERENCES sqlt_core (id) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION
)
```

has been changed to:

```auto
CREATE TABLE sqlt_perm
(
  tagid integer NOT NULL,
  rolename character (250),
  accessrights integer,
  CONSTRAINT sqlt_core_id_fkey FOREIGN KEY (tagid)
      REFERENCES sqlt_core (id) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION
)
```

now I get one tag

---

<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 27, 2010, 9:55pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/7 "2010-05-27T21:55:32Z")

</div>

Here are the new errors:

```auto
Message  	

Registering 1 orphaned tags for scan class 'elan'
Logger 	

com.inductiveautomation.ignition.gateway.sqltags.providers.DatasourceTagProvider[Maisonneuve]
Time 5/27/10 5:52:25 PM Level INFO Thread http-8088-5
Exception
Error is empty. 
```

```auto
com.inductiveautomation.ignition.gateway.web.pages.config.systemconsole.LogViewer$SerializableLoggingEvent$ClonedThrowable: null
com.inductiveautomation.ignition.gateway.sqltags.execution.alert.ExecutableAlarmState.createNewMessage(ExecutableAlarmState.java:216)
com.inductiveautomation.ignition.gateway.sqltags.execution.alert.ExecutableAlarmState.unInitialize(ExecutableAlarmState.java:113)
```

---

<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 27, 2010, 10:13pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/8 "2010-05-27T22:13:35Z")

</div>

updating the configchanged column caused all my tags to appear.

But now they are all STALE, even though I can watch the values changes in the designer

_update_  
updateing the configchanged time on the sqlt\_sc table caused things to come good.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [May 27, 2010, 10:29pm UTC](https://forum.inductiveautomation.com/t/lost-my-tags/1877/9 "2010-05-27T22:29:23Z")

</div>

Sounds like you’ve got it taken care of. A few things of note:

-“Orphaned tags” are tags whose scanclasses don’t exist, or aren’t loaded. The whole system of orphaned tags was found to have a bit of a problem in 7.1.1, and it’s been fixed for 7.1.2. Your issues here aren’t due to that problem, but I just wanted to mention that.

-When reporting or tracking down errors, it’s probably better to go look at the “wrapper.log” file in the install directory. Through the gateway, some info (like the actual exception name!) gets lost. We need to fix that soon- but for now you can find in in the text file.

Regards,
