PS:-The student should be archived before proceeding with the TC generation process. The student can be archived from Student profile > Delete > Student leaving institution > Delete.