Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

REST API accounts import Missing property exception

Manju_p
New Contributor II
New Contributor II

Hi Team, 

Import accounts  through REST connector is resulting in error mentioned below. 
have enclosed AccountImportEntJSON for your reference

 "023-10-26/09:23:21.211 [{}] [quartzScheduler_Worker-3] DEBUG rest.RestProvisioningService - processAccountsFullBySequentialAndIterative - params.origParams.stageNumber : null
2023-10-26/09:23:21.212 [{}] [quartzScheduler_Worker-3] DEBUG rest.RestUtilService - Exception in RestUtilService.getSortedMap :
groovy.lang.MissingPropertyException: No such property: callOrder for class: java.lang.String
at com.saviynt.provisoning.rest.RestUtilService$11.compare(RestUtilService.groovy:1042)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1438)
at java.util.List.sort(List.java:478)"

Json path

Manju_p_0-1698312907887.png

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "suspended",
"activeStatus": [
"false"
],
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"unsuccessResponses": null,
"doNotChangeIfFailed": true,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"showJobHistory": true,
"http": {
"url": "https://XXXXXX:XXXX/_security/role_mapping",
"httpMethod": "GET",
"httpParams": {},
"properties": {
"username": "XXXX",
"password": "XXXXX"
},
"httpHeaders": {
"Accept": "application/json",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"tokenType": "Basic",
"accessToken": "Basic ABCD"
}
},
"listField": "$..rules.all[0].field",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "username~#~char",
"name": "username~#~char"
},
"disableDeletedAccounts": true
}
},
"entitlementParams": {},
"acctEntParams": {
}
}

Appreciate inputs to resolve the issue. 

 

2 REPLIES 2

nimitdave
Saviynt Employee
Saviynt Employee

@Manju_p , please try "listField": "rules.all[0].field",

Manju_p
New Contributor II
New Contributor II

Hi Nimit, 

Thanks for responding to the request. With the above mentioned update "listField": "rules.all[0].field", getting below errors. 

023-10-30/15:45:28.928 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Loading Start for Security System - ELASTIC_STACK
2023-10-30/15:45:28.928 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Finding Endpoint for the security System - ELASTIC_STACK
2023-10-30/15:45:28.935 [{}] [quartzScheduler_Worker-2] DEBUG services.ImportUtilityService - Endpoint 'ELASTIC_STACK' found for the Security System 'ELASTIC_STACK' with Endpointkey: 2585
2023-10-30/15:45:29.047 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - processAccountsFullBySequentialAndIterative - params.origParams.stageNumber : null
2023-10-30/15:45:29.049 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestUtilService - Exception in RestUtilService.getSortedMap :
groovy.lang.MissingPropertyException: No such property: callOrder for class: java.lang.String
at com.saviynt.provisoning.rest.RestUtilService$11.compare(RestUtilService.groovy:1042)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1438)
at java.util.List.sort(List.java:478)
at java.util.Collections.sort(Collections.java:177)
at com.saviynt.provisoning.rest.RestUtilService.getSortedMapByValue(RestUtilService.groovy:1056)
at com.saviynt.provisoning.rest.RestProvisioningService.processAccountsFullBySequentialAndIterative(RestProvisioningService.groovy:1540)
at com.saviynt.provisoning.rest.RestProvisioningService.importAccountsFull(RestProvisioningService.groovy:1427)
at com.saviynt.provisoning.rest.RestProvisioningService.doImport(RestProvisioningService.groovy:136)
at com.saviynt.ecm.integration.ExternalConnectionCallService.invokeExternalMethod(ExternalConnectionCallService.groovy:188)
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-10-30/15:45:29.051 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - error in isDisableDeletedAccountsFlagInCalls :
groovy.lang.MissingPropertyException: No such property: disableDeletedAccounts for class: java.lang.String
at com.saviynt.provisoning.rest.RestProvisioningService$_isDisableDeletedAccountsFlagInCalls_closure55.doCall(RestProvisioningService.groovy:10190)
at com.saviynt.provisoning.rest.RestProvisioningService.isDisableDeletedAccountsFlagInCalls(RestProvisioningService.groovy:10189)
at com.saviynt.provisoning.rest.RestProvisioningService.importAccountsFull(RestProvisioningService.groovy:1429)
at com.saviynt.provisoning.rest.RestProvisioningService.doImport(RestProvisioningService.groovy:136)
at com.saviynt.ecm.integration.ExternalConnectionCallService.invokeExternalMethod(ExternalConnectionCallService.groovy:188)
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)

 

Thanks, 

Manju