Hello Experts,
I’m trying to use advanced filter on timeseries through SDK. I can do what I want except in the following situation: the asset_id property is null. Can anyone help me?
I tried :
from cognite.client.data_classes.time_series import TimeSeriesProperty
f = filters.And(
filters.Equals("data_set_id", 123456),
filters.Equals("name", "foobar"),
filters.Equals(TimeSeriesProperty.asset_id, "")
)
[advancedFilter.[2].equals.value A string is not a valid value for the property "assetId"]from cognite.client.data_classes.time_series import TimeSeriesProperty
f = filters.And(
filters.Equals("data_set_id", 123456),
filters.Not(filters.Exists(TimeSeriesProperty.asset_id)),
)
-> 0I’m sure there is timeseries where timeseries.asset_id is None.
Thanks experts !
Regards,
Pierre Rambourg
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support
