Skip to main content
16-Pearl
March 6, 2023
Solved

Query related to Thingworx Apps - Core Configurations V4.1.0

  • March 6, 2023
  • 1 reply
  • 2154 views

Hi, 

I have successfully installed Thingworx AMU Application in my local system for exploration. After installing AMU, I'm trying to do the thingworx app core configuration by the given link Core Functions - Process the JSON File. 

 

In this process, I have filled all required sheets & mandatory columns in the spreadsheet with the demo values as per the instructions. After that successfully generated the JSON file with the help of the README file. But when executing that SQL query in database of thingworxapps with generated JSON string, I'm getting some error message - Error, Parent Equipment Type Hierarchy is not respected.

 

Arun_C_0-1678089181419.png

 

Can anyone please help me to out for continuing further exploration. 

 

FYR, I'm here sharing the below documents,

  • Demo value filled Spreadsheet.XSLX
  • Generted JSON Source File

Thanks in advance.

 

 

Best answer by Constantine

Hello Arun,

 

If I understand the instructions correctly,

 

Equipment must also have a Parent Equipment, except for Equipment that are part of Equipment Type Level 1. The Parent Equipment must be exactly one level higher in the hierarchy (cannot skip hierarchy levels).

 

then the parent equipment for machines 1 and 2 should be empty, i.e. this JSON:

"equipments":[
	{
	 "name": "TWApps_Machine1",
	 "displayName": "Machine1",
	 "enabled": true,
	 "equipmentTypeName": "TWApps_Electrical equipment",
	 "parentEquipmentName": ""	},
	{
	 "name": "TWApps_Machine2",
	 "displayName": "Machine2",
	 "enabled": true,
	 "equipmentTypeName": "TWApps_Electrical equipment",
	 "parentEquipmentName": ""	},
	{
	 "name": "TWApps_Machine3",
	 "displayName": "Machine3",
	 "enabled": true,
	 "equipmentTypeName": "TWApps_Diving equipment",
	 "parentEquipmentName": "TWApps_Machine2"	}
]

1 reply

18-Opal
March 6, 2023

Hello Arun,

 

If I understand the instructions correctly,

 

Equipment must also have a Parent Equipment, except for Equipment that are part of Equipment Type Level 1. The Parent Equipment must be exactly one level higher in the hierarchy (cannot skip hierarchy levels).

 

then the parent equipment for machines 1 and 2 should be empty, i.e. this JSON:

"equipments":[
	{
	 "name": "TWApps_Machine1",
	 "displayName": "Machine1",
	 "enabled": true,
	 "equipmentTypeName": "TWApps_Electrical equipment",
	 "parentEquipmentName": ""	},
	{
	 "name": "TWApps_Machine2",
	 "displayName": "Machine2",
	 "enabled": true,
	 "equipmentTypeName": "TWApps_Electrical equipment",
	 "parentEquipmentName": ""	},
	{
	 "name": "TWApps_Machine3",
	 "displayName": "Machine3",
	 "enabled": true,
	 "equipmentTypeName": "TWApps_Diving equipment",
	 "parentEquipmentName": "TWApps_Machine2"	}
]
Arun_C16-PearlAuthor
16-Pearl
March 8, 2023

HI @Constantine , Thank you for your support. Now It's working fine.