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 - taPopEnterMatchInvLine Error 5309

(0) ShareShare
ReportReport
Posted on by

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

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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans