Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Query on FindNodeObject

Query on FindNodeObject

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 36.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    Nagav
    wrote on last edited by
    #1

    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 object

    Script 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


    screenshot.docx

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups