# Tag.browse , doesnt return value-key

**URL:** <https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 18, 2021, 3:20pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359 "2021-01-18T15:20:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kleppe85](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kleppe85](https://forum.inductiveautomation.com/u/Kleppe85)\
**Post date:** [January 18, 2021, 3:20pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/1 "2021-01-18T15:20:06Z")

</div>

Hi,  
I’m trying to create a script in the project library to store some tag values to a database.  
Using system.tag.browse in the script console, I’m able to do this by using

```auto
timers = system.tag.browse(path = "[default]Limits/Speed")
for row in timers.getResults():
    print row
    val = row["value"]

```

Adding the script to the project library, It seems like the “value” - key is not available.  
Kinda strange since I can see this when I print each row 🙂

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/07d0c3e495ffab42e5eb6c608dc77fc36341c149.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/1/d1f9f29dff8576a76edb79dec8683a7a0d48764a.png)

---

<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:** [January 18, 2021, 4:17pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/2 "2021-01-18T16:17:23Z")

</div>

Without seeing the rest of script, I’m just guessing, but your browse is called `timers`, yet you’re calling getResults() on `limits`

---

<div class="post-metadata">

**Author:** ![Kleppe85](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kleppe85](https://forum.inductiveautomation.com/u/Kleppe85)\
**Post date:** [January 19, 2021, 8:33am UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/3 "2021-01-19T08:33:41Z")

</div>

Copy/paste error from script console. Bad example 🙂

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [January 19, 2021, 1:39pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/4 "2021-01-19T13:39:55Z")

</div>

Can’t you use `system.tag.readBlocking`? It should be much more efficient for reading the values.

---

<div class="post-metadata">

**Author:** ![Kleppe85](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kleppe85](https://forum.inductiveautomation.com/u/Kleppe85)\
**Post date:** [January 19, 2021, 2:30pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/5 "2021-01-19T14:30:18Z")

</div>

Is it more efficient to execute a readBlocking when the value allready exists in the browse result?  
Seems like the script somehow is working from project library now, can’t say I have done any adjustments 🙂 Guess the good old “restart your computer” did the trick.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [January 19, 2021, 3:01pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/6 "2021-01-19T15:01:51Z")

</div>

If you need some or all of the data that is returned with the browse results then yeah, it makes since to pull the value from them. If you don’t then, readBlocking is definitely going to be more efficient.

---

<div class="post-metadata">

**Author:** ![Kleppe85](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kleppe85](https://forum.inductiveautomation.com/u/Kleppe85)\
**Post date:** [January 19, 2021, 10:17pm UTC](https://forum.inductiveautomation.com/t/tag-browse-doesnt-return-value-key/42359/7 "2021-01-19T22:17:35Z")

</div>

I see that I didn’t explain what I was trying to achieve 🙂 I’m using browse to extract tag name,full path and value to log to a database. Easy way to have a backup of “retain” variables in the plc.
