SAP Knowledge Base Article - Public

3417683 - Not able to fetch username of a new hire using getUserNameOfNewlyHiredEmployee API - Onboarding

Symptom

Unable to fetch the internal username between MPH and Pre Day 1, the getUserNameOfNewlyHiredEmployee  API call fails with error message: 
org.apache.camel.RuntimeCamelException: com.sap.gateway.core.ip.component.exceptions.OData4Exception: (OLE0001) The URI is malformed.
[HTTP/1.1 400 ], cause: org.apache.olingo.client.api.communication.ODataClientErrorException: (OLE0001) The URI is malformed. [HTTP/1.1 400 ]
  

Environment

  • SAP SuccessFactors Onboarding
  • SAP SuccessFactors Platform

Reproducing the Issue

  1. Using an API tool 
  2. Run this get queue mentioned in implementation guide
  3. Fetching the Username of a New Hire | SAP Help Portal
  4. It fails with error org.apache.camel.RuntimeCamelException: com.sap.gateway.core.ip.component.exceptions.OData4Exception: (OLE0001) The URI is malformed
    [HTTP/1.1 400 ], cause: org.apache.olingo.client.api.communication.ODataClientErrorException: (OLE0001) The URI is malformed. [HTTP/1.1 400 ]
     

Cause

Incorrect Request URL format.

Resolution

The Request URL format should be as displayed below:

https://localhost:8080/odatav4/onboarding/AdditionalServices.svc/getUserNameOfNewlyHiredEmployee(userId='2011024364')

See Also

Fetching the Username of a New Hire | SAP Help Portal 

Keywords

getUserNameOfNewlyHiredEmployee, API, OBD, OBX, PLT , KBA , LOD-SF-OBX-ACC , Accessibility , Problem

Product

SAP SuccessFactors Onboarding 2305 ; SAP SuccessFactors Platform all versions