# System.opc.browse issue

**URL:** <https://forum.inductiveautomation.com/t/system-opc-browse-issue/34750>\
**Category:** Ignition\
**Created:** [May 14, 2020, 4:31pm UTC](https://forum.inductiveautomation.com/t/system-opc-browse-issue/34750 "2020-05-14T16:31:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 14, 2020, 4:31pm UTC](https://forum.inductiveautomation.com/t/system-opc-browse-issue/34750/1 "2020-05-14T16:31:25Z")

</div>

I try to get the list of tags of my opc server with the built in function system.opc.browse() but the function return nothing…

I follow that exemple:  
server = “Local\_CODESYS”  
tags = system.opc.browse(opcServer=server)  
for row in tags:  
print row.getOpcServer(), row.getOpcItemPath(), row.getType(),  
print row.getDisplayName(), row.getDisplayPath(), row.getDataType()

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 14, 2020, 9:42pm UTC](https://forum.inductiveautomation.com/t/system-opc-browse-issue/34750/2 "2020-05-14T21:42:37Z")

</div>

Firstly, you should include all code within ` characters (you can also use the ‘preformatted text’ formatting button) so that spacing in your code is kept. Without it, code becomes unreadable.

Secondly, the [system.opc.browse](https://docs.inductiveautomation.com/display/DOC80/system.opc.browse) function requires two arguments at least, the server name and the device to retrieve tags from. I dont know if there’s a function that will browse devices as well, but this one doesn’t do that

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 15, 2020, 11:47am UTC](https://forum.inductiveautomation.com/t/system-opc-browse-issue/34750/3 "2020-05-15T11:47:11Z")

</div>

I have followed all examples in ignition 8 system.opc.browse and I never been able to get some result.

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 25, 2020, 5:56pm UTC](https://forum.inductiveautomation.com/t/system-opc-browse-issue/34750/4 "2020-05-25T17:56:28Z")

</div>

Can you provide me script example to browse opc, I just want to get something that works to put me on the good way…
