cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Query related to Thingworx Apps - Core Configurations V4.1.0

Arun_C
16-Pearl

Query related to Thingworx Apps - Core Configurations V4.1.0

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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"	}
]

View solution in original post

2 REPLIES 2

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"	}
]

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

Top Tags