Getting the error: Device is not supported for an asset in the Digital Twin Manager

What product/components do you use and which version/fix level are you on?

latest

Is your question related to the free trial, or to a production (customer) instance?

production

What are you trying to achieve? Please describe it in detail.

The digital twin manager doesnot show the subasset of asset

Do you get any error messages? Please provide a full error message screenshot and log file.

---------> after clicking the Main subasset the following information is provided.

Have you installed all the latest fixes for the products and systems you are using?

yes

Hi Prathyusha,
Digital Twin Manager is an application to create and define assets and asset hierarchies. To display the devices linked to an asset you can either use the applications Cockpit or Device Management.
The link in the second screenshot will route you to the device in Device Management.

Felix

Main is not an device.
Here is the json_body:
{
“name”: “Main”,
“fp_type”:“FP.Facility.Building”,
“type”: “c8y_DeviceGroup”,
“c8y_ISDeviceGroup”: {},
“c8y_Position”: {
“lng”: “”,
“lat”: “”,
“trackingProtocol”:“”
},
“c8y_Address”: {

 "street":  "", 
 "city": "", 
 "cityCode":"", 
 "region":"", 
 "country": "" 

}
}
Main is as child asset to the Kiel asset.

ost: {{url}}/inventory/managedObjects/{{deviceId}}/childAssets?Content-Type=application/vnd.com.nsn.cumulocity.managedobject+json&Accept=application/vnd.com.nsn.cumulocity.managedobject+json

Body:
{
“managedObject”: {“id”:“85882”}
}
Here is the screenshot of the hirearchy from GET query.

Hi Prathyusha,

can you share the full asset with id 85882? (GET on {{url}}/inventory/managedObjects/85882). It looks like you are expecting a Device Group but the DTM UI links it to a device (Screenshot 2 with Route …/device/85882)

Thanks
Felix

Here is the output of the above query.

{
“additionParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/additionParents”
},
“owner”: “Prathyusha.Kanda@factorypuls.com”,
“childDevices”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/childDevices”
},
“childAssets”: {
“references”: [
{
“managedObject”: {
“name”: “Cannula packing line”,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/1201”,
“id”: “1201”
},
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/childAssets/1201”
}
],
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/childAssets”
},
“creationTime”: “2023-01-10T10:15:39.385Z”,
“type”: “c8y_DeviceGroup”,
“lastUpdated”: “2023-01-10T10:21:37.244Z”,
“childAdditions”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/childAdditions”
},
“name”: “Main”,
“deviceParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/deviceParents”
},
“assetParents”: {
“references”: [
{
“managedObject”: {
“additionParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142/additionParents”
},
“childDevices”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142/childDevices”
},
“childAssets”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142/childAssets”
},
“childAdditions”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142/childAdditions”
},
“name”: “Kiel”,
“deviceParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142/deviceParents”
},
“assetParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142/assetParents”
},
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/142”,
“id”: “142”
},
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/assetParents/142”
},
{
“managedObject”: {
“additionParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139/additionParents”
},
“childDevices”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139/childDevices”
},
“childAssets”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139/childAssets”
},
“childAdditions”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139/childAdditions”
},
“name”: “Medmix Deutschland GmbH”,
“deviceParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139/deviceParents”
},
“assetParents”: {
“references”: ,
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139/assetParents”
},
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/139”,
“id”: “139”
},
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/assetParents/139”
}
],
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882/assetParents”
},
“self”: “https://t166340278.emea.cumulocity.com/inventory/managedObjects/85882”,
“id”: “85882”,
“c8y_Address”: {
“country”: “”,
“city”: “”,
“street”: “”,
“cityCode”: “”,
“region”: “”
},
“fp_type”: “FP.Facility.Building”,
“c8y_ISDeviceGroup”: {},
“c8y_Position”: {
“trackingProtocol”: “”,
“lng”: “”,
“lat”: “”
}
}

Hi Prathyusha,

the fragment for the Device Group is incorrect. The Fragment for a Device Group is :“c8y_IsDeviceGroup”. So maybe the DTM uses the device route as a fallback here.
Did you create the Group via API?
Could you try to change it via API with a PUT on {{url}}/inventory/managedObjects/85882
Body:
{ "c8y_ISDeviceGroup": null, "c8y_IsDeviceGroup": {} }

Felix

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.