Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Issue with posting a bill to GP

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I get the following SQL error code response when I try to post a bill to GP through eConnect.

Error Number = 349  Stored Procedure= taPMTransactionInsert  
Error Description = Unable to update/create distributions

Error Number = 700  Stored Procedure= taPMDistributionCreate  
Error Description = At least one input variable contains a null value in the
taPMDistributionCreate


We are setting all the mandatory fields in the input xml.
Sample input xml:

<?xml version="1.0"?>
<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>00000000000018299</VCHRNMBR>
<VENDORID>&lt;![CDATA[ABSOLUTE]]&gt;</VENDORID>
<DISTTYPE>6</DISTTYPE>
<DistRef>INV# 3147140</DistRef>
<ACTINDX>828</ACTINDX>
<DEBITAMT>230</DEBITAMT>
</taPMDistribution>
<taPMDistribution>
<DOCTYPE>1</DOCTYPE>
<VCHRNMBR>00000000000018299</VCHRNMBR>
<VENDORID>&lt;![CDATA[ABSOLUTE]]&gt;</VENDORID>
<DISTTYPE>2</DISTTYPE>
<ACTINDX>69</ACTINDX>
<CRDTAMNT>230</CRDTAMNT>
</taPMDistribution>
</taPMDistribution_Items>
<taAnalyticsDistribution_Items xsi:nil="true" />
<taPMTransactionInsert>
<BACHNUMB>MT_INV</BACHNUMB>
<VCHNUMWK>00000000000018299</VCHNUMWK>
<VENDORID>&lt;![CDATA[ABSOLUTE]]&gt;</VENDORID>
<DOCNUMBR>3147140</DOCNUMBR>
<DOCTYPE>1</DOCTYPE>
<DOCAMNT>230</DOCAMNT>
<DOCDATE>3/7/2017</DOCDATE>
<PYMTRMID>Net 30</PYMTRMID>
<DUEDATE>4/6/2017</DUEDATE>
<PRCHAMNT>230</PRCHAMNT>
<CHRGAMNT>230</CHRGAMNT>
<TRXDSCRN>INV# 3147140</TRXDSCRN>
<CREATEDIST>0</CREATEDIST>
</taPMTransactionInsert>
<taMdaUpdate_Items xsi:nil="true" />
</PMTransactionType>
</eConnect>

Can some one please take a look at this and let me know what is the issue.





*This post is locked for comments

  • Suggested answer
    shai4445 Profile Picture
    shai4445 40 on at
    RE: Issue with posting a bill to GP

    Incase someone runs into this issue. This error was caused by using invalid payment Terms for me.

  • Suggested answer
    dobetter Profile Picture
    dobetter 30 on at
    RE: Issue with posting a bill to GP

    Check the Vendor Class Setup file in GP.  Look for the payment terms.  This needs to be blank in order for the integration to work.  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Issue with posting a bill to GP

    Yes vendor Id is correct.

    And as per the node reference: msdn.microsoft.com/.../jj193388.aspx

    DSTSQNUM is not a mandatory field.

    The issue is seen on the customers end, not reproducible in developer machine. So not sure if DSTSQNUM value fixes the issue.

    I actually anticipate this to be some settings in GP which is causing the problem, I am not sure though.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Issue with posting a bill to GP

    Is the Vendor ID (<![CDATA[ABSOLUTE]]>) correct? Also try passing value in DSTSQNUM column.

    Thanks,

    Anvar

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Issue with posting a bill to GP

    If the accounts do not exists, I get a different error:

    Error Number = 768  Stored Procedure= taPMDistribution  Error Description = Account does not exist for Account Index

    Node Identifier Parameters: taPMDistribution

  • Praveen Kumar RR Profile Picture
    Praveen Kumar RR 1,550 on at
    RE: Issue with posting a bill to GP

    Hi,

    Can you please check if both Accounts exists in Account Master (Account Index - 69 and 828)

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans