Has system.opc.browse been deprecated?

Hi all,

I'm trying to create UDT instances using a script which directly browses our OPC server and adds them as needed, but I've noticed that system.opc.browse doesn't come up in the available functions list, and gives an error when I try to use it.

The documentation doesn't say anything about it being deprecated, so I'm a bit confused. I can use a recursive server.opc.browseServer call but it's much more complicated and not as elegant as the seemingly deprecated option.

This is on an Ignition Edge Gateway instance version 8.1.44

Thank you

Yes, it's deprecated.

The unbounded recursion performed by system.opc.browse caused performance issues and timeouts in many real world usages.

browseServer forces you to acknowledge the recursive nature and make separate calls at each level, which means separate RPC calls to the gateway when done from a Client or Designer, which means you don't run up against the hardcoded RPC call timeout.

1 Like

What error do you get and where are you trying to call it from?

It might be hidden from scripting autocomplete but it should still exist...

Are you trying to call this from a Client or Designer on a Gateway where you don't have the Vision module installed?

I'm using the Ignition Edge Designer Script Console, and the error is

AttributeError: 'com.inductiveautomation.ignition.designer.gui.tool' object has no attribute 'browse'