We are using GP 2010 sp2/r2(11.00.1752) version.When I am processing below xml(project accounting) to econnect.
<eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes">
<PAProjectsType>
<eConnectProcessInfo>
<ProductName>V1.0</ProductName>
</eConnectProcessInfo>
<taPAEmpExpenseLineInsert_Items>
<taPAEmpExpenseLineInsert>
<PAertrxtype>1</PAertrxtype>
<PAerdocnumber>EE0000228</PAerdocnumber>
<EMPLOYID>DET100</EMPLOYID>
<PADT>2011-08-23T00:00:00</PADT>
<PAPROJNUMBER>CAG-REGEXP-ZU</PAPROJNUMBER>
<PACOSTCATID>BD:MEAL</PACOSTCATID>
<PAitemnumber>Lokales</PAitemnumber>
<PAQtyQ>1.000000</PAQtyQ>
<PAUNITCOST>32.180000</PAUNITCOST>
<CURNCYID>Z-US$</CURNCYID>
</taPAEmpExpenseLineInsert>
<taPAEmpExpenseLineInsert>
<PAertrxtype>1</PAertrxtype>
<PAerdocnumber>EE0000228</PAerdocnumber>
<EMPLOYID>DET100</EMPLOYID>
<PADT>2011-08-23T00:00:00</PADT>
<PAPROJNUMBER>CAG-REGEXP-ZU</PAPROJNUMBER>
<PACOSTCATID>BD:MEAL</PACOSTCATID>
<PAitemnumber>Lokales</PAitemnumber>
<PAQtyQ>1.000000</PAQtyQ>
<PAUNITCOST>32.180000</PAUNITCOST>
<CURNCYID>Z-US$</CURNCYID>
</taPAEmpExpenseLineInsert>
- <taPAEmpExpenseLineInsert>
<PAertrxtype>1</PAertrxtype>
<PAerdocnumber>EE0000228</PAerdocnumber>
<EMPLOYID>DET100</EMPLOYID>
<PADT>2011-08-23T00:00:00</PADT>
<PAPROJNUMBER>CAG-REGEXP-ZU</PAPROJNUMBER>
<PACOSTCATID>BD:MEAL</PACOSTCATID>
<PAitemnumber>Lokales</PAitemnumber>
<PAQtyQ>1.000000</PAQtyQ>
<PAUNITCOST>32.180000</PAUNITCOST>
<CURNCYID>Z-US$</CURNCYID>
</taPAEmpExpenseLineInsert>
</taPAEmpExpenseLineInsert_Items>
<taPAEmpExpenseHdrInsert>
<PAertrxtype>1</PAertrxtype>
<PAerdocnumber>EE0000228</PAerdocnumber>
<PADOCDT>2011-08-23T00:00:00</PADOCDT>
<BACHNUMB>PADBASICS101811</BACHNUMB>
<PAPD>2011-09-21T00:00:00</PAPD>
<EMPLOYID>DET100</EMPLOYID>
<PAVENADDRESSID>MAIN</PAVENADDRESSID>
<CRCRDAMT>0.000000</CRCRDAMT>
<PAStartDate>2011-08-23T00:00:00</PAStartDate>
<PAEnDate>2011-08-23T00:00:00</PAEnDate>
<PAREPTSUFF>1</PAREPTSUFF>
<CURNCYID>Z-US$</CURNCYID>
</taPAEmpExpenseHdrInsert>
</PAProjectsType>
</eConnect>
I am getting the econnect exception as below:
Exception Message: " An item with the same key has already been added".
Stack Trace:
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)
Can any one help me to troubleshoot this issue.