Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

eConnect - taPopEnterMatchInvLine Error 5309

Posted on by Microsoft Employee

I am working on a web application in Visual Studio 2012.  I am using eConnect to create Purchasing Invoices that match to POs, so I am using the POPEnterMatchInvoiceType.  I have successfully created a record for a Drop-Ship PO with AutoInvoice = 0 and nothing passed to POPMtchShpRcpt and ShipRCTLNNM.  However, I am getting an error when I try to create a record for a Standard PO with 2 lines that have been received.  I have tried using AutoInvoice = 1 and alternately manually submitting POPMtchShpRcpt, ShipRCTLNNM, and QTYINVCD.  I get the same results either way.  I know that the PO has been received.  If I use the Enter/Match Invoices GUI in GP, I can use the Auto-Invoice button to invoice the same lines.  I can't figure out what I'm missing.  Below is the error.  Any thoughts on what I'm doing wrong?

Error Number = 5309 Stored Procedure= taPopEnterMatchInvLine Error Description = There are no shipments to match against
Node Identifier Parameters: taPopEnterMatchInvLine
POPRCTNM = 20000002
PONUMBER = PO0301845
Related Error Code Parameters for Node : taPopEnterMatchInvLine
AutoInvoice = 1

<taPopEnterMatchInvLine>
<POPRCTNM>20000002</POPRCTNM>
<PONUMBER>PO0301845</PONUMBER>
<ITEMNMBR>072-28358 </ITEMNMBR>
<VENDORID>HUT00002</VENDORID>
<UNITCOST>0</UNITCOST>
<EXTDCOST>0</EXTDCOST>
<AUTOCOST>1</AUTOCOST>
<AutoInvoice>1</AutoInvoice>
</taPopEnterMatchInvLine>

Stack Trace:
at Microsoft.Dynamics.GP.eConnect.EntityMessageProcessor.ExecuteSqlCommands(XElement transactionNode, EntityMessage message)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.ProcessMessageImport(EntityMessage message)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.EntityImportImplementation(String connectionString, String sXML, Boolean isTransaction)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.CreateTransactionEntity(String connectionString, String sXML)
at Microsoft.Dynamics.GP.eConnect.Service.CreateTransactionEntity(String ConnectionString, String sXML)

Exception type:
Microsoft.Dynamics.GP.eConnect.eConnectException

Exception message:
Error Number = 5309 Stored Procedure taPopEnterMatchInvLine Error Description = There are no shipments to match against

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: eConnect - taPopEnterMatchInvLine Error 5309

    I haven't figure out why AutoInvoice doesn't work, but I did figure out how to match the shipments by passing in POPMtchShpRcpt, ShipRCTLNNM, and QTYINVCD.  I know originally said I passed in those values and got the same error, but I was mistaken.  I actually forgot to pass QTYINVCD when I first tried.  Once I set all three values, it worked.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans