Skip to main content
Maritsa Sarri
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
March 25, 2022

Data Engineer Basics - Integrations

  • March 25, 2022
  • 59 replies
  • 1488 views

Welcome to the Data Engineer Basics - Integrations!

This discussion is dedicated to help learners of the Data Engineer Basics – Integrations learning path succeed. If you’re struggling any of the courses in this learning path, post a comment with the challenge you’re facing. You can also post your own tips and respond to fellow learners’ questions. Cognite Academy’s instructors are also here to help.

59 replies

Expert ⭐️⭐️⭐️⭐️
January 16, 2023

Hi @Shaileshkumar Od

I have created a ticket for our Support team for the issue you are facing. They’ll help you further. 

Best,

Carin

Shashan Udawatte
Practitioner ⭐️⭐️⭐️
Practitioner ⭐️⭐️⭐️
January 16, 2023

Hi @Shaileshkumar Od ,

I created a ticket for this issue to get more details and to troubleshoot further into this. Please 7451 check your email and respond to the questions asked in this email thread. Please let me know if you haven’t received or are unable to respond to the ticket created.

Regards,
Shashan

Practitioner ⭐️⭐️⭐️
February 24, 2023

Looks there is a permission issue completing the hands on lab in da-basics project using Python SDK.

This call failed with permission error:

root_asset = client.assets.create(Asset(name='world', data_set_id=data_set_id))

cognite.client.exceptions.CogniteAPIError: Resource not found. This may also be due to insufficient access rights. | code: 403 | X-Request-ID: 0d29c074-6166-9fa8-ba5e-cd38944ec5aa

I saw other people faced the same problem. Please help?

Thanls,

Lixiang

 

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
February 27, 2023

Hi @Lixiang Sun!

In which notebook are you? Could you try to clear the history and re-run?

 

Sofie

Sofie | Cognite Academy
Practitioner ⭐️⭐️⭐️
February 27, 2023

@Sofie Haug I tried both create_update_insert and solution - Hands on Exercise notebooks. The create asset statement always fail with the same error..

 

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
February 27, 2023

@Lixiang Sun are you getting a successful log in for the first part of notebook number 2 (2_List_Search_Retrieve)?
 

c = cauth.create_cognite_client() 
Sofie | Cognite Academy
Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
February 27, 2023

@Lixiang Sun if the line above was successful, then the next line

c.data_sets.list()

should show all data sets

Sofie | Cognite Academy
Practitioner ⭐️⭐️⭐️
March 1, 2023

@Sofie Haug I found that if I use this dataset id: 1399248851345249, then this line will be successful.

root_asset = client.assets.create(Asset(name='world', data_set_id=data_set_id))

But if I use a dataset id that is created by me (res = c.data_sets.create(…...)), then the same line will give me the error (the same as I reported in the first place):

cognite.client.exceptions.CogniteAPIError: Resource not found. This may also be due to insufficient access rights. | code: 403 | X-Request-ID: 0d29c074-6166-9fa8-ba5e-cd38944ec5aa

How come I cannot create assets underneath the dataset I just created?

 

 

 

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
March 1, 2023

Thank you so much for letting us know @Lixiang Sun ! I’ll have to forward this to one of our engineers to dig into this, do you know the data set id of the data set you created?

Sofie | Cognite Academy
Practitioner ⭐️⭐️⭐️
March 1, 2023

This is the one I created: 5060425428066370