Admin edit email templates error EventId key

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
ThinkNoodle
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Fri Oct 10, 2008 7:14 am
Location: UK

Admin edit email templates error EventId key

Post by ThinkNoodle » Tue Aug 03, 2010 4:18 am

Since we upgraded to 7.0.4.13424 we have been unable to edit any email templates when the save button is pressed, even if we have not made any changes. We get the message "Item has already been added. Key in dictionary: "EventId" Key being added: "EventId"

This also effects the event triggers as well as message content tab.

We've checked the permissions using testpermissions.aspx and they are all ok

Any ideas anyone?

relish1227
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Mon Aug 30, 2010 9:51 am

Re: Admin edit email templates error EventId key

Post by relish1227 » Thu Sep 23, 2010 7:39 am

Hi, we are also having this issue. Our site was also an upgrade to 7.0.4.

Any help on this would be appreciated.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Admin edit email templates error EventId key

Post by plugables » Fri Sep 24, 2010 4:29 am

It looks like it has to do with the event triggers. You could move forward in detecting the problem if you follow the following steps and report the behavior

- Create a new test email template.
- Edit it and in its event trigger settings un-select all
- Try to save (Do you get an error?)
- One by one select the email triggers and try to save. When do you start getting error?

relish1227
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Mon Aug 30, 2010 9:51 am

Re: Admin edit email templates error EventId key

Post by relish1227 » Fri Sep 24, 2010 12:21 pm

Okay. I went to add a new email template.

On the "Message Content" tab I just added "Test" for most fields and my own email address for the email fields. I didn't even look at the Event Triggers tab. When I submitted the page, I got a standard error page with this text:
Server Error in '/' Application.
Item has already been added. Key in dictionary: 'EventId' Key being added: 'EventId'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Item has already been added. Key in dictionary: 'EventId' Key being added: 'EventId'
I tried adding it with one of the event triggers checked and I got the same result. Thoughts?

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Admin edit email templates error EventId key

Post by plugables » Sat Sep 25, 2010 9:27 am

I suspect there is something wrong with the aspx files after the upgrade.
If you can replace the files in Admin/Store/EmailTemplates folder with stock files form fresh 7.0.4 installation it may help.

Post Reply