Article - CS198580

Detection, Removal and Prevention of Ghost Entities in ThingWorx Platform

Modified: 19-Feb-2025   


Applies To

  • ThingWorx Platform 5.0 to 9.7

Description

  • What are Ghost Entities in ThingWorx ?
  • Unable to create an Entity using the same name as an Entity that failed to create
  • How to troubleshoot Ghost Entities in ThingWorx
  • How to remove/prevent creation of Ghost Entities in ThingWorx
  • Database corruption after creating entities programmatically
  • What is proper error handling when creating entities programmatically?
  • Need error handling code example to Delete Thing when CreateThing service fails
  • Unable to export entities in ThingWorx with error -
error: Unable to remove thing from database:...Node Not Found
  • Thing created from a service is only visible from QueryImplementingThings
  • Can't search out the thing created from a service, failed to create the same name thing with error the entity already exist
  • How to check for Ghost Entities via a custom service
  • Unable to delete the thing in ThingWorx with below error -
[1,018] Data store unknown error: [Error occurred while accessing the model provider.]
  • Mashup shows Things that have been previously deleted, and can no longer be found within ThingWorx Composer
[1,018] Data store unknown error in application log and following logs in DataBase logs
ERROR:  duplicate key value violates unique constraint "model_index_entities_ukey"
DETAIL:  Key (entity_name, entity_type)=(AnalyticsServerRuntimeInstance, 2401) already exists.
The name of the entity is not unique.
This is a printer-friendly version of Article 198580 and may be out of date. For the latest version click CS198580