I am trying to run a script using the OPC class within Ignition. When trying to read a value for the OPC item path I get 'Bad(Bad_NodeIdUnknown....). Then I added this OPC item path to a OPC tag within Ignition. Once I do that, I can run the script and get good data as shown in the picture attached. Is this expected behavior, and if so does a way exist to do this in the script without having to create the dummy tag?
path = 'ns=2;s=LAB_ROC.98.1:24'
server = 'ACM_04UA'val = system.opc.readValue(server, path)
print(val)