I am implementing a Java client of the Bullhorn Platform SDK library called sdk-rest (version 1.2.3). I am trying to insert a note with the following code:
Code: Select all
Note note = new Note();
note.setComments(comments);
note.setIsDeleted(Boolean.FALSE);
note.setPersonReference(new Person(foCandidateId));
note.setJobOrder(new JobOrder(jobOrderId));
note.setDateAdded(DateTime.now());
CrudResponse response = bhData.addNoteAndAssociateWithEntity(note);
Code: Select all
com.bullhornsdk.data.exception.RestApiException: {
"errorMessage" : "error persisting an entity of type: NoteEntity",
"errors" : [ {
"propertyName" : null,
"severity" : "ERROR",
"type" : "DUPLICATE_VALUE"
} ],
"entityName" : "NoteEntity"
}
Code: Select all
org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error
Please tell me the recommended solution for this issue.
Thanks,
Steve Hiller
Lead Analyst/Programmer
Randstad USA
2050 Spectrum Blvd
Fort Lauderdale, FL 33309
954.308.8230 (o)
Steve.Hiller@randstadusa.com..........
http://www.randstad.com