Booking a Patient appointment

TypeError: cannot unpack non-iterable NoneType object- while booking a patient appointment. All the previous appointments are also not show ( 0 appointment)

Did you add any customisations on top of patient appointment?

Please share the complete stack trace of the error as well.

No … I did’nt add any customization on top of patient appointment…

Can you please share the error code?

Traceback (most recent call last):
File “/home/asc/frappe-bench/apps/frappe/frappe/app.py”, line 69, in application
response = frappe.api.handle()
File “/home/asc/frappe-bench/apps/frappe/frappe/api.py”, line 54, in handle
return frappe.handler.handle()
File “/home/asc/frappe-bench/apps/frappe/frappe/handler.py”, line 45, in handle
data = execute_cmd(cmd)
File “/home/asc/frappe-bench/apps/frappe/frappe/handler.py”, line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/asc/frappe-bench/apps/frappe/frappe/init.py”, line 1587, in call
return fn(*args, **newargs)
File “/home/asc/frappe-bench/apps/healthcare/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py”, line
371, in get_availability_data
slot_details = get_available_slots(practitioner_doc, date)
File “/home/asc/frappe-bench/apps/healthcare/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py”, line
450, in get_available_slots
allow_overlap, service_unit_capacity = frappe.get_value(
TypeError: cannot unpack non-iterable NoneType object

Please resolve above issue ASAP. Thank you

Service Unit / Practitioner Schedules are overlapping

How to fix that error. Thank you in advance.

i tried a few scenarios and figured that if the service unit set in practitioner schedule does not exist this can happen. Ideally it’s a link field and should not have allowed to delete, not sure how this could have happened. Could you please verify the service unit selected in the practitioner schedule table in practitioner master has a valid service unit?

How many practitioners Schedule do you have ?

Thank you. issue is solved

ERPnext comes with possible appointment with patient in healthcare module?