Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Orphan Relationships are being created for Storage Server of type Discovers::Discovered from.

MohammedAsK
Tera Contributor

We recently did a cleanup of Orphan Relationships where child or parent are missing. Now we have found that snowmid-discovery is creating Orphan Relationships, where child is a storage server, type is `Discovers::Discovered from` and the Parent is Missing.

 

Similar `Discovers::Discovered from` relations with Storage Server are with WBEM Service [Parent].

 

The Record History for the relationship shows parent as a blank,

in XML view, the Parent is null:

<parent display_value="">null</parent>.

 

 

I found a script include, working with wbem service, having the following code

 

 

if (gs.nil(discoversSysId)) {

 

 

  with the above code, it shouldn't create relationship where parent is null.

 

What can we do ? What can we check to find the cause on why these orphan relationship are being created.

 

0 REPLIES 0