web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

EConnect only generating one distribution line item

(0) ShareShare
ReportReport
Posted on by

We are importing AP invoices into Dynamics through E-Connect, and while we are able to get it to create the transaction, it will not pull in all the distribution line items. Below is the xml data we are currently attempting to import.

<?xml version="1.0" encoding="utf-16"?>
<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>1002</VCHRNMBR>
        <VENDORID>XXXXXXXXXX</VENDORID>
        <DSTSQNUM>2</DSTSQNUM>
        <DISTTYPE>2</DISTTYPE>
        <DistRef>1</DistRef>
        <ACTNUMST>0106-20000-0000-000-000000-000</ACTNUMST>
        <CRDTAMNT>3281.47</CRDTAMNT>
      </taPMDistribution>
      <taPMDistribution>
        <DOCTYPE>1</DOCTYPE>
        <VCHRNMBR>1002</VCHRNMBR>
        <VENDORID>XXXXXXXXX</VENDORID>
        <DSTSQNUM>2</DSTSQNUM>
        <DISTTYPE>6</DISTTYPE>
        <DistRef>1</DistRef>
        <ACTNUMST>0106-14200-0000-000-000000-000</ACTNUMST>
        <DEBITAMT>359.0</DEBITAMT>
      </taPMDistribution>
      <taPMDistribution>
        <DOCTYPE>1</DOCTYPE>
        <VCHRNMBR>1002</VCHRNMBR>
        <VENDORID>XXXXXXXXXX</VENDORID>
        <DSTSQNUM>2</DSTSQNUM>
        <DISTTYPE>6</DISTTYPE>
        <DistRef>1</DistRef>
        <ACTNUMST>0106-14200-0000-000-000000-000</ACTNUMST>
        <DEBITAMT>2654.0</DEBITAMT>
      </taPMDistribution>
      <taPMDistribution>
        <DOCTYPE>1</DOCTYPE>
        <VCHRNMBR>1002</VCHRNMBR>
        <VENDORID>XXXXXXXXX</VENDORID>
        <DSTSQNUM>2</DSTSQNUM>
        <DISTTYPE>6</DISTTYPE>
        <DistRef>1</DistRef>
        <ACTNUMST>0106-57215-0000-000-000000-000</ACTNUMST>
        <DEBITAMT>15.0</DEBITAMT>
      </taPMDistribution>
      <taPMDistribution>
        <DOCTYPE>1</DOCTYPE>
        <VCHRNMBR>1002</VCHRNMBR>
        <VENDORID>XXXXXXXXX</VENDORID>
        <DSTSQNUM>2</DSTSQNUM>
        <DISTTYPE>6</DISTTYPE>
        <DistRef>1</DistRef>
        <ACTNUMST>0106-51080-0000-000-000000-000</ACTNUMST>
        <DEBITAMT>55.0</DEBITAMT>
      </taPMDistribution>
    </taPMDistribution_Items>
    <taAnalyticsDistribution_Items xsi:nil="true" />
    <taPMTransactionInsert>
      <BACHNUMB>201711310</BACHNUMB>
      <VCHNUMWK>1002</VCHNUMWK>
      <VENDORID>XXXXXXXXXX</VENDORID>
      <DOCNUMBR>20171031RM02</DOCNUMBR>
      <DOCTYPE>1</DOCTYPE>
      <DOCAMNT>3281.47</DOCAMNT>
      <DOCDATE>11/6/2017 12:00:00 AM</DOCDATE>
      <PRCHAMNT>3281.47</PRCHAMNT>
      <CHRGAMNT>3281.47</CHRGAMNT>
      <TRXDSCRN>Multi Line PO - 2 Inventory Replenishment and 1 charge to a Work Order</TRXDSCRN>
      <PORDNMBR>1019</PORDNMBR>
      <MDFUSRID>InvoiceIntegration</MDFUSRID>
      <CREATEDIST>0</CREATEDIST>
    </taPMTransactionInsert>
    <taMdaUpdate_Items xsi:nil="true" />
  </PMTransactionType>
</eConnect>

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Any thoughts, pointing in the right direction, our outright failures pointed out will be greatly appreciated.

    Thanks!

  • Suggested answer
    Srini Ramidi Profile Picture
    2 on at

    Hello,

    Can you check "taPMTransactionInsertPre or Post" stored procedures are customized to pass the CREATEDIST=1 or some logic to update the distributions?

    Best,

    Srini

  • Community Member Profile Picture
    on at

    I checked them, and it looks like they are set for input... I was reading through the E-Connect documentation, and had this set to "0" as we want to manually create the distributions. If we set it to one, doesn't it automatically create distributions?

  • Srini Ramidi Profile Picture
    2 on at

    YES you need set it to 0 for manual distributions.

  • Suggested answer
    Community Member Profile Picture
    on at

    Thank you for confirming, Srinivas!  We were able to get this working - our issue was the DSTSQNUM column.  We were bringing this in from the other system, and didn't need to.  We removed this from the taPMDistribution items and the individual line items started pulling through properly. It was a matter of not pushing through information that is not needed.

  • Verified answer
    Srini Ramidi Profile Picture
    2 on at

    I just re looked at your xml again and you have same value(i.e., 2) for all the lines.  DSTSQNUM is part of the primary key so either you have to pass unique value or just don't pass anything to let the system defaults.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans