wasSuccessful and getExportException return incorrect output