diff --git a/backend/hct_mis_api/apps/registration_datahub/tasks/rdi_xlsx_create.py b/backend/hct_mis_api/apps/registration_datahub/tasks/rdi_xlsx_create.py index f94776a4f0..ffeb9f353e 100644 --- a/backend/hct_mis_api/apps/registration_datahub/tasks/rdi_xlsx_create.py +++ b/backend/hct_mis_api/apps/registration_datahub/tasks/rdi_xlsx_create.py @@ -534,7 +534,7 @@ def handle_pdu_fields(self, row: list[Any], header: list[Any], individual: Pendi collection_date_cell = row_dict.get(column_collection_date) subtype = flexible_attribute.pdu_data.subtype handle_subtype = handle_subtype_mapping[subtype] - value = handle_subtype(value_cell) + value = handle_subtype(value_cell, is_flex_field=True) if not collection_date_cell.value: collection_date = self.registration_data_import.created_at.date() else: