2013-08-06 43 views
0

試圖打客戶終點和API一直拒絕我的這個非常不倫不類的錯誤請求(「ESB」「ADDRESS_API」「LABEL_NAME_MAP」。):不能插入NULL到

<ErrorCode>-3002</ErrorCode> 
<ErrorDesc>cannot insert NULL into ("ESB"."ADDRESS_API"."LABEL_NAME_MAP")</ErrorDesc> 
<DBErrorCode>01400</DBErrorCode> 

這裏是樣本XML:

<?xml version='1.0' encoding='utf-8' ?> 
<Add RequestId='47e1633341s4521a24e269ad12ab3f6' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://www.intuit.com/sb/cdm/v2'> 
    <ExternalRealmId>111111111</ExternalRealmId> 
    <Object xsi:type='Customer'> 
    <TypeOf>Organization</TypeOf> 
    <Name>SampleCustomer</Name> 
    <Address> 
     <Line1>123 E. Fake St</Line1> 
     <Line2>Suite 1</Line2> 
     <City>Somewhere</City> 
     <Country>USA</Country> 
     <CountrySubDivisionCode>FL</CountrySubDivisionCode> 
     <PostalCode>12345</PostalCode> 
     <Default>true</Default> 
     <Tag>Billing</Tag> 
    </Address> 
    <Phone> 
     <DeviceType>LandLine</DeviceType> 
     <FreeFormNumber>123-456-4563</FreeFormNumber> 
     <Default>true</Default> 
     <Tag>Main</Tag> 
    </Phone> 
    <DBAName>Sample Customer</DBAName> 
    <AcctNum>51f2ce86134c03000a000155</AcctNum> 
    </Object> 
</Add> 

有什麼建議嗎?這些例外是超級混亂。我發現與"ESB"."PHONE_API"."LABEL_NAME_MAP"相關的那一個與空電話號碼字段有關。這一要求並非如此。

回答

3

您編輯您的文章,以反映正確的標籤,所以這個答案可能不再相關

我的第一個猜想是,每documentation,地址/標籤節點允許值由定義PhysicalAddressLabelType枚舉。

Tag - String - Tag (or label) that identifies the use of the address. The values allowed are defined in the PhysicalAddressLabelType.

如果你看一下allowable values,你會看到的唯一允許值是:

  • 結算
  • 航運

但你指定:

  • 辦公室

你可以嘗試指定一個有效的值嗎?

同樣,您也爲電話節點指定了一個無效標籤。允許的值在這裏:

但您指定:

  • 主要

你可以嘗試指定一個有效的價值?

+1

就是這樣,我發佈後才意識到它。 – tylerjohnst

+0

沒問題 - 如果您覺得它的正確性,您能否將我的答案標記爲已接受?這將有助於其他人知道這是一個被接受/正確的答案。 –