CDB-1957 Fixed the problem of not working for non-CSV and Excel files