The issue is with the employee data(all the mandatory fields should be filled ). In this issue in many OPDs, Employee code is not selected and hence count issue is arising. Please add this in FAQ as well (for OPD count issue pls check Employee Data in particular opd)