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

SAV4SAV(REST) - ImportUserJSON throwing -Error No signature of method: java.lang.String.keySet()

IAM_99
Regular Contributor II
Regular Contributor II

Hi All,
We are using SAV4SAV REST connector - in ImportUserJSON calling Analytics to get data and mapping, below is json

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

{"connection": "acctAuth",
"url": "https://xxxxxxxx/ECM/api/v5/fetchRuntimeControlsData",
"httpMethod": "POST",
"httpParams": "{\"analyticsname\":\"UC_USERS\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "USERNAME~#~char",
"customproperty18": "CUSTOMPROPERTY18~#~char"
},
"userResponsePath": "result"
}

its throwing below error

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Got Webservice API Response: [error:Error No signature of method: java.lang.String.keySet() is applicable for argument types: () values: []
2023-10-11T15:08:52-05:00-ecm-worker----Possible solutions: toSet(), toSet(), next(), next(), center(java.lang.Number), getAt(groovy.lang.Range)]
2023-10-11T15:08:52-05:00-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-10-DEBUG-pullObjectsByRest - responseStatusCode ::null

 

 

any idea/inputs on the above issue ?

 

thanks,

suresh

4 REPLIES 4

stalluri
Regular Contributor II
Regular Contributor II

curl --location -g --request POST '{{url}}/ECM/{{path}}/fetchRuntimeControlsData' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"analyticsid": "11",
"max": "10",
"offset": "0",
"loggedinuser": "admin",
"attributes": {
"manager": "******",
"username": "Sam" }
}'


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

IAM_99
Regular Contributor II
Regular Contributor II

Hello @stalluri 

It works fine in POSTMAN & Sc2

 

Thanks,

@IAM_99 : Did you try to map to any default attribute instead of CP18 to see if CP is causing any issue?


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

IAM_99
Regular Contributor II
Regular Contributor II

Hi All, below  was missing in JSON caused issue.

"httpContentType": "application/json", 

 

Thanks,