Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

An item with the same key has already been added.

Posted on by 35

I'm getting this exception thrown every time I call eConnectObject.CreateEntity(this.SetEConnectDatabase(CompanyID), XMLDoc.OuterXml.ToString());

The OuterXml includes a VendorID, but this VendorID is not in the database, so that can't be what it's complaining about. I also checked my Functional Currency in GP to ensure it's set up right (another post mentioned that). Can anyone please suggest what the problem might be? This is GP 2010. Thanks.

*This post is locked for comments

  • dysert Profile Picture
    dysert 35 on at
    RE: An item with the same key has already been added.

    Thanks for replying. We just figured out what was going on. Apparently there's a sproc that stacks error messages together before presenting them to the user. This error was happening as a result of calling this sproc. (I commented out the call and the error went away.) Classic example of a bogus error message. Thanks.

  • Mahmoud Saadi Profile Picture
    Mahmoud Saadi 32,738 on at
    RE: An item with the same key has already been added.

    When are you getting this error ? What is the type of integration that you are working on?

    It would be definitely useful to share the XML details, along with the error message for further illustration.

    Your feedback is highly appreciated,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans