Passing nodeid as string on system.opcua.callMethod

Hi. I'm trying to call a method using system.opcua.CallMethod like the following code:

	output = system.opcua.callMethod(
        "OPC_Pedidos",
        "ns=2;s=/Pedidos",
        "ns=2;s=/Pedidos/BasicReport",
        []
    )

When I check output[2], I obtain an empty list. However, when I call the method with the following syntax:

	output = system.opcua.callMethod(
        "OPC_Pedidos",
        "ns=2;i=1",
        "ns=2;i=28",
        []
    )

The result is what I expected. In the OPC Browser, my methods are organized like this:

image

Is there any errors in my syntax on the first code? It would be useful to call the node via a string, because when creating or eliminating methods, the ids change and I need to change the id on the script.

Thanks in advance, Gabriel.

Those String-based NodeIds are only valid if they are the NodeIds used by the server. You cannot just concatenate browse path and assume it's a valid NodeId.