DW: Added more exception message to help debug failing export and clean ...

...the metadata id passed from the drop down.
closes #669