Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

eConnect GL Transaction with Analytics receiving Error

Posted on by 20

 Hi, I am trying to process a GL transaction through eConnect. The example transaction (to keep it simple) contains 1 line of Analytics Distribution but it seems to keep returning the same error no matter what I try.

Error Number = 9469  Stored Procedure taAnalyticsDistribution  Error Description = Cannot find a distribution amount based on input values

 

Here is the xml that is being submitted:

<eConnect>
  <GLTransactionType>
    <eConnectProcessInfo p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" />
    <taRequesterTrxDisabler_Items p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" />
    <taGLTransactionLineInsert_Items>
      <taGLTransactionLineInsert>
        <BACHNUMB>CDGL0001</BACHNUMB>
        <JRNENTRY>3460</JRNENTRY>
        <SQNCLINE>16384</SQNCLINE>
        <CRDTAMNT>25</CRDTAMNT>
        <DEBITAMT>0</DEBITAMT>
        <ACTNUMST>000-1100-00</ACTNUMST>
        <DSCRIPTN>Test trans</DSCRIPTN>
      </taGLTransactionLineInsert>
      <taGLTransactionLineInsert>
        <BACHNUMB>CDGL0001</BACHNUMB>
        <JRNENTRY>3460</JRNENTRY>
        <SQNCLINE>32768</SQNCLINE>
        <CRDTAMNT>0</CRDTAMNT>
        <DEBITAMT>25</DEBITAMT>
        <ACTNUMST>000-1100-00</ACTNUMST>
        <DSCRIPTN>Test trans</DSCRIPTN>
      </taGLTransactionLineInsert>
    </taGLTransactionLineInsert_Items>
    <taAnalyticsDistribution_Items>
      <taAnalyticsDistribution>
        <DOCNMBR>3460</DOCNMBR>
        <aaTrxDim>DIM1</aaTrxDim>
        <aaTrxDimCode>DIM1CODE3</aaTrxDimCode>
      </taAnalyticsDistribution>
    </taAnalyticsDistribution_Items>
    <taGLTransactionHeaderInsert>
      <BACHNUMB>CDGL0001</BACHNUMB>
      <JRNENTRY>3460</JRNENTRY>
      <REFRENCE>CDGL000120120405</REFRENCE>
      <TRXDATE>2017/03/06</TRXDATE>
      <TRXTYPE>0</TRXTYPE>
    </taGLTransactionHeaderInsert>
    <taMdaUpdate_Items p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" />
  </GLTransactionType>
</eConnect>

What I suspect is that in my code I am trying to associate the the analytics line to a GL transaction line through the use of line sequence number. When I attempt to set this value and attempt to set the Doc Type to 0 the values are not reflected in the eConnect serialized xml.

I have been trying a bunch of different scenarios, playing with values in an attempt to get the transaction to go through but I just keep getting the same error.

Regards,

Mike

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: eConnect GL Transaction with Analytics receiving Error

    Hi Michael,

    providing the fields that values appear default from setup results the same error?

    Thanks,

    Nataraj S

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

Featured topics

Product updates

Dynamics 365 release plans