When I installed a new module and did the
setup:upgrade I received this message:
hey i had the same problem , Remko de Keijzer is right here , the problem is any module is trying to add email template that already exist , to solve this
- open your database
SELECT * FROM email_template
- Here in the
orig_template_codeyou will find the duplicate template id . You just have to remove that row from the table.
- To find which one is duplicate go to Setup/InstallData.php file of the problematic module , like in the above example error comes immediately below Amasty_Rma so it is problematic.
Hope this saves your time