Getting this error with `asset_reconciliation_sens...
# ask-community
d
Getting this error with
asset_reconciliation_sensor
, however all my assets are partitioned...
Copy code
dagster._core.errors.DagsterInvalidInvocationError: Parent partition key provided, but parent asset is not partitioned.
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_grpc/impl.py", line 328, in get_external_sensor_execution
    return sensor_def.evaluate_tick(sensor_context)
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/sensor_definition.py", line 421, in evaluate_tick
    result = list(self._evaluation_fn(context))
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/sensor_definition.py", line 586, in _wrapped_fn
    result = fn(context)
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/asset_reconciliation_sensor.py", line 901, in _sensor
    run_requests, updated_cursor = reconcile(
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/asset_reconciliation_sensor.py", line 718, in reconcile
    ) = determine_asset_partitions_to_reconcile(
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/asset_reconciliation_sensor.py", line 356, in determine_asset_partitions_to_reconcile
    stale_candidates, latest_storage_id = find_parent_materialized_asset_partitions(
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/asset_reconciliation_sensor.py", line 231, in find_parent_materialized_asset_partitions
    for child in asset_graph.get_children_partitions(asset_key, record.partition_key):
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/asset_graph.py", line 157, in get_children_partitions
    for child_partition_key in self.get_child_partition_keys_of_parent(
  File "/root/.pyenv/versions/3.10.8/lib/python3.10/site-packages/dagster/_core/definitions/asset_graph.py", line 196, in get_child_partition_keys_of_parent
    raise DagsterInvalidInvocationError(
o
hi @Daniel Gafni! Sorry you're running into this. I'm digging into the issue, and having a bit of trouble replicating -- some questions: Do you have multiple code locations / cross-code location dependencies? Are you consuming from source assets at any point? Did you just start trying out the sensor, or was it working for you before and this error is new? Also happy to talk more about the specifics of your setup (via DM or otherwise)!
d
The answer to all of your questions is “yes” (I’m trying the sensor for the first time)