Skip to main content
Seasoned ⭐️⭐️⭐️
April 24, 2023
Solved

Data Engineer Basics Hands-On CREATE Access Rights Issue

  • April 24, 2023
  • 9 replies
  • 174 views

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
    Expert ⭐️⭐️⭐️⭐️
    Cognite Academy Instructor
    April 25, 2023

    Hi @Asan Arifov 

    Are you able to do a list assets call?

     

    Sofie | Cognite Academy
    Sofie Haug
    Expert ⭐️⭐️⭐️⭐️
    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

     

    Sofie | Cognite Academy
    Seasoned ⭐️⭐️⭐️
    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
    Expert ⭐️⭐️⭐️⭐️
    Cognite Academy Instructor
    May 3, 2023

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

     

     

    Sofie | Cognite Academy
    Sofie Haug
    Expert ⭐️⭐️⭐️⭐️
    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. 

    Sofie | Cognite Academy
    Dilini Fernando
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    June 6, 2023

    Hi @Asan Arifov ,

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

    Best regards,
    Dilini

     

    Asan ArifovAuthorAnswer
    Seasoned ⭐️⭐️⭐️
    June 8, 2023

    Hi @Dilini Fernando,

    Yes. The issue were resolved by setting write_protected=False

    Thank you @Sofie Haug.

    Committed ⭐️⭐️
    July 19, 2023

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

    Mithila Jayalath
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    July 20, 2023

    @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.