sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
shetc
User
Posts: 19
Joined: Fri Jul 20, 2012 2:46 pm

sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by shetc » Tue Jan 31, 2017 11:49 am

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

ColinC
User
Posts: 67
Joined: Fri Apr 08, 2016 4:54 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE

Post by ColinC » Tue Jan 31, 2017 12:02 pm

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
Colin Coffman
Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

shetc
User
Posts: 19
Joined: Fri Jul 20, 2012 2:46 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by shetc » Tue Jan 31, 2017 12:19 pm

Thanks, Colin -- let me try 1.2.4.1 and report back.

shetc
User
Posts: 19
Joined: Fri Jul 20, 2012 2:46 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by shetc » Tue Jan 31, 2017 12:37 pm

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?

shetc
User
Posts: 19
Joined: Fri Jul 20, 2012 2:46 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by shetc » Tue Jan 31, 2017 1:01 pm

Which version of Spring are you using?

shetc
User
Posts: 19
Joined: Fri Jul 20, 2012 2:46 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by shetc » Tue Jan 31, 2017 1:03 pm

Nevermind, I found the pom.

ColinC
User
Posts: 67
Joined: Fri Apr 08, 2016 4:54 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by ColinC » Tue Jan 31, 2017 1:06 pm

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.
Colin Coffman
Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

shetc
User
Posts: 19
Joined: Fri Jul 20, 2012 2:46 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by shetc » Wed Feb 01, 2017 2:59 pm

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).

ColinC
User
Posts: 67
Joined: Fri Apr 08, 2016 4:54 pm

Re: sdk-rest addNoteAndAssociateWithEntity method returns DUPLICATE_VALUE - 02419504

Post by ColinC » Wed Feb 01, 2017 6:29 pm

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?
Colin Coffman
Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

Post Reply