Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

An item with the same key has already been added.

(1) ShareShare
ReportReport
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
    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
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans