raise error if could not find historical attachment
improved logging