AMEC-1779 handle doi correctly.  clear out error messages correctly