# ask-community

Asif Imran

06/15/2023, 3:39 PM
Can someone please help decipher these errors 🙏🏽 Sensors in our
deployment started failing all of a sudden. If I deploy the same thing in a branch it works. I dont even know how to begin debugging it since I am testing teh sensors from the ui
Copy code
dagster._core.errors.SensorExecutionError: Error occurred during the execution of evaluation_fn for sensor udp2_sensor_prd_daily_productviews_job

  File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/", line 369, in get_external_sensor_execution
    with user_code_error_boundary(
  File "/usr/local/lib/python3.10/", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/", line 279, in user_code_error_boundary
    raise error_cls(

The above exception was caused by the following exception:
ValueError: too many values to unpack (expected 2)

  File "/usr/local/lib/python3.10/site-packages/dagster/_core/", line 272, in user_code_error_boundary
  File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/", line 375, in get_external_sensor_execution
    return sensor_def.evaluate_tick(sensor_context)
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/", line 659, in evaluate_tick
    result = list(self._evaluation_fn(context))
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/", line 938, in _wrapped_fn
    for item in result:
  File "/opt/dagster/app/revealwise/sensors/", line 23, in is_current_partition_ready
    curr_partition = udp_job.partitions_def.get_partition_keys()[-1]
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/", line 240, in get_partition_keys
    for partition in self.get_partitions(current_time, dynamic_partitions_store)
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/", line 232, in get_partitions
    for time_window in self._iterate_time_windows(self.start):
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/", line 682, in _iterate_time_windows
    prev_time = next(iterator)
  File "/usr/local/lib/python3.10/site-packages/dagster/_utils/", line 58, in cron_string_iterator
    cron_parts, nth_weekday_of_month = croniter.expand(cron_string)
I verified the important packages (boto3, dagster-*) are all the same


06/15/2023, 3:58 PM

Asif Imran

06/15/2023, 3:59 PM
ohhhh. Thank you!!! I thought i was going crazy 😅