Query on FindNodeObject
-
When I try add script DCI to set Object status, I am getting following error
Script (DCI:POS_NODE_STATUS) execution error: Error 14 in line 3: Function or operation argument is not an objectScript POS_NODE_STATUS script in lib is :
pnode = FindNodeObject($node,"sw");
dciName = "IST Port status";
dciId = FindDCIByDescription(pnode, dciName);
dciObj = GetDCIObject(pnode, dciId);
if (dciId == null) return 0;tableOld = GetDCIValue(pnode, dciId);
if (tableOld == null) return 0;I try to execute first few line of above script in Transformation window for checking purpose, I noticed that FindNodeObject does not able to find object “sw”, I tried same by giving object id also, but still output of script is null, I have attached screenshot of script execution result and "sw" object properties
Can you please let me know why FindNodeObject function count not find the object ?
Also can you please help me to correct above script, if it requires any change
-
Hi,
most likely problem caused by trusted node check. You should either add current node (where script is being executed) to list of trusted nodes on node sw, or disable trusted nodes check completely by setting server configuration parameter CheckTrustedNodes to 0 and restart server.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login