CI visualization error (268 Views)
Reply
Advisor
Posts: 27
Registered: ‎01-25-2013
Message 1 of 3 (268 Views)

CI visualization error

Hello Everyone

 

I am getting following error when i search for a CI in SM 9.33.0035 (on both Windows client and web)

 

Process panel process.option in RAD display encountered error in line 1 (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Bad arg(2) oper = (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Bad arg(2) oper = (display,process.option)
Cannot evaluate expression (display,process.option)
Script 'ciVisualizationGraph'  line 1003: ERROR TypeError: relationship has no properties at char 1

 

i check script "ciVisualizationGraph" at line 1003 and it is

 

 var line = VisualLine.lookup(relationship.get("line.name"));

 

which is getting line name from

 

var repositories =   [ { "repository" : Node,                "file" : "device",                      "keys" : ["logical.name"] },
    // XXX Relation doesn't exists in database, here just what to use repository method (put/forEach/filter...)
    { "repository" : Relation,            "file" : "_relation_",                  "keys" : [] },
    { "repository" : Relationship,        "file" : "cirelationship",              "keys" : ["logical.name", "relationship.name"] },
    // XXX Though the unique key of SYSATTACHMENTS is not only these two fields, but they are enough for visualization
    { "repository" : VisualIcon,          "file" : "SYSATTACHMENTS",              "keys" : ["application", "topic"] },
    { "repository" : VisualLine,          "file" : "civisualizationline",         "keys" : ["line.name"] },
    { "repository" : VisualAdmin,         "file" : "civisualizationadmin",        "keys" : ["id"] },
    { "repository" : VisualLabel,         "file" : "civisualizationlabel",        "keys" : ["label.name"] },
    { "repository" : VisualDevice,        "file" : "civisualizationdevice",       "keys" : ["uniqueID"] },
    { "repository" : VisualDecorator,     "file" : "civisualizationdecorator",    "keys" : ["name"] },
    { "repository" : VisualRelationship,  "file" : "civisualizationrelationship", "keys" : ["relationship.type", "relationship.subtype"]}
  ];

 

 

i have check civisualizationline table and it has data, which seem correctly populated.

This has happened on upgrade from 9.32, we have tested on brand new 9.33 install and the graph was working.

 

Push from UCMDB was also successful.

Honored Contributor
Posts: 5,881
Registered: ‎11-10-2008
Message 2 of 3 (234 Views)

Re: CI visualization error

Honored Contributor
Posts: 300
Registered: ‎11-01-2011
Message 3 of 3 (226 Views)

Re: CI visualization error

Hi,

 

 

 This is caused becuas the relationship.subtype always has to contaiin a value. However relationship.type can be null - empty. But when both fields are empty this error message may appaer.

So please use relationship.subtype to match types coming from Ucmdb.
 
 

 

HP Support
If you find that this or any post resolved your issue, please be sure
to mark it as an accepted solution.
Please also give kudo if you find it interesting :)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.