Error: An item with the same key has already been added.

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
skingaby
Posts: 32
Joined: Thu 14 May 2009 16:17

Error: An item with the same key has already been added.

Post by skingaby » Thu 14 May 2009 16:46

I am using v2.0.18.
When I select to validate my model, I get an error: An item with the same key has already been added.
How can I figure out what the problem with the model is?
Thanks,
Simon

skingaby
Posts: 32
Joined: Thu 14 May 2009 16:17

Problem went away

Post by skingaby » Thu 14 May 2009 17:33

I started a new model and added everything again but this time it worked properly.

skingaby
Posts: 32
Joined: Thu 14 May 2009 16:17

Post by skingaby » Wed 02 Dec 2009 21:16

I just broke the EDML file somehow and am now getting this error. How can I figure out where this error is coming from. Thanks.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 03 Dec 2009 09:41

Could you please send the broken .edml file to us?

skingaby
Posts: 32
Joined: Thu 14 May 2009 16:17

Post by skingaby » Fri 04 Dec 2009 00:54

Found it. Somehow, when adding and removing and re-adding an object in the Designer (yours, not MS), the EDML duplicated the tag in here:















I finally found the error and when I removed the extra tag everything worked properly again.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 04 Dec 2009 12:16

We had this problem in the previous version of Entity Developer.
I have just tried to add, remove, and add again the related object, and everything went OK.
If the problem persists with the latest version, please post some steps to reproduce the error.

skingaby
Posts: 32
Joined: Thu 14 May 2009 16:17

Post by skingaby » Wed 09 Dec 2009 03:47

I was working with 2 versions of 2 different products on 2 machines, including your product, trying to fix a domain model problem. It is entirely conceivable that I opened the EDML in the wrong one and corrupted it. I am just glad I found/fixed it.

Post Reply