Solved

No results returned from query - cannot find requested asset

  • 20 April 2023
  • 1 reply
  • 47 views

Userlevel 2
Badge +3

Course: Learn to Use the Cognite Python SDK 

Section: List, Search, Retrieve, Try it yourself.

 

The search for name returns zero results. I have also verified with the solution that I am using the correct query, but zero results are still returned.

Even the solution provided examples using external IDs return zero results.

 

 

As far as I can tell, I am authenticated correctly, 

 

and I am using “ds-basics” as my project configuration in the CogniteClient

 

These are the search results I get when using fuzzy search:

 

 

 

 

 

 

 

 

icon

Best answer by Sofie Haug 20 April 2023, 15:55

View original

1 reply

Userlevel 3
Badge +6

Hi @Johannes Hovda! I don’t think you are doing anything wrong! It just means that there is no asset with that id! We are currently working on updating this particular course. What could have happened is that the data has been deleted by us or another learner. 

if you do client.assets.list(), you should see a list of assets. You can try to choose an id from that list to use instead for now :) 

 

 

Reply