Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
We are integrating with Oracle HCM via Rest ConnectionType and trying to invoke 2 calls in the userImport to get user's additional details like Location.
We are able to make a successful call with hardcode values (LocationId and username) in the call2, but we are unable to fetch LocationId and PersonNumber based on the call1 response.
call1 url: https://<<url>>/hcmRestApi/resources/11.13.18.05/workers to get the user details. Based on the call1 response (customproperty45-LocationId, username-PersonNumber) we have to make another call to get the location details.
We tried ${userIdentifier} and ${PersonNumber} in the call2 to get the username ex-> "username": "${userIdentifier}~#~char" and to get the LocationId we tried with ${LocationId}, ${customproperty45} but none worked.
Note: Call2 won't accept username in the url/payload and doesn't return username as a part of the response.
Error Log: Got Webservice API Response: [error:Error Illegal character in query at index 117: https://<<url>>/hcmRestApi/resources/11.13.18.05/locations?q=LocationId=${LocationId}] 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-3-jmhtj-DEBUG-pullObjectsByRest - responseStatusCode ::null 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-3-jmhtj-DEBUG-Got showLogs = true 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-3-jmhtj-DEBUG-Got null response statusCode with erroMsg - [error:Error Illegal character in query at index 117: https://<<url>>/hcmRestApi/resources/11.13.18.05/locations?q=LocationId=${LocationId}] 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-3-jmhtj-ERROR-Exception in getting response in pullObjectsByRest : 2024-08-20T15:58:03-04:00-ecm-worker--null-jmhtj--java.lang.Exception: NullResponseFromTarget at com.saviynt.provisoning.rest.RestUtilService.checkForErrorMsg(RestUtilService.groovy:1463) at com.saviynt.provisoning.rest.RestProvisioningService.pullObjectsByRest(RestProvisioningService.groovy:4551) at com.saviynt.provisoning.rest.RestProvisioningService.getUsersData(RestProvisioningService.groovy:11836) at com.saviynt.provisoning.rest.RestProvisioningService$_importUsers_closure19_closure101.doCall(RestProvisioningService.groovy:2953) at com.saviynt.provisoning.rest.RestProvisioningService$_importUsers_closure19.doCall(RestProvisioningService.groovy:2944) at com.saviynt.provisoning.rest.RestProvisioningService.importUsers(RestProvisioningService.groovy:2935) at com.saviynt.ecm.integration.ExternalConnectionCallService.importUserUsingExternalConnection(ExternalConnectionCallService.groovy:1251) at UserImportJob.execute(UserImportJob.groovy:108) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546) 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-3-jmhtj-DEBUG-Got showLogs = true 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-3-jmhtj-DEBUG-Got showLogs = true 2024-08-20T15:58:02-04:00-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-3-jmhtj-DEBUG-Error while getting User Import response for url- https://<<url>>/hcmRestApi/resources/11.13.18.05/locations?q=LocationId=${LocationId} is: null
Any suggestions for resolving this issue would be appreciated!
Got Webservice API Response: [error:Error Illegal character in query at index 117: https://<<url>>/hcmRestApi/resources/11.13.18.05/locations?q=LocationId=${call1.response.workRelationships[0].assignments[0].LocationId}] 2024-08-20T21:51:00-04:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-12-jmhtj-DEBUG-Got null response statusCode with erroMsg - [error:Error Illegal character in query at index 117: https://<<url>>/hcmRestApi/resources/11.13.18.05/locations?q=LocationId=${call1.response.workRelationships[0].assignments[0].LocationId}] 2024-08-20T21:51:00-04:00-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-12-jmhtj-DEBUG-Error while getting User Import response for url- https://<<url>>/hcmRestApi/resources/11.13.18.05/locations?q=LocationId=${call1.response.workRelationships[0].assignments[0].LocationId} is: null