Hi all. I get the following exception during asset...
# ask-community
a
Hi all. I get the following exception during asset reconciliation sensor evaluation after removing an asset from code:
Copy code
AttributeError: 'NoneType' object has no attribute 'deserialize_subset'
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/errors.py", line 206, in user_code_error_boundary
    yield
  File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/impl.py", line 328, in get_external_sensor_execution
    return sensor_def.evaluate_tick(sensor_context)
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/sensor_definition.py", line 421, in evaluate_tick
    result = list(self._evaluation_fn(context))
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/sensor_definition.py", line 586, in _wrapped_fn
    result = fn(context)
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/asset_reconciliation_sensor.py", line 896, in _sensor
    AssetReconciliationCursor.from_serialized(
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/asset_reconciliation_sensor.py", line 180, in from_serialized
    ).deserialize_subset(serialized_subset)
it fails here:
Copy code
178             materialized_or_requested_root_partitions_by_asset_key[key] = cast(
    179                 PartitionsDefinition, asset_graph.get_partitions_def(key)
--> 180             ).deserialize_subset(serialized_subset)
having
Copy code
ipdb> !key
AssetKey(['editor_success_counts'])
ipdb> !asset_graph.get_partitions_def(key)
ipdb>   # get_partitions_def returns None, as it is also shown by exception
Should I report this on github, and how to remove from dagster database the information about an obsolete asset?
🤖 1
Fixed it by clearing the sensor cursor.
👍 1