在UPDATE期间,Intuit PARTY名称必须是唯一错误,且名称没有更改

时间:2013-04-25 16:11:25

标签: rest intuit-partner-platform

在不更改名称的情况下更新客户时遇到此错误。到目前为止还没有看到任何解释。派对参考ID可能是问题?名称还可以,因为记录已经创建,只是发布了更新。有人有想法吗?

请求正文:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Mod Draft="false" FullResponse="true" RequestId="2b32f09b926d47209aceffdc3d20eb9f" xmlns:ns2="http://www.intuit.com/sb/cdm/junk" xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:ns3="http://platform.intuit.com/api/v1">
  <Customer>
    <Id idDomain="QB">11</Id>
    <SyncToken>1</SyncToken>
    <MetaData>
      <CreatedBy>app</CreatedBy>
      <CreateTime>2013-04-10T16:28:19Z</CreateTime>
      <LastModifiedBy>app</LastModifiedBy>
      <LastUpdatedTime>2013-04-10T17:57:50Z</LastUpdatedTime>
    </MetaData>
    <ExternalKey idDomain="QB">11</ExternalKey>
    <Synchronized>true</Synchronized>
    <PartyReferenceId idDomain="QB">11</PartyReferenceId>
    <TypeOf>Organization</TypeOf>
    <Name>Demo 001</Name>
    <Address>
      <Line1>123 Street</Line1>
      <Line2>Demo Bond</Line2>
      <City>San Francisco</City>
      <CountrySubDivisionCode>CA</CountrySubDivisionCode>
      <PostalCode>94108</PostalCode>
      <Tag>Billing</Tag>
    </Address>
    <Phone>
      <Id idDomain="QB">00000000000001Vj</Id>
      <DeviceType>LandLine</DeviceType>
      <FreeFormNumber>222-222-2222</FreeFormNumber>
      <Default>true</Default>
      <Tag>Business</Tag>
    </Phone>
    <Email>
      <Address>demo@test.test</Address>
      <Default>true</Default>
      <Tag>Business</Tag>
    </Email>
    <GivenName>Demo</GivenName>
    <FamilyName>Bond</FamilyName>
    <DBAName>Demo 001</DBAName>
    <Active>true</Active>
    <ShowAs>Demo 001</ShowAs>
    <SalesTermId idDomain="QB">6</SalesTermId>
    <SalesTermName>Net 30</SalesTermName>
    <OpenBalance>
      <CurrencyCode>USD</CurrencyCode>
      <Amount>43</Amount>
    </OpenBalance>
    <OpenBalanceDate>2013-04-10</OpenBalanceDate>
    <JobInfo>
      <Status>None</Status>
    </JobInfo>
  </Customer>
</Mod>

响应:

HTTP/1.1 200 OK
Date: Wed, 24 Apr 2013 17:24:48 GMT
Server: Apache/2.2.22 (Unix)
Response-Routing-Time: 564
Content-Length: 367
Connection: close 
Content-Type: text/xml

<?xml version="1.0"?>
<RestResponse xmlns="http://www.intuit.com/sb/cdm/v2">
<Error RequestId="2b32f09b926d47209aceffdc3d20eb9f">
    <RequestName>ErrorRequest</RequestName>
    <ProcessedTime>2013-04-24T17:24:49.092Z</ProcessedTime>
    <ErrorCode>-3002</ErrorCode>
    <ErrorDesc>PARTY name must be unique ERI=629577300</ErrorDesc>
    <DBErrorCode>20377</DBErrorCode>
</Error>
</RestResponse>

2 个答案:

答案 0 :(得分:1)

错误表示客户,供应商或员工的姓名与您尝试在上述请求中添加的客户名称相同。

使用第一个+最后一个组合查询现有记录

的问候,
震动

答案 1 :(得分:0)

我们的团队在发出包含现有供应商名称的AddVendor请求时发现此问题但请求中的名称包含尾随空格。似乎Quickbooks正在剥离尾随空间。剥离尾随空间解决了这个问题。