sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

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

sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby shetc » Thu Jan 26, 2017 3:39 pm

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 update a candidate entity with the call:

Code: Select all

UpdateResponse response = bhData.updateEntity(e);


where e is an instance of com.bullhornsdk.data.model.entity.core.standard.Candidate that I retrieved using the findEntity method.

However, I am getting the following error message:

Code: Select all

com.bullhornsdk.data.exception.RestApiException: {
  "errorMessage" : "error persisting an entity of type: Candidate",
  "errors" : [ {
    "detailMessage" : "missing required property: userType",
    "propertyName" : "userType",
    "severity" : "ERROR",
    "type" : "MISSING_REQUIRED_PROPERTY"
  } ],
  "entityName" : "Candidate"
}


Please tell me the recommended solution for this issue.

Thanks,

Steve Hiller
Senior Analyst/Programmer

Randstad USA
2050 Spectrum Blvd
Fort Lauderdale, FL 33309
954.308.8230 (o)
Steve.Hiller@randstadusa.com......
http://www.randstad.com

gwillmottBH
User
Posts: 88
Joined: Tue Apr 12, 2016 10:34 am

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby gwillmottBH » Thu Jan 26, 2017 6:19 pm

Hello Steve,

This is Greg from Bullhorn Enterprise Support.

Candidates should have the usertype ID set to 35.

Let me know if you have any other questions.

Thank you,
Greg
Greg Willmott
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
100 Summer St., 17th Floor, Boston, MA 02210
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

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

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby shetc » Thu Jan 26, 2017 6:43 pm

Hey Gregg!

Not sure how to set the usertype ID to 35.

gwillmottBH
User
Posts: 88
Joined: Tue Apr 12, 2016 10:34 am

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby gwillmottBH » Mon Jan 30, 2017 3:08 pm

Hello Steve,

I have escalated this to our Engineering Team for further review. I will follow up with you as soon as I have another update.

Thank you,
Greg
Greg Willmott
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
100 Summer St., 17th Floor, Boston, MA 02210
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

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

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby shetc » Tue Jan 31, 2017 5:45 pm

I have found the problem and solution.

otesdev
User
Posts: 10
Joined: Fri May 19, 2017 11:39 am

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby otesdev » Wed Jun 07, 2017 3:02 pm

hi, can you share what you did to solve the issue ? I am having the same issue

otesdev
User
Posts: 10
Joined: Fri May 19, 2017 11:39 am

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby otesdev » Fri Jun 09, 2017 8:34 am

Follow up of my question earlier, I was able to do this if I just used straight JSON and assign the value to 35 as suggested by Bullhorn support:
"userType" : {
"id" : 35
}
however I am using the SDK and I do not see how to do this because the Candidate class does not have method setUserType(int val)
Can somebody form Bullhorn support help me out ?

otesdev
User
Posts: 10
Joined: Fri May 19, 2017 11:39 am

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby otesdev » Thu Jun 15, 2017 8:52 am

I found this issue in the bullhorn-sdk-res github: https://github.com/bullhorn/sdk-rest/issues/141
with no answer as well. I am not sure how people can use this sdk with fundamental flaw like this (or is it me that just do not understand how this work?)
I did a test by adding the UserType attribute and getter/setter to the Candidate class and it works. I am able to update the Candidate. But that means I need to fork their project. I wish Bullhorn can just fix this sdk or tell us all on how to do this properly.

gwillmottBH
User
Posts: 88
Joined: Tue Apr 12, 2016 10:34 am

Re: sdk-rest updateEntity method for candidate returns "missing required property: userType" - 02416717

Postby gwillmottBH » Tue Jun 20, 2017 9:06 am

Hello otesdev,

This forum is for API issues, the issue you are reporting is with our SDK. The GIT link you posted is the proper place to report issues with the SDK. I will follow up with the Development team today to see why these posts are not being responded too.

The team that works on issues reported through this forum are only be able to provide answers to issues that are related to our APIs, not our REST SKD.

I will edit this post when I have an update from the team that monitors the issues posted to Github.

Thank you,
Greg
Greg Willmott
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
100 Summer St., 17th Floor, Boston, MA 02210
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)


Return to “REST API”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests