Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Subtotal does not match the line item totals

Posted on by 60

Getting the following Error when creating Sales Transaction,

Sql procedure error codes returned:

Error Number = 67 Stored Procedure= taSopHdrIvcInsert Error Description = Subtotal does not match the line item totals
Node Identifier Parameters: taSopHdrIvcInsert
SOPNUMBE = 1007647
SOPTYPE = 3
Related Error Code Parameters for Node : taSopHdrIvcInsert
SUBTOTAL = 68.74


<taSopHdrIvcInsert>
<SOPTYPE>3</SOPTYPE>
<DOCID>1007647</DOCID>
<SOPNUMBE>1007647</SOPNUMBE>
<TAXSCHID>ALL DETAILS</TAXSCHID>
<TAXAMNT>10</TAXAMNT>
<DOCDATE>09/03/2020</DOCDATE>
<CUSTNMBR>BEIE</CUSTNMBR>
<SUBTOTAL>68.74</SUBTOTAL>
<BACHNUMB>IASALES25042011124</BACHNUMB>
<USINGHEADERLEVELTAXES>1</USINGHEADERLEVELTAXES>
<CREATECOMM>1</CREATECOMM>
<CURNCYID>Z-US$</CURNCYID>
<INVODATE>09/03/2020</INVODATE>
</taSopHdrIvcInsert>

Here is the XML which is sent..

<?xml version="1.0"?><eConnect xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema">
<SMTransactionBatchType>
<eConnectProcessInfo xsi:nil="true" /><taRequesterTrxDisabler_Items xsi:nil="true" />
<taCreateUpdateBatchHeaderRcd>
<BACHNUMB>IASALES25042011124</BACHNUMB>
<BCHCOMNT>Batch from Integration</BCHCOMNT>
<SERIES>4</SERIES>
<GLPOSTDT>04/25/2020</GLPOSTDT>
<BCHSOURC>Rcvg Trx Entry</BCHSOURC>
<DOCAMT>0</DOCAMT>
<ORIGIN>1</ORIGIN>
<NUMOFTRX>2</NUMOFTRX>
</taCreateUpdateBatchHeaderRcd>
</SMTransactionBatchType>
<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>3</SOPTYPE>
<SOPNUMBE>STDINV2291</SOPNUMBE>
<CUSTNMBR>BEIE</CUSTNMBR>
<DOCDATE>09/03/2020</DOCDATE>
<LOCNCODE>WAREHOUSE</LOCNCODE>
<ITEMNMBR>TRANS-0235</ITEMNMBR>
<UNITPRCE>34.37</UNITPRCE>
<XTNDPRCE>68.74</XTNDPRCE>
<QUANTITY>2</QUANTITY>
<IVITMTXB>3</IVITMTXB>
<INVINDX>000-4110-02</INVINDX>
<CURNCYID>Z-US$</CURNCYID>
<UOFM>Each</UOFM>
</taSopLineIvcInsert>
</taSopLineIvcInsert_Items>
<taSopLineIvcInsertComponent_Items xsi:nil="true" />
<taSopTrackingNum_Items xsi:nil="true" />
<taSopCommissions_Items xsi:nil="true" />
<taSopLineIvcTaxInsert_Items>
<taSopLineIvcTaxInsert>
<SOPTYPE>3</SOPTYPE>
<SOPNUMBE>STDINV2291 </SOPNUMBE>
<CUSTNMBR>BEIE</CUSTNMBR>
<TAXDTLID>CA-GST-I</TAXDTLID>
<STAXAMNT>10</STAXAMNT>
</taSopLineIvcTaxInsert>
</taSopLineIvcTaxInsert_Items>
<taCreateSopPaymentInsertRecord_Items xsi:nil="true" />
<taSopUserDefined xsi:nil="true" />
<taSopDistribution_Items xsi:nil="true" />
<taAnalyticsDistribution_Items xsi:nil="true" />
<taSopMultiBin_Items xsi:nil="true" />
<taSopHdrIvcInsert>
<SOPTYPE>3</SOPTYPE>
<DOCID>1007647</DOCID>
<SOPNUMBE>1007647</SOPNUMBE>
<TAXSCHID>ALL DETAILS</TAXSCHID>
<TAXAMNT>10</TAXAMNT>
<DOCDATE>09/03/2020</DOCDATE>
<CUSTNMBR>BEIE</CUSTNMBR>
<SUBTOTAL>68.74</SUBTOTAL>
<BACHNUMB>IASALES25042011124</BACHNUMB>
<USINGHEADERLEVELTAXES>1</USINGHEADERLEVELTAXES>
<CREATECOMM>1</CREATECOMM><CURNCYID>Z-US$</CURNCYID>
<INVODATE>09/03/2020</INVODATE>
</taSopHdrIvcInsert><taSopToPopLink xsi:nil="true" />
<taSopUpdateCreateProcessHold xsi:nil="true" />
<taCreateSOPTrackingInfo xsi:nil="true" />
<taMdaUpdate_Items xsi:nil="true" />
</SOPTransactionType>
</eConnect>

Categories:
  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,021 Super User 2024 Season 1 on at
    RE: Subtotal does not match the line item totals

    Hi Vaidh,

    instead of providing the sub-total in your source XML, you may want GP let it calculate by itself based on the line item amounts.. that's the recommended process most of the time.

    DEFPRICING  i4  1  N  0  1=Subtotal will be calculated from SOP line or lines

    it's not a mandatory field and by default will be set to '0', which means no calculation.

    Try that.

  • Suggested answer
    Shannon Aune Profile Picture
    Shannon Aune on at
    RE: Subtotal does not match the line item totals

    Hi Vaidh,

    I would recommend that you enter the sales invoice in GP manually in the application and then compare the details from the manually entered one to the one that you are trying to integrate to see if that helps to determine where the dependency is.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans