Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Dynamics GP Analytical Accounting Error - An item with the same key has already been added.

Posted on by 60

Hello all,

While integrating expense reports in Dynamics GP Analytical Accounting, getting below error

Message:GPPayablesInvoiceUpload.cs Microsoft.Dynamics.GP.eConnect.eConnectException: An item with the same key has already been added.
at Microsoft.Dynamics.GP.eConnect.ServiceProxy.CreateTransactionEntity(String connectionString, String xml)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.EntityImportImplementation(String connectionString, String sXML, Boolean isTransaction)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.ProcessEntityImport(String connectionString, String sXML, Boolean isTransaction)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.CreateTransactionEntity(String connectionString, String sXML) 

Is there something I am missing?

Below is the sample XML I am using.

<?xml version="1.0" encoding="utf-8"?>
<eConnect
xmlns:xsi="">www.w3.org/.../XMLSchema-instance"
xmlns:xsd="">www.w3.org/.../XMLSchema">
<PMTransactionType>
<eConnectProcessInfo xsi:nil="true" />
<taRequesterTrxDisabler_Items xsi:nil="true" />
<taUpdateCreateVendorRcd xsi:nil="true" />
<taCreateVendorAddress_Items xsi:nil="true" />
<taPMTransactionTaxInsert_Items xsi:nil="true" />
<taPMDistribution_Items>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DSTSQNUM>24155</DSTSQNUM>
<DISTTYPE>6</DISTTYPE>
<DistRef>1 AIR EAGLE | 02/08/23</DistRef>
<ACTNUMST>999-9999-01</ACTNUMST>
<DEBITAMT>136.37</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DSTSQNUM>24150</DSTSQNUM>
<DISTTYPE>6</DISTTYPE>
<DistRef>Internal Project</DistRef>
<ACTNUMST>999-9999-01</ACTNUMST>
<DEBITAMT>181.82</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DSTSQNUM>24141</DSTSQNUM>
<DISTTYPE>6</DISTTYPE>
<DistRef>SHOP Project</DistRef>
<ACTNUMST>999-9999-01</ACTNUMST>
<DEBITAMT>181.82</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DISTTYPE>6</DISTTYPE>
<ACTNUMST>000-1104-00</ACTNUMST>
<DEBITAMT>5.00</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DISTTYPE>6</DISTTYPE>
<ACTNUMST>000-1105-00</ACTNUMST>
<DEBITAMT>10.01</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DISTTYPE>6</DISTTYPE>
<ACTNUMST>000-1106-00</ACTNUMST>
<DEBITAMT>14.99</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DISTTYPE>6</DISTTYPE>
<ACTNUMST>000-1107-00</ACTNUMST>
<DEBITAMT>19.99</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>GE5582-0</VCHRNMBR>
<VENDORID>ACETRAVE0001</VENDORID>
<DISTTYPE>2</DISTTYPE>
<ACTNUMST>000-2100-00</ACTNUMST>
<CRDTAMNT>550.0000</CRDTAMNT>
</taPMDistribution>
</taPMDistribution_Items>
<taAnalyticsDistribution_Items>
<taAnalyticsDistribution>
<DOCNMBR>GE5582-0</DOCNMBR>
<AMOUNT>200.00</AMOUNT>
<aaAssignedPercent>100</aaAssignedPercent>
<DistSequence>24141</DistSequence>
<ACTNUMST>999-9999-01</ACTNUMST>
<aaTrxDim>SHOP Project</aaTrxDim>
<aaTrxDimCode>22-11-10063</aaTrxDimCode>
<aaSubLedgerDistID>1</aaSubLedgerDistID>
</taAnalyticsDistribution>
<taAnalyticsDistribution>
<DOCNMBR>GE5582-0</DOCNMBR>
<AMOUNT>200.00</AMOUNT>
<aaAssignedPercent>100</aaAssignedPercent>
<DistSequence>24150</DistSequence>
<ACTNUMST>999-9999-01</ACTNUMST>
<aaTrxDim>Internal Project</aaTrxDim>
<aaTrxDimCode>22-11-10062</aaTrxDimCode>
<aaSubLedgerDistID>2</aaSubLedgerDistID>
</taAnalyticsDistribution>
</taAnalyticsDistribution_Items>
<taPMTransactionInsert>
<BACHNUMB>GORILLA</BACHNUMB>
<VCHNUMWK>GE5582-0</VCHNUMWK>
<VENDORID>ACETRAVE0001</VENDORID>
<DOCNUMBR>GE5582-0</DOCNUMBR>
<DOCTYPE>1</DOCTYPE>
<DOCAMNT>550.0000</DOCAMNT>
<DOCDATE>02/09/2023</DOCDATE>
<PRCHAMNT>550.0000</PRCHAMNT>
<CHRGAMNT>550.0000</CHRGAMNT>
<CREATEDIST>0</CREATEDIST>
</taPMTransactionInsert>
<taMdaUpdate_Items xsi:nil="true" />
</PMTransactionType>
</eConnect>

Categories:
  • Suggested answer
    chipreed Profile Picture
    chipreed 45 on at
    Dynamics GP Analytical Accounting Error - An item with the same key has already been added.
    Did you ever get your answer to your question as the related tagged post does not provide a resoluton,
     
    C.Reed
  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Dynamics GP Analytical Accounting Error - An item with the same key has already been added.

    hi

    look this

    community.dynamics.com/.../smartconnect-aa-import-and-an-item-with-the-same-key-has-been-added-alread

    DAniele

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans