qv21engineering 4/12/2021 8:03:59 AM

taRMDistribution - Account does not exist for Account Index (DSTINDX)

I'm working with eConnect and trying to send over a transaction.  If I send just the transaction then it shows up in Dynamics GP as I would expect and creates the transaction with a default sales distribution.

 

 

If I try and add distributions I get the error:

Error Number = 1341 Stored Procedure= taRMDistribution Error Description = Account does not exist for Account Index (DSTINDX)
Node Identifier Parameters: taRMDistribution

Here is a sample of my xml:

  <RMTransactionType>
    <eConnectProcessInfo xsi:nil="true" />
    <taRequesterTrxDisabler_Items xsi:nil="true" />
    <taUpdateCreateCustomerRcd xsi:nil="true" />
    <taCreateCustomerAddress_Items xsi:nil="true" />
    <taRMCommissions_Items xsi:nil="true" />
    <taRMTransactionTaxInsert_Items xsi:nil="true" />
    <taRMDistribution_Items>
      <taRMDistribution>
        <RMDTYPAL>1</RMDTYPAL>
        <DOCNUMBR>b5fad6df-2</DOCNUMBR>
        <CUSTNMBR>MYTESTCUSTOMER</CUSTNMBR>
        <DISTTYPE>9</DISTTYPE>
        <DistRef>60100-002-010</DistRef>
        <CRDTAMNT>100</CRDTAMNT>
      </taRMDistribution>
      <taRMDistribution>
        <RMDTYPAL>1</RMDTYPAL>
        <DOCNUMBR>b5fad6df-2</DOCNUMBR>
        <CUSTNMBR>MYTESTCUSTOMER</CUSTNMBR>
        <DISTTYPE>9</DISTTYPE>
        <DistRef>60100-002-010</DistRef>
        <CRDTAMNT>472</CRDTAMNT>
      </taRMDistribution>
    </taRMDistribution_Items>
    <taAnalyticsDistribution_Items xsi:nil="true" />
    <taRMTransaction>
      <RMDTYPAL>1</RMDTYPAL>
      <DOCNUMBR>b5fad6df-2</DOCNUMBR>
      <DOCDATE>4/8/2021</DOCDATE>
      <BACHNUMB>b5fad6df-2</BACHNUMB>
      <CUSTNMBR>MYTESTCUSTOMER</CUSTNMBR>
      <DOCAMNT>572</DOCAMNT>
      <SLSAMNT>572</SLSAMNT>
    </taRMTransaction>
    <taMdaUpdate_Items xsi:nil="true" />
  </RMTransactionType>
</eConnect>

 

I'm not quite sure what I haven't done.  The error indicates that I need to supply a DSTINDX but I don't know where to find this.  Everything I searched seems to indicate that if I add distribution items I need to supply an account number but I'm not sure where to find this.

I was able to use eConnectOut and find the customer info but there doesn't seem to be any account info in the results.  At this point I'm a bit stumped.

 

Thanks,

Brian

 

Version: GP 2015
Section: .NET Development, Dynamics GP, eConnect


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3