Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

ImportUserJson failing with Multicall

AshishDas
Regular Contributor II
Regular Contributor II

Hi,

We are running the Import User Json and have used multicall in the user import but it executes call 1 repeatedly (4 times) and does not execute call 2.

In postman we can hit both the urls separately though

Given below is the Import user json.

{
"type": "multiCall",
"call": [
{
"name": "call1",
"connection": "userAuth",
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"url": "*******",
"httpMethod": "POST",
"httpHeaders": {
"contentType": "application/json",
"Authorization": "${access_token}"},
"colsToPropsMap": {
"username": "username~#~char",
"statuskey": "statuskey~#~char",
"country": "country~#~char",
"customproperty31": "companyall~#~char",
"customproperty6": "address~#~char",
"customproperty1": "DNValue~#~char",
"customproperty10": "OrgUnit~#~char",
"displayname": "displayname~#~char",
"customproperty21": "PIN~#~char",
"customproperty17": "EmailPrefix~#~char"},
"errorCode":"400,401,403,404,405,412",
"errorCodePath":"errorCode",
"userResponsePath": "results"
},
{
"name": "call2",
"connection": "userAuth",
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"url": "********",
"httpMethod": "POST",
"httpHeaders": {
"contentType": "application/json",
"Authorization": "${access_token}"},
"colsToPropsMap": {
"username": "username~#~char",
"customproperty2": "LocationType~#~char",
"customproperty18": "description~#~char",
"customproperty19": "PlantName~#~char",
"customproperty20": "SBUCODE~#~char",
"customproperty25": "SBU~#~char",
"customproperty10": "OrgUnit~#~char",
"customproperty13": "division~#~char",
"customproperty29": "domain~#~char"},
"errorCode":"400,401,403,404,405,412",
"errorCodePath":"errorCode",
"userResponsePath": "results"
}
]
}

 

2 REPLIES 2

DixshantValecha
Saviynt Employee
Saviynt Employee

I appreciate you reaching out to the Saviynt forums.

It's possible that the issue may be related to the configuration of your multicall request. Here are a few things you can check:

  1. Check the response of call 1: Make sure that call 1 is returning a success response (status code 200-205) and that the response contains the expected values. If call 1 is returning an error response, it may be causing the import to fail.

  2. Check the logs:Check the logs or error messages for any issues related to the execution of the multicall.

  3. Try swapping the order of the calls: Swap the order of the calls and see if call 2 is executed instead of call 1. This will help you determine if the issue is with call 1 or with the multiCall configuration.

  4. Ensure that the API endpoint URLs are correct and accessible.
  5. Check if the request payload for both API calls is correct and valid.
  6. Verify that the userAuth connection is configured properly and that the access token is being retrieved successfully.

Please let us know if further information is needed on this.

AshishDas
Regular Contributor II
Regular Contributor II

Hi Dixshant,

Thanks for the detailed information.

Now both the calls are getting executed but the last call (call2) gets executed multiple times. What could be causing this error?

 

Error :

ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"\u0009at org.quartz.core.JobRunShell.run(JobRunShell.java:199)\n" stream:"stdout" time:"2023-03-03T19:22:30.989992092Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"\u0009at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)\n" stream:"stdout" time:"2023-03-03T19:22:30.989994415Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"2023-03-03 19:22:30 989 [quartzScheduler_Worker-1] DEBUG services.ImportSAvDataUserService - This is duplicate user 13254820 before setting the dirtyMap\n" stream:"stdout" time:"2023-03-03T19:22:30.989999266Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"2023-03-03 19:22:30 989 [quartzScheduler_Worker-1] DEBUG services.ImportSAvDataUserService - propNamesTemp = [savUpdateDate savUpdateDate]\n" stream:"stdout" time:"2023-03-03T19:22:30.990002448Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"2023-03-03 19:22:30 991 [quartzScheduler_Worker-1] DEBUG services.ImportSAvDataUserService - Exception in setUserData\n" stream:"stdout" time:"2023-03-03T19:22:30.991376692Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"groovy.lang.MissingPropertyException: No such property: mappingContext for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication\n" stream:"stdout" time:"2023-03-03T19:22:30.991385251Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"Possible solutions: mainContext\n" stream:"stdout" time:"2023-03-03T19:22:30.991389116Z"}"
ecm-worker 2023-03-03T19:22:36.420+00:00 {log":"\u0009at com.saviynt.ecm.services.ImportSAvDataUserService.setUserData(ImportSAvDataUserService.groovy:3527)\n" stream:"stdout" time:"2023-03-03T19:22:30.991392672Z"}"