Skip to main content
Answer

assets.list using outdated cahce?

  • November 27, 2025
  • 2 replies
  • 23 views

Olav Alstad
Seasoned

I’m using the CogniteSDK. I have seen the following behavior several times: 

assets = client.assets.list()

the variable assets can contain deleted assets if they have been recetly deleted. If I find the external_ids of these assets, the client.assets.retrieve_multiple(external_ids=deleted_xids) correcly do not return the assets. The assets cannot be found in fusion either. 

I suspect that client.assets.list() is using cached values. This also applies with arguments, f.ex LabelFilter. I have seen the issue many times, but now it really got painfull, so therefore I’m writing here. It returns assets that were deleted several days ago. 

 

What to do? 

Best answer by Olav Alstad

Hi ​@Mithila Jayalath. Thanks for looking into this. It looks like the deleted assets that was supposed to be deleted was not deleted anyway. Our CDF instance had some strange behcaiour related to deleting assets this week, probably related to that. 

 

You can consider this case as solved. Thanks!

2 replies

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

@Olav Alstad can you please let me know the SDK version that you are currenlty using? Can you also try to upgrade the SDK to the latest version and try again?


Olav Alstad
Seasoned
  • Author
  • Seasoned
  • Answer
  • November 27, 2025

Hi ​@Mithila Jayalath. Thanks for looking into this. It looks like the deleted assets that was supposed to be deleted was not deleted anyway. Our CDF instance had some strange behcaiour related to deleting assets this week, probably related to that. 

 

You can consider this case as solved. Thanks!