export must be protected from errors in database, Mantis 29075