Skip to main content
Seasoned ⭐️⭐️⭐️
April 19, 2024

CogniteAPIError: Type definitions deleted: ...

Doing the ‘hands-on’ for Data Engineer Basics - “Learn to Use the Cognite Python SDK “ Course."

I am down to adding labels to assets.

The code fails at the last line above with the error:

CogniteAPIError: Type definitions deleted: {externalId: cold-countries}. | code: 400 | X-Request-ID: 50b63199-cac6-9ab3-99ac-3b6ac768ecce

 

Please can someone explain:

  1. what does this error mean?
  2. what can be done to eliminate the error

Thank you.

Doug

6 replies

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
April 22, 2024

Hi @Mugless Durry 

 

I need to look into this a bit! I hope it is not blocking you for further progress in the course!

Sofie | Cognite Academy
Seasoned ⭐️⭐️⭐️
April 22, 2024

Thank you Sofie, I appreciate your help. 

Committed ⭐️⭐️
June 20, 2024

Hi, did you find a solution yet? I’m encountering the same error.

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
June 20, 2024

Hi @Simon Fredriksen 

I’m sorry to hear that. I had a colleague running through and did not report any issues, so  I assumed it was fixed. I will personally take a look at it as soon as  can. In the meantime, are you able to skip that line of code and proceed? 

 

Best Regards, 

Sofie | Cognite Academy
Active ⭐️⭐️⭐️
August 22, 2024

Hey guys, I’ve faced the same problem. I guess it means someone mistankingly deleted the ‘cold-countries’ label. In my case, the ‘cold-countries’ exists, but someone deleted the ‘hot-countries’ label.

How can i recover a deleted label?

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
August 23, 2024

Hi @Felipe Farias! I will have to take a look, I think you can try to create the label yourself and attach it to some assets. 

 

Let me know if you do and how it went!

Sofie | Cognite Academy