Alwani 9/14/2011 8:12:46 AM

Error sending XML Documnent into Great Plains Value cannot be null. : s

When I try to saved the item using econnect10. I am getting this error:. I have upgraded the web service code, as web aplication is not customizable so only whatever I have to do is ply through the econnect service. Provider two method READTable and POSTDOC.

Error sending XML Documnent into Great Plains:
Value cannot be null.
Parameter name: s

 



XML Document:
<?xml version="1.0" encoding="utf-8"?>
<eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <SMItemMasterType>
        <taUpdateCreateItemRcd_Items>
            <taUpdateCreateItemRcd>
                <ITEMNMBR>FI111</ITEMNMBR>
                <ITEMDESC>185/70R14 Firestone F580 88 T B</ITEMDESC>
                <ITMSHNAM>185/70R14 Fires</ITMSHNAM>
                <Tolerance_Percentage>0</Tolerance_Percentage>
                <Revalue_Inventory>0</Revalue_Inventory>
                <LOCNCODE>STORE 11</LOCNCODE>
                <ITEMTYPE>1</ITEMTYPE>
                <CURRCOST>177.0000</CURRCOST>
                <UpdateIfExists>1</UpdateIfExists>
                <UOMSCHDL>EACH</UOMSCHDL>
                <PRCHSUOM>EACH</PRCHSUOM>
                <UseItemClass>1</UseItemClass>
                <ITMCLSCD>CONSIGN-H</ITMCLSCD>
                <Purchase_Tax_Options>2</Purchase_Tax_Options>
                <TAXOPTNS>2</TAXOPTNS>
                <ITMGEDSC>1857014</ITMGEDSC>
                <USCATVLS_1>Firestone</USCATVLS_1>
                <USCATVLS_2>F580</USCATVLS_2>
                <USCATVLS_3></USCATVLS_3>
            </taUpdateCreateItemRcd>
        </taUpdateCreateItemRcd_Items>
    </SMItemMasterType>
    <IVCreateItemPriceListType>
        <taIVCreateItemPriceListLine_Items>
            <taIVCreateItemPriceListLine>
                <ITEMNMBR>FI111</ITEMNMBR>
                <CURNCYID>SAR</CURNCYID>
                <PRCLEVEL>TIREWARE</PRCLEVEL>
                <UOFM>EACH</UOFM>
                <UOMPRICE>0</UOMPRICE>
                <UpdateIfExists>1</UpdateIfExists>
            </taIVCreateItemPriceListLine>
        </taIVCreateItemPriceListLine_Items>
        <taIVCreateItemPriceListHeader>
            <ITEMNMBR>FI111</ITEMNMBR>
            <PRICMTHD>1</PRICMTHD>
            <UOFM>EACH</UOFM>
            <PRCLEVEL>TIREWARE</PRCLEVEL>
            <CURNCYID>SAR</CURNCYID>
            <UpdateIfExists>1</UpdateIfExists>
        </taIVCreateItemPriceListHeader>
    </IVCreateItemPriceListType>
</eConnect>

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Error sending XML Documnent into Great Plains:
Value cannot be null.
Parameter name: s

XML Document:
<?xml version="1.0" encoding="utf-8"?>
<eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <SMItemMasterType>
        <taUpdateCreateItemRcd_Items>
            <taUpdateCreateItemRcd>
                <ITEMNMBR>FI111</ITEMNMBR>
                <ITEMDESC>185/70R14 Firestone F580 88 T B</ITEMDESC>
                <ITMSHNAM>185/70R14 Fires</ITMSHNAM>
                <Tolerance_Percentage>0</Tolerance_Percentage>
                <Revalue_Inventory>0</Revalue_Inventory>
                <LOCNCODE>STORE 11</LOCNCODE>
                <ITEMTYPE>1</ITEMTYPE>
                <CURRCOST>177.0000</CURRCOST>
                <UpdateIfExists>1</UpdateIfExists>
                <UOMSCHDL>EACH</UOMSCHDL>
                <PRCHSUOM>EACH</PRCHSUOM>
                <UseItemClass>1</UseItemClass>
                <ITMCLSCD>CONSIGN-H</ITMCLSCD>
                <Purchase_Tax_Options>2</Purchase_Tax_Options>
                <TAXOPTNS>2</TAXOPTNS>
                <ITMGEDSC>1857014</ITMGEDSC>
                <USCATVLS_1>Firestone</USCATVLS_1>
                <USCATVLS_2>F580</USCATVLS_2>
                <USCATVLS_3></USCATVLS_3>
            </taUpdateCreateItemRcd>
        </taUpdateCreateItemRcd_Items>
    </SMItemMasterType>
    <IVCreateItemPriceListType>
        <taIVCreateItemPriceListLine_Items>
            <taIVCreateItemPriceListLine>
                <ITEMNMBR>FI111</ITEMNMBR>
                <CURNCYID>SAR</CURNCYID>
                <PRCLEVEL>TIREWARE</PRCLEVEL>
                <UOFM>EACH</UOFM>
                <UOMPRICE>0</UOMPRICE>
                <UpdateIfExists>1</UpdateIfExists>
            </taIVCreateItemPriceListLine>
        </taIVCreateItemPriceListLine_Items>
        <taIVCreateItemPriceListHeader>
            <ITEMNMBR>FI111</ITEMNMBR>
            <PRICMTHD>1</PRICMTHD>
            <UOFM>EACH</UOFM>
            <PRCLEVEL>TIREWARE</PRCLEVEL>
            <CURNCYID>SAR</CURNCYID>
            <UpdateIfExists>1</UpdateIfExists>
        </taIVCreateItemPriceListHeader>
    </IVCreateItemPriceListType>
</eConnect>

Source Error:

 

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using the
exception stack trace below.

Stack Trace:

[Exception: Error sending XML Documnent into Great Plains:
Value cannot be null.
Parameter name: s

XML Document:
<?xml version="1.0" encoding="utf-8"?><eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes">
<SMItemMasterType><taUpdateCreateItemRcd_Items><taUpdateCreateItemRcd><ITEMNMBR>FI111</ITEMNMBR>
<ITEMDESC>185/70R14 Firestone F580 88 T B</ITEMDESC><ITMSHNAM>185/70R14 Fires</ITMSHNAM>
<Tolerance_Percentage>0</Tolerance_Percentage><Revalue_Inventory>0</Revalue_Inventory>
<LOCNCODE>STORE 11</LOCNCODE><ITEMTYPE>1</ITEMTYPE><CURRCOST>177.0000</CURRCOST>
<UpdateIfExists>1</UpdateIfExists><UOMSCHDL>EACH</UOMSCHDL><PRCHSUOM>EACH</PRCHSUOM>
<UseItemClass>1</UseItemClass><ITMCLSCD>CONSIGN-H</ITMCLSCD>
<Purchase_Tax_Options>2</Purchase_Tax_Options><TAXOPTNS>2</TAXOPTNS>
<ITMGEDSC>1857014</ITMGEDSC><USCATVLS_1>Firestone</USCATVLS_1>
<USCATVLS_2>F580</USCATVLS_2><USCATVLS_3></USCATVLS_3></taUpdateCreateItemRcd></taUpdateCreateItemRcd_Items>
</SMItemMasterType><IVCreateItemPriceListType><taIVCreateItemPriceListLine_Items>
<taIVCreateItemPriceListLine><ITEMNMBR>FI111</ITEMNMBR><CURNCYID>SAR</CURNCYID>
<PRCLEVEL>TIREWARE</PRCLEVEL><UOFM>EACH</UOFM><UOMPRICE>0</UOMPRICE>
<UpdateIfExists>1</UpdateIfExists></taIVCreateItemPriceListLine></taIVCreateItemPriceListLine_Items>
<taIVCreateItemPriceListHeader><ITEMNMBR>FI111</ITEMNMBR><PRICMTHD>1</PRICMTHD><UOFM>EACH</UOFM>
<PRCLEVEL>TIREWARE</PRCLEVEL><CURNCYID>SAR</CURNCYID>
<UpdateIfExists>1</UpdateIfExists></taIVCreateItemPriceListHeader></IVCreateItemPriceListType></eConnect>] tires.Components.GP.Adapter.SendDocument(String xmldoc) in C:\Repository\tires.Components
\GP\Adapter.cs:68 tires.Components.GP.GItem.syncItem(String itemId, String itemType, String path) in C:\Repository
\tires.Components\GP\GItem.cs:60 tires.Forms.inv.tiredata.SaveAllData(String itemID) in C:\Repository\tires\Forms\inv
\tiredata.aspx.cs:478 tires.Forms.inv.tiredatactrl.InventoryManagement() in C:\Repository\tires\Forms\inv
\tiredatactrl.ascx.cs:812 tires.Forms.inv.tiredatactrl.bSave_Click(Object sender, EventArgs e) in C:\Repository
\tires\Forms\inv\tiredatactrl.ascx.cs:881 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +1746

 

 

 

 

Version: GP 10
Section: eConnect


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3