Export to EXCEL and CSV generates an Empty File