sul-dlss / libsys-airflow

Airflow DAGS for migrating and managing ILS data into FOLIO along with other LibSys workflows
Apache License 2.0
5 stars 0 forks source link

KeyError for add_marc_tags_to_record task #1351

Closed shelleydoljack closed 1 month ago

shelleydoljack commented 1 month ago

:( Uploaded a file of 8 instance IDs and selected the fund with druid bt942vy4674

[2024-10-24, 23:06:06 UTC] {taskinstance.py:2731} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/models/taskinstance.py", line 444, in _execute_task
    result = _execute_callable(context=context, **execute_callable_kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/models/taskinstance.py", line 414, in _execute_callable
    return execute_callable(context=context, **execute_callable_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/decorators/base.py", line 241, in execute
    return_value = super().execute(context)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/operators/python.py", line 200, in execute
    return_value = self.execute_callable()
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/operators/python.py", line 217, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/airflow/libsys_airflow/plugins/digital_bookplates/bookplates.py", line 233, in add_marc_tags_to_record
    marc_tags = kwargs["marc_instances_tags"]
                ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'marc_instances_tags'

https://sul-libsys-airflow-dev.stanford.edu/dags/digital_bookplate_979/grid?run_id=manual__2024-10-24T23%3A04%3A52.060489%2B00%3A00&execution_date=2024-10-24+23%3A04%3A52.060489%2B00%3A00&dag_run_id=manual__2024-10-24T23%3A04%3A51.958065%2B00%3A00&task_id=add_marc_tags_to_record&tab=logs