Restore the database backup from the store on my local and checked why the generated text file has no data. As per checking, there are no data in the database for October 22, 2021, there is when the server got corrupted, also the reason why there is an error in the screenshot send by sir Reon when he tried to generate text file manually. Check for October 21, 2021, if it has data, as per checking it does not have data as well, check what is the latest data on the backup given, as per checking, it is October 13, 2021.