Corrected error reporting when importing data