Skip to main content
Solved

Issue with cognite events


Hello Team,

i have deleted some of the events from cognite but still i can see its present and when i click on that then it’s giving resource not found. can anyone please help what can be the issue.

and also I am trying to delete all that also not able to delete due to previous issue.

PFA.

 

Best answer by Dilini Fernando

Hi @Shah Ayushi,

Since we received Support ticket for this I hope it is ok to further communicate through  the ticket.

Best regards,
Dilini 

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

3 replies

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

Hi @Shah Ayushi,

Thank you for posting this question. 

This is the expected behavior of the system. If the event is deleted and you try to fetch the details, it fails. Due to that, you are observing the above shared image. If you have any questions, please feel free to post them here. 

Best regards,
Dilini 


  • Author
  • Committed
  • 3 replies
  • May 9, 2023

Hello Dilini,

Thanks for reply.

I have doubt. if it’s deleted then it should not come right if i am retrieving list of events.

actually, i was trying to delete all events so i am retrieving and the based on list of ids i am trying to delete, so if it has already deleted then why it’s coming while retrieving.  please help me on this. this is blocker for us.

please find below source code.

all_ev = []

for event_list in clientobj.events(type="insight",limit=None):

    all_ev.append(event_list.id)

res = clientobj.events.delete(id=all_ev)

print("DONE")

Regards,

Aysuhi.


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • 671 replies
  • Answer
  • May 9, 2023

Hi @Shah Ayushi,

Since we received Support ticket for this I hope it is ok to further communicate through  the ticket.

Best regards,
Dilini 


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