Page 1 of 1

sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Tue Jan 31, 2017 11:49 am
by shetc
To Whom It May Concern:

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);
This returns the following error:

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"
}
If I dig down to the com.bullhornsdk.data.api.StandardBullhornData.performCustomRequest() method, I see that the underlying exception is:

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

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE

Posted: Tue Jan 31, 2017 12:02 pm
by ColinC
Hi shetc,

I see you are using our version 1.2.3 and we have released up to 1.2.4.1 here: https://github.com/bullhorn/sdk-rest.

There were many things that were updated. Could you update the version in case this issue was addressed with this update?
Also, on the github site, there is an issues page for the rest-sdk if this persists. This would be a more direct way to report a bug to that team.

However, if you would like me to follow up on your behalf I can but it might be slower than through the issues page.

Please let me know if you have any followup questions.

Kind regards,
Colin

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Tue Jan 31, 2017 12:19 pm
by shetc
Thanks, Colin -- let me try 1.2.4.1 and report back.

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Tue Jan 31, 2017 12:37 pm
by shetc
Still fails with the same message.

My concern is that I wanted to use the SDK in production SOON. Is the SDK considered production-ready?

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Tue Jan 31, 2017 1:01 pm
by shetc
Which version of Spring are you using?

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Tue Jan 31, 2017 1:03 pm
by shetc
Nevermind, I found the pom.

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Tue Jan 31, 2017 1:06 pm
by ColinC
The Issues tab on the github page will be your fastest way to get a response for this. Through support it would go through tier 3 as a potential bug, but since adding notes is something that works normally (not using sdk-rest) it could be an issue with the packed code and they would be a better resource.

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Wed Feb 01, 2017 2:59 pm
by shetc
Colin -- I am logged into Github but I don't seem to have permissions to submit an issue (the "Submit new issue" button is disabled).

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Posted: Wed Feb 01, 2017 6:29 pm
by ColinC
Hi shetc,

The submit new issue button lights up once you have a subject and body filled out. It is greyed out while that information is blank.

Is that not happening for you?