2014-02-25 2 views
1

openbravo 고급 휴식 클라이언트를 통해 openbravo에 새 레코드를 삽입하려고하는데이 오류가 발생합니다 : Exception when updating BusinessPartner(null).고급 휴식 클라이언트를 통해 openbravo에서 json 게시

POST를 들어

, 나는 다음과 같은 URL을 사용하고 있습니다 :

http://173.230.148.65/openbravo/org.openbravo.service.json.jsonrest/BusinessPartner 

키를/ 데이터는 다음과 같이되는 값 :

{ 
data : 
{ 
_identifier: "carsss", 
_entityName: "BusinessPartner", 
$ref: "BusinessPartner/6C8417D0C2FA4B8B858CBF51C742F65B", 
id: "6C8417D0C2FA4B8B858CBF51C742F65B", 
client: "D5B4A1DF0C194F65930BB8945A8B3082", 
client$_identifier: "DemoClient", 
organization: "DC280AA41A5E479AB663B1D4DB6158C0", 
organization$_identifier: "Purchase", 
active: true, 
creationDate: "2013-12-06T07:24:04+00:00", 
createdBy: "E1A6A414BED14417B7235CBFDF00977C", 
createdBy$_identifier: "DemoClient", 
updated: "2013-12-19T04:32:17+00:00", 
updatedBy: "E1A6A414BED14417B7235CBFDF00977C", 
updatedBy$_identifier: "DemoClient", 
searchKey: "customer", 
name: "carsss", 
name2: "carsss", 
description: "This is cars", 
summaryLevel: false, 
businessPartnerCategory: "0109E0660DD349D6B00D96BF0CEAE6E2", 
businessPartnerCategory$_identifier: "Customer", 
oneTimeTransaction: false, 
potentialCustomer: false, 
vendor: false, 
customer: true, 
employee: false, 
isSalesRepresentative: false, 
referenceNo: null, 
dUNS: null, 
uRL: null, 
language: "en_US", 
language$_identifier: "English (USA)", 
taxID: null, 
taxExempt: false, 
invoiceSchedule: null, 
valuation: null, 
volumeOfSales: null, 
noOfEmployees: null, 
nAICSSIC: null, 
dateOfFirstSale: null, 
acquisitionCost: 0, 
expectedLifetimeRevenue: 0, 
lifetimeRevenueToDate: 0, 
share: null, 
formOfPayment: null, 
creditLimit: 1000, 
creditUsed: 0, 
paymentTerms: "A182B5EC1898407FA386ED4775ED6DDA", 
paymentTerms$_identifier: "Immediate", 
priceList: "DA10C6659DBE408B9789A01AF3CA7015", 
priceList$_identifier: "Sales Price List", 
printDiscount: false, 
orderDescription: null, 
orderReference: null, 
pOFormOfPayment: null, 
purchasePricelist: null, 
pOPaymentTerms: null, 
numberOfCopies: null, 
greeting: null, 
invoiceTerms: "I", 
deliveryTerms: null, 
deliveryMethod: null, 
salesRepresentative: null, 
partnerParent: null, 
creditStatus: "O", 
forcedOrg: null, 
pricesShownInOrder: true, 
invoiceGrouping: "000000000000000", 
maturityDate1: null, 
maturityDate2: null, 
maturityDate3: null, 
operator: false, 
uPCEAN: null, 
salaryCategory: null, 
invoicePrintformat: null, 
consumptionDays: 1000, 
bankAccount: null, 
taxCategory: null, 
pOMaturityDate1: null, 
pOMaturityDate2: null, 
pOMaturityDate3: null, 
transactionalBankAccount: null, 
sOBPTaxCategory: null, 
fiscalcode: null, 
isofiscalcode: null, 
incotermsPO: null, 
incotermsSO: null, 
paymentMethod: "8A18E79688DD4A179F2FDC14FBECED55", 
paymentMethod$_identifier: "Check", 
pOPaymentMethod: null, 
account: "91E5EB8BECBF49BAA3391942D6328640", 
account$_identifier: "BOA", 
pOFinancialAccount: null, 
customerBlocking: true, 
vendorBlocking: false, 
paymentIn: false, 
paymentOut: true, 
salesInvoice: true, 
purchaseInvoice: true, 
salesOrder: true, 
purchaseOrder: true, 
goodsShipment: true, 
goodsReceipt: false, 
recordTime: 1393321917803 
} 
} 

누군가는이 문제에서 나를 인도 시겠어요?

답변

0

먼저 입력 Json이 올바른지 확인하십시오. 온라인 Json Formatter를 사용하여 입력 json을 확인할 수 있습니다.

이것은 입력 된 json 문자열을 확인하는 데 사용할 수있는 free JSON Formatter입니다. 나는 당신이 여기 게시 한 JSON으로 시도했다. 문법 오류가 많이있다.

고급 나머지 클라이언트 :

  • 설정 콘텐츠 형식 : 응용 프로그램/JSON
  • 방법 : 포스트

당신이 해결하는 데 도움이 될 수있는 파일을 첨부 이 오류. enter image description here

나머지 클라이언트의 응답을 첨부합니다. json output response REST Client

페이로드를 첨부하십시오.