Skip to main content
Answer

Data Engineer Basics Hands-On CREATE Access Rights Issue

  • April 24, 2023
  • 9 replies
  • 147 views

Forum|alt.badge.img+2

Hello,

I’m facing following error while creating an asset in Hands-On:

CogniteAPIError: Resource not found. This may also be due to insufficient access rights. | code: 403 | X-Request-ID: d75b2c0d-f96b-9efc-8dbc-6aef50e25dff The API Failed to process some items.

But able to read data and create a dataset.

Please kindly advise.

Regards,

Asan

Best answer by Asan Arifov

Hi @Dilini Fernando,

Yes. The issue were resolved by setting write_protected=False

Thank you @Sofie Haug.

9 replies

Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+12
  • Cognite Academy Instructor
  • April 25, 2023

Hi @Asan Arifov 

Are you able to do a list assets call?

 


Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+12
  • Cognite Academy Instructor
  • April 25, 2023

Hi @Asan Arifov 

Which course are you working on? You could also send us the url from learn.cognite.com

 


Forum|alt.badge.img+2
  • Author
  • Committed
  • April 27, 2023

Hi @Sofie Haug,

It is Learn to Use the Cognite Python SDK course, Solving the hands-on task.

I figured out the root cause of the issue.

In step 1 it advises to set write_protected=True, but it makes impossible to add an asset to the data set later in step 2.

 


Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+12
  • Cognite Academy Instructor
  • May 3, 2023

@Asan Arifov Thank you for your feedback! I’ll look into that

 

 


Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+12
  • Cognite Academy Instructor
  • May 15, 2023

@Asan Arifov  I didn’t get this issue myself. But if you still do, please create a data set that is not write protected. 


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2

Hi @Asan Arifov ,

I hope Sofie’s reply was helpful. Did you manage to solve this issue?

Best regards,
Dilini

 


Forum|alt.badge.img+2
  • Author
  • Committed
  • Answer
  • June 8, 2023

Hi @Dilini Fernando,

Yes. The issue were resolved by setting write_protected=False

Thank you @Sofie Haug.


Forum|alt.badge.img+2

Have the same issue. Dataset’s write_protected  is False, but I still get Resource not found error.


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Maksim Ziniakin will you be able to share your code and the CDF project that you are working on? Please remove any sensitive information in the code.