Skip to main content
Solved

No results returned from query - cannot find requested asset

  • April 20, 2023
  • 1 reply
  • 51 views

Johannes Hovda
Practitioner
Forum|alt.badge.img+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:

 

 

 

 

 

 

 

 

Best answer by Sofie Haug

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 :) 

 

 

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

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

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


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