This is hard to reproduce but I was able to reproduce consistently in a dev installation. When applying the alert template to the newly imported resource we generated: org.hibernate.HibernateException:illegally attempted to associate a proxy with two open Sessions Which is an issue that can happen when passing an attached Hibernate proxy into a new Tx context.
master commit 160a6fabeea18fd7410560a8f00206736997adb9 Fix an issue with alert template application to discovered resources. The root cause has to do with sending attached entities across Tx boundaries:
Bulk closing of old issues now that HRQ 4.9 is in front of the door. If you think the issue has not been solved, then please open a new bug and mention this one in the description.