Skip to main content

I am trying to setup an asset hierarchy using the Core Data Model as shown in the example:
https://docs.cognite.com/cdf/dm/dm_guides/dm_cdm_build_asset_hierarchy/

But I am getting some strange errors when I try to implement it. A normal container and view without a refernce to core data model works fines, but when trying to add cdm it fails. I am using the toolkit to deploy the data model.

In the “Data management” tab I get this error:


{
  "title": "",
  "message": "Cannot read properties of undefined (reading 'listPump')",
  "errors": r]
}

In the “Query explorer” I get these errors:

{
"errors":
{
"message": "The field type 'Cognite3DObject' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteSourceSystem' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAsset' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAsset' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAsset' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAssetClass' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAssetType' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteFile' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAsset' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteEquipment' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteActivity' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteTimeSeries' is not present when resolving type 'Pump' y@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAsset' is not present when resolving type '_CogniteAssetDirectRelation' t@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteAsset' is not present when resolving type '_CogniteAssetDirectRelationConnection' o@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteFile' is not present when resolving type '_CogniteFileDirectRelation' t@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteFile' is not present when resolving type '_CogniteFileDirectRelationConnection' o@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteEquipment' is not present when resolving type '_CogniteEquipmentDirectRelation' t@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteEquipment' is not present when resolving type '_CogniteEquipmentDirectRelationConnection' o@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteActivity' is not present when resolving type '_CogniteActivityDirectRelation' t@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteActivity' is not present when resolving type '_CogniteActivityDirectRelationConnection' o@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteTimeSeries' is not present when resolving type '_CogniteTimeSeriesDirectRelation' t@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "The field type 'CogniteTimeSeries' is not present when resolving type '_CogniteTimeSeriesDirectRelationConnection' o@-1:-1]",
"locations": o],
"extensions": {
"classification": "ValidationError"
}
}
]
}

 

Be the first to reply!

Reply