Skip to main content
Solved

Deploying Data Model with CDF Toolkit

  • February 12, 2025
  • 5 replies
  • 94 views

Forum|alt.badge.img+8

I created a small configuration using “cdf modules init for the cdf_process_industry_extension_full” data model and tried to deploy. No changes to the configuration at this point have been made. I do intend to extend the data model.

Deploying results with the following error:

Deploying 1 spaces to CDF...
Deploying 36 containers to CDF...
Deploying 36 views to CDF...
WARNING [LOW]: Resource(s) already exist(s), skipping creation. ← Note they shouldn’t aready exist???
Deploying 1 data models to CDF...
  ERROR (ResourceCreationError): Failed to create resource(s). Error: One or more views do not exist: 'Gemini_sp_enterprise_process_industry_full:WorleySB360ImageAnnotation/v1',
'Gemini_sp_enterprise_process_industry_full:WorleySBAnnotation/v1', ← All three related to Annotation??
'Gemini_sp_enterprise_process_industry_full:WorleySBDiagramAnnotation/v1'. | code: 400 | X-Request-ID: 536ccf9d-05cb-932c-b032-2fc57fd77a4f |       
cluster: az-eastus-1
The API Failed to process some items.
Successful (2xx): []
Unknown (5xx): []
Failed (4xx): [Gemini_sp_enterprise_process_industry_full:WorleySBProcessIndustries, ...].

Using the SDK to list the views results with the following enum errors and list of 33 views:

Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum Unknown property type: enum

Found 33 views. ('Gemini_sp_enterprise_process_industry_full', 'WorleySB360ImageCollection', 'v1') ('Gemini_sp_enterprise_process_industry_full', 'WorleySB360ImageModel', 'v1')

I abbreviated the list but the 3 above are missing.

Any ideas to help trouble shoot this?

Best answer by Anders Albert

@David Motte Short version: Upgrade to Toolkit 0.4.8 and create a new template. This issue should be fixed now. 

Longer version: There were two bugs, one in the Toolkit CLI and one in the template.

  1. As you point out `WARNING [LOW]: Resource(s) already exist(s), skipping creation.` is wrong. This warning hid an error when deploying the views. Three of the views fails deployment, which means the deployment data model fails as this depends on the views.
  2. There was a bug in the cdf_process_industry_extension_full template. This has now been fixed.

Thanks again for reporting and your patience. 

View original
Did this topic help you find an answer to your question?

5 replies

Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 108 replies
  • February 13, 2025

@David Motte Thanks for reporting this. I have been able to recreate it. I will get back to you when I figured out what is causing it.


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 108 replies
  • Answer
  • February 14, 2025

@David Motte Short version: Upgrade to Toolkit 0.4.8 and create a new template. This issue should be fixed now. 

Longer version: There were two bugs, one in the Toolkit CLI and one in the template.

  1. As you point out `WARNING [LOW]: Resource(s) already exist(s), skipping creation.` is wrong. This warning hid an error when deploying the views. Three of the views fails deployment, which means the deployment data model fails as this depends on the views.
  2. There was a bug in the cdf_process_industry_extension_full template. This has now been fixed.

Thanks again for reporting and your patience. 


Forum|alt.badge.img+8
  • Author
  • Committed
  • 3 replies
  • February 14, 2025

@Anders Albert Awesome, model deploys now. Thanks for your quick work. 

Next hurdle :)

Every type is in error.

example
type WorleySBMaintenanceOrder implements CogniteMaintenanceOrder {

Error: Unknown type CogniteMaintenanceOrder

If I understand right, to extend the data model, CogniteMaintenanceOrder needs to be imported. Is that not included as part of the template? Do I need to do that manually?


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 108 replies
  • February 14, 2025

That is required if you want to use the UI to continue develop the model. However, if you govern the model through the YAML files, or use a tool such as neat, it is not necessary. The model as it is now, is fine for populating with data and querying. in other words, it is just the UI that require the implements. 
 

 


Forum|alt.badge.img+8
  • Author
  • Committed
  • 3 replies
  • February 14, 2025

Good to know! Thanks!


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings