10/25/2023 02:05 PM
Hello, need assistance in building Accounts_Import_Json for retrieving Accounts and Account -entitlement mapping in single call.
Here is the sample response from Postman:
10/26/2023 03:25 PM - edited 10/26/2023 03:25 PM
You can refer the SOAP Documentation on examples of JSON construction.'
11/01/2023 09:09 AM
Tried with below JSON but getting error - "Error parsing parameter ACCOUNTS_IMPORT_JSON:
java.lang.NumberFormatException: For input string: "N""
ACCOUNTS_IMPORT_JSON:
{
"CONNECTION": "accountsImport",
"REQUESTXML": "***********************************",
"REQUESTPARAMS": {
"Content-Type": "text/xml",
"SOAPAction": "***************************************"},
"RESPONSEDATAPATH": "Body.GetUserRoleAssignmentsResponse.GetUserRoleAssignmentsResult.UserRoleAssignments.UserRoleEntity.children()",
"ACCOUNTMAPPING": "Name:@User,accountID:@User",
"ENTITLEMENTMAPPING": {
"Roles": "@Roles.string"
}
}
11/07/2023 12:59 PM
Can someone assist me on this??
11/07/2023 01:32 PM
There appears to be an issue with your JSON format. You can follow the below documentation for sample format and fix it accordingly.
11/07/2023 01:46 PM
Thanks for the response Sahil. I referenced Scenario 9 from the link you sent, which is Accounts & Entitlements in Single call but still getting same error. Here is the JSON i tried with:
{
"CONNECTION": "accountsImport",
"REQUESTTYPE":"EACHACCOUNT",
"RECONCILIATIONFIELD":"NAME",
"REQUESTXML": "***********************************",
"REQUESTPARAMS": {
"Content-Type": "text/xml",
"SOAPAction": "***************************************"},
"RESPONSEDATAPATH": "Body.GetUserRoleAssignmentsResponse.GetUserRoleAssignmentsResult.UserRoleAssignments.UserRoleEntity.children()",
"ACCOUNTMAPPING": "Name:@User,accountID:@User",
"ENTITLEMENTMAPPING": {
"Roles": "@Roles.string"
}
}
Error:
[quartzScheduler_Worker-3] DEBUG provisoning.SoapProvisioningService - Error parsing parameter ACCOUNTS_IMPORT_JSON:
java.lang.NumberFormatException: For input string: "N"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.valueOf(Integer.java:766)
at com.saviynt.provisoning.SoapProvisioningService$_initializeConnectionForImport_closure3.doCall(SoapProvisioningService.groovy:396)
at com.saviynt.provisoning.SoapProvisioningService.initializeConnectionForImport(SoapProvisioningService.groovy:334)
at com.saviynt.provisoning.SoapProvisioningService.doImport(SoapProvisioningService.groovy:107)
at com.saviynt.ecm.integration.ExternalConnectionCallService.invokeExternalMethod(ExternalConnectionCallService.groovy:224)
at SapImportJob.execute(SapImportJob.groovy:109)
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
2023-11-07 21:41:46,747 [quartzScheduler_Worker-3] DEBUG provisoning.SoapProvisioningService - End Initializing Connection Parameters...
2023-11-07 21:41:46,747 [quartzScheduler_Worker-3] DEBUG provisoning.SoapProvisioningService - Error - Error parsing parameter ACCOUNTS_IMPORT_JSON - For input string: "N"
2023-11-07 21:41:46,751 [quartzScheduler_Worker-3] DEBUG provisoning.SoapProvisioningService - Dropping temp tables
11/07/2023 02:08 PM - edited 11/07/2023 02:12 PM
Can you share the complete log file once of the job run time. Also, can you confirm if you re able to make the call from SOAP UI. Can you also share the dump of the call from SOAP UI
11/07/2023 02:15 PM