DynDeveloper.com

DynDeveloper.com

Sign Up Now! Log In
abragg 7/26/2012 8:52:30 PM

Can't figure out how to transfer inventory with serial numbers

Hi,  I'm using the XML below to try to transfer two instances of an inventory item specifying the serial numbers I want transfered.  I get the error "The Trx Qty <> to sum of serial / lots in the IV10002"

Here's the XML, I'm sure I'm doing it wrong but I can't figure out how to do it.  Thanks for any help!

- Art

 <?xml version="1.0"?>
<eConnect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <IVInventoryTransactionType>
        <eConnectProcessInfo xsi:nil="true" />
        <taRequesterTrxDisabler_Items xsi:nil="true" />
        <taUpdateCreateItemRcd xsi:nil="true" />
        <taIVTransactionSerialInsert_Items xsi:nil="true" />
        <taIVTransactionLotInsert_Items xsi:nil="true" />
        <taIVTransactionLineInsert_Items />
        <taAnalyticsDistribution_Items xsi:nil="true" />
        <taIVTransactionMultiBinInsert_Items xsi:nil="true" />
        <taIVTransactionHeaderInsert>
            <BACHNUMB>0</BACHNUMB>
            <IVDOCNBR>00000000000000470</IVDOCNBR>
            <IVDOCTYP>1</IVDOCTYP>
            <DOCDATE>7/26/2012</DOCDATE>
        </taIVTransactionHeaderInsert>
    </IVInventoryTransactionType>
    <IVInventoryTransferType>
        <eConnectProcessInfo xsi:nil="true" />
        <taRequesterTrxDisabler_Items xsi:nil="true" />
        <taUpdateCreateItemRcd xsi:nil="true" />
        <taIVTransferSerialInsert_Items>
            <taIVTransferSerialInsert>
                <IVDOCNBR>00000000000000481</IVDOCNBR>
                <ITEMNMBR>2-A3284A</ITEMNMBR>
                <SERLNMBR>123456</SERLNMBR>
                <LNSEQNBR>1</LNSEQNBR>
                <LOCNCODE>WAREHOUSE</LOCNCODE>
                <AUTOCREATESERIAL>1</AUTOCREATESERIAL>
                <TOLOCNCODE>000002</TOLOCNCODE>
            </taIVTransferSerialInsert>
            <taIVTransferSerialInsert>
                <IVDOCNBR>00000000000000481</IVDOCNBR>
                <ITEMNMBR>2-A3284A</ITEMNMBR>
                <SERLNMBR>654321</SERLNMBR>
                <LNSEQNBR>2</LNSEQNBR>
                <LOCNCODE>WAREHOUSE</LOCNCODE>
                <AUTOCREATESERIAL>1</AUTOCREATESERIAL>
                <TOLOCNCODE>000002</TOLOCNCODE>
            </taIVTransferSerialInsert>
        </taIVTransferSerialInsert_Items>
        <taIVTransferLotInsert_Items xsi:nil="true" />
        <taIVTransferLineInsert_Items>
            <taIVTransferLineInsert>
                <IVDOCNBR>00000000000000481</IVDOCNBR>
                <ITEMNMBR>2-A3284A</ITEMNMBR>
                <TRXQTY>2</TRXQTY>
                <TRXLOCTN>WAREHOUSE</TRXLOCTN>
                <TRNSTLOC>000002</TRNSTLOC>
            </taIVTransferLineInsert>
        </taIVTransferLineInsert_Items>
        <taAnalyticsDistribution_Items xsi:nil="true" />
        <taIVTransferMultiBinInsert_Items xsi:nil="true" />
        <taIVTransferHeaderInsert>
            <BACHNUMB>0</BACHNUMB>
            <IVDOCNBR>00000000000000481</IVDOCNBR>
            <DOCDATE>7/26/2012</DOCDATE>
        </taIVTransferHeaderInsert>
    </IVInventoryTransferType>
</eConnect>

Version: GP 10
Section: .NET Development, eConnect