com.force.api.ApiException: [{"message":"Cannot deserialize instance of boolean from VALUE_STRING value Yes or request may be missing a required field at [line:1, column:448]","errorCode":"JSON_PARSER_ERROR"}]
В указанной строке и столбце свойство является логическим, и я использую там значение true, поэтому в идеале проблем возникнуть не должно. >
У меня возникла проблема при обновлении объекта в отделе продаж с помощью Force API.
Объект, который я собираюсь обновить:
[code]{id=null, accountId=null, contactId=null, status=STATUS_COMPLETED, category=null, type=null, createdDate=null, origin=null, submittedDate=null, paperDeclarationRequested=false, targetPolicy=null, policyNumber=null, caseStatus=STATUS_COMPLETED, recordType=null, sdpStatus=null, dipDate=null, unabletoLinkDate=null, currentDate=null, recordTypeId=null, investmentFundName=SBI Fund, dateOfLatestConsent=Fri Jun 17 05:30:00 IST 2016, dataConsentIndicator=true, subject=null, paperDocumentsRequested=true, title=Personal Details, firstName=Asif, surname=Billa, dateOfBirth=Thu Oct 25 05:30:00 IST 1990, nationalInsuranceNumber=123456, countryOfNationality=India, ukResidentIndicator=Yes, crownServiceOrArmedForcesEmployeeIndicator=crownService, countryOfTaxResidency=United Kingdom, taxReferenceNumber=wert234, townOfBirth=London, nonUkResidentIndicator=Yes, addressLine1=yemlur, addressLine2=abc, addressLine3=karnataka, town=London, country=United Kingdom, postCode=B46 5EW, previousAddressLine1=null, previousAddressLine2=null, previousAddressLine3=null, previousTown=null, previousCountry=null, previousPostCode=null, contactTelephoneNumber=123345, accountName=Prashant, accountNumber=123142342, buildingSocietyRollNumber=12345, sortCode=null, singlePaymentAmount=5000, regularMonthlyPaymentAmount=5000, regularMonthlyPaymentStartDate=Thu May 26 04:04:51 IST 2016, withdrawalAmount=5000, frequency=Monthly, withdrawalStartDate=Thu May 26 04:04:51 IST 2016, declarationsAccepted=true, declarationsAcceptedDate=Thu May 26 04:04:51 IST 2016, directDebitDocumentName=null} [/code]
Исключение, которое я получаю:
[code]com.force.api.ApiException: [{"message":"Cannot deserialize instance of boolean from VALUE_STRING value Yes or request may be missing a required field at [line:1, column:448]","errorCode":"JSON_PARSER_ERROR"}] [/code]
В указанной строке и столбце свойство является логическим, и я использую там значение true, поэтому в идеале проблем возникнуть не должно. >