Skip to main content
4-Participant
March 30, 2021
Solved

Removing Thing from Network then use IsInNetwork() on this removed Thing, return true.

  • March 30, 2021
  • 1 reply
  • 1212 views

Hi,

 

I tried to remove a Thing from Network using code below.

Networks["NetworkTest"].RemoveFromNetwork({
    name: toolName /* STRING */
});

 

Then I used IsInNetwork() on this removed Thing, however it returns true.

var result = Networks["NetworkTest"].IsInNetwork({ 
              name: toolName
             });

 

I took a look under the Network Hierarchy tab. Apparently this Thing no longer exists in Network. Not know how to solve this issue. Hope anyone can help. Thanks a lot.

Best answer by knagata

Hi @LL_9777686,

 

I can reproduce the issue in Thingworx 9.1.0. This is a known issue already reported to R&D and it is expected to be corrected in
Thingworx 8.5.14, 9.0.7 and 9.0.2.
For now, the Network may be manually restarted and saved or ThingWorx Platform restarted for the change to take effect.

 

1 reply

knagata14-AlexandriteAnswer
14-Alexandrite
March 31, 2021

Hi @LL_9777686,

 

I can reproduce the issue in Thingworx 9.1.0. This is a known issue already reported to R&D and it is expected to be corrected in
Thingworx 8.5.14, 9.0.7 and 9.0.2.
For now, the Network may be manually restarted and saved or ThingWorx Platform restarted for the change to take effect.

 

5-Regular Member
April 1, 2021

Hello @LL_9777686 

 

If the previous response helped you to find a solution, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards,

Toolika Dixit