Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

eConnect Error Number = 60 on Sales Order taSopHdrIvcInsert

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
We are receiving and eConnect error "Error Description = Payment total does not match line deposit + credit card payment total" when applying 2 payment type ID's to a slaes order.  Payment total does balance so the error does not offer much help.  Error and XML below.
Has anyone ran into a similar situation?
Thanks,
Donnette
[3] Order#30273844  Name: XXXXX
made partial header
completed the header
made the order lines
made fixed taxes
made the tax lines
Made 2 of 2 pmt lines
Calling eConnect with xml for orderId 30273844
eConnect ERROR: Sql procedure error codes returned:
Error Number = 60  Stored Procedure= taSopHdrIvcInsert  Error Description = Payment total does not match line deposit + credit card payment total
Node Identifier Parameters: taSopHdrIvcInsert
SOPNUMBE = 30273844
SOPTYPE = 2
Related Error Code Parameters for Node : taSopHdrIvcInsert
PYMTRCVD = 80.10

<taSopHdrIvcInsert>
  <SOPTYPE>2</SOPTYPE>
  <DOCID>YOLI</DOCID>
  <SOPNUMBE>30273844</SOPNUMBE>
  <TAXSCHID>DEFAULT</TAXSCHID>
  <FRTSCHID>DEFAULT</FRTSCHID>
  <TAXAMNT>3.10</TAXAMNT>
  <LOCNCODE>DC-MYSKUL</LOCNCODE>
  <DOCDATE>11/2/2012</DOCDATE>
  <FREIGHT>15.00</FREIGHT>
  <TRDISAMT>0</TRDISAMT>
  <CUSTNMBR>1027726</CUSTNMBR>
  <ADDRESS1>XXXXXX</ADDRESS1>
  <ADDRESS2>XXXXX,</ADDRESS2>
  <CITY>Ampang</CITY>
  <STATE>Selangor</STATE>
  <ZIPCODE>68000</ZIPCODE>
  <COUNTRY>MYS</COUNTRY>
  <PHNUMBR1>+6017 2570801</PHNUMBR1>
  <SUBTOTAL>62.00</SUBTOTAL>
  <DOCAMNT>80.10</DOCAMNT>
  <PYMTRCVD>80.10</PYMTRCVD>
  <BACHNUMB>X20121116008</BACHNUMB>
  <PRCLEVEL>DEFAULT</PRCLEVEL>
  <DEFPRICING>1</DEFPRICING>
</taSopHdrIvcInsert>
Whole request:
<?xml version="1.0"?>
<SOPTransactionType>
<eConnectProcessInfo xsi:nil="true" />
<taRequesterTrxDisabler_Items xsi:nil="true" />
<taUpdateCreateItemRcd xsi:nil="true" />
<taUpdateCreateCustomerRcd xsi:nil="true" />
<taCreateCustomerAddress_Items xsi:nil="true" />
<taSopSerial_Items xsi:nil="true" />
<taSopLotAuto_Items xsi:nil="true" />
<taSopLineIvcInsert_Items>
<taSopLineIvcInsert>
<SOPTYPE>2</SOPTYPE>
<SOPNUMBE>30273844</SOPNUMBE>
<CUSTNMBR>1027726</CUSTNMBR>
<DOCDATE>11/2/2012</DOCDATE>
<LOCNCODE>DC-MYSKUL</LOCNCODE>
<ITEMNMBR>1050020101</ITEMNMBR>
<UNITPRCE>62.00</UNITPRCE>
<XTNDPRCE>62.00</XTNDPRCE>
<QUANTITY>1</QUANTITY>
<TAXAMNT>3.10</TAXAMNT>
<LNITMSEQ>16384</LNITMSEQ>
<TAXSCHID>DEFAULT</TAXSCHID>
</taSopLineIvcInsert>
</taSopLineIvcInsert_Items>
<taSopLineIvcInsertComponent_Items xsi:nil="true" />
<taSopTrackingNum_Items xsi:nil="true" />
<taSopCommissions_Items xsi:nil="true" />
<taSopLineIvcTaxInsert_Items>
<taSopLineIvcTaxInsert>
<SOPTYPE>2</SOPTYPE>
<SOPNUMBE>30273844</SOPNUMBE>
<CUSTNMBR>1027726</CUSTNMBR>
<LNITMSEQ>16384</LNITMSEQ>
<SALESAMT>62.00</SALESAMT>
<TAXDTLID>DEFAULT</TAXDTLID>
<STAXAMNT>3.10</STAXAMNT>
</taSopLineIvcTaxInsert>
</taSopLineIvcTaxInsert_Items>
<taCreateSopPaymentInsertRecord_Items>
<taCreateSopPaymentInsertRecord>
<SOPTYPE>2</SOPTYPE>
<SOPNUMBE>30273844</SOPNUMBE>
<CUSTNMBR>1027726</CUSTNMBR>
<DOCDATE>11/2/2012</DOCDATE>
<DOCAMNT>10.00</DOCAMNT>
<CARDNAME>PayHub</CARDNAME>
<RCTNCCRD>27755</RCTNCCRD>
<PYMTTYPE>6</PYMTTYPE>
</taCreateSopPaymentInsertRecord>

<taCreateSopPaymentInsertRecord>
<SOPTYPE>2</SOPTYPE>
<SOPNUMBE>30273844</SOPNUMBE>
<CUSTNMBR>1027726</CUSTNMBR>
<DOCDATE>11/2/2012</DOCDATE>
<DOCAMNT>70.10</DOCAMNT>
<CHEKBKID>GENERAL5668</CHEKBKID>
<CARDNAME>Visa</CARDNAME>
<RCTNCCRD>4***********8336</RCTNCCRD>
<PYMTTYPE>6</PYMTTYPE>
</taCreateSopPaymentInsertRecord>
</taCreateSopPaymentInsertRecord_Items>
<taSopUserDefined xsi:nil="true" />
<taSopDistribution_Items xsi:nil="true" />
<taAnalyticsDistribution_Items xsi:nil="true" />
<taSopMultiBin_Items xsi:nil="true" />
<taSopHdrIvcInsert>
<SOPTYPE>2</SOPTYPE>
<DOCID>YOLI</DOCID>
<SOPNUMBE>30273844</SOPNUMBE>
<TAXSCHID>DEFAULT</TAXSCHID>
<FRTSCHID>DEFAULT</FRTSCHID>
<TAXAMNT>3.10</TAXAMNT>
<LOCNCODE>DC-MYSKUL</LOCNCODE>
<DOCDATE>11/2/2012</DOCDATE>
<FREIGHT>15.00</FREIGHT>
<TRDISAMT>0</TRDISAMT>
<CUSTNMBR>1027726</CUSTNMBR>
<ADDRESS1>No. 108, Jalan Teratai 1/11,</ADDRESS1>
<ADDRESS2>TamanMelur,</ADDRESS2>
<CITY>Ampang</CITY>
<STATE>Selangor</STATE>
<ZIPCODE>68000</ZIPCODE>
<COUNTRY>MYS</COUNTRY>
<PHNUMBR1>+60172570801</PHNUMBR1>
<SUBTOTAL>62.00</SUBTOTAL>
<DOCAMNT>80.10</DOCAMNT>
<PYMTRCVD>80.10</PYMTRCVD>
<BACHNUMB>X20121116008</BACHNUMB>
<PRCLEVEL>DEFAULT</PRCLEVEL>
<DEFPRICING>1</DEFPRICING>
</taSopHdrIvcInsert>
<taSopToPopLink xsi:nil="true" />
<taSopUpdateCreateProcessHold xsi:nil="true" />
<taCreateSOPTrackingInfo xsi:nil="true" />
<taMdaUpdate_Items xsi:nil="true" />
</SOPTransactionType>
</eConnect>


*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: eConnect Error Number = 60 on Sales Order taSopHdrIvcInsert

    Greetings Donnette - I am running in to the issue as well, would you mind sharing the solution you found?

    Thanks

    John.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: eConnect Error Number = 60 on Sales Order taSopHdrIvcInsert

    Yes I did find a solution. Thank you.

  • Lucas Miller Profile Picture
    Lucas Miller on at
    RE: eConnect Error Number = 60 on Sales Order taSopHdrIvcInsert

    Hello Donnette and John,

    Are you still experiencing this issue?  If so, here's the logic in the taSopHdrIvcInsert stored procedure that's being checked to determine if that error should be given:

    1) First, it determines the value of @DEPOSITS and @PAYMENTS using the following queries:

    select @DEPOSITS = isnull(sum(p.AMNTPAID),0)

    from SOP10103 p (nolock) left outer join SY03100 b (nolock) on p.CARDNAME = b.CARDNAME

    where p.SOPTYPE = @I_vSOPTYPE

    and p.SOPNUMBE = @I_vSOPNUMBE

    and (p.PYMTTYPE in (1,2,3))

    select @PAYMENTS = isnull(sum(p.AMNTPAID),0)

    from SOP10103 p (nolock) left outer join SY03100 b (nolock) on p.CARDNAME = b.CARDNAME

    where p.SOPTYPE = @I_vSOPTYPE

    and p.SOPNUMBE = @I_vSOPNUMBE

    and (p.PYMTTYPE in (4,5,6))

    You will need to substitute the values in your XML for @I_vSOPTYPE and @I_vSOPNUMBE

    2) Then, this is the ultimate comparison for Error Code 60.  Just sum up @DEPOSITS and @PAYMENTS and compare it to the <PYMTRCVD> value you've passed.

    if ((@DEPOSITS + @PAYMENTS) <> @I_vPYMTRCVD)

    If the two sides of this equation don't match up you have a problem and will receive this error.

    Let me know if you have any questions.

  • Barcom Profile Picture
    Barcom 5 on at
    RE: eConnect Error Number = 60 on Sales Order taSopHdrIvcInsert

    Donnette,  did you get an answer to your problem.   I am running into the same problem with 2  taCreateSopPaymentInsertRecord 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans