and more in a single search tool across platforms. Read the announcement here. |
12/08/2022 01:23 AM
Hi Team,
We have Java program to update few user cpXX properties, upon userupdate rule condition matches.(custom action- java class method)
Code logic has below
1. Calculate CP20 values ( Cp18+ Cp17+"Sales")
2. using REST api - updateUser()
Its working for 20 users (import) , if its goes beyond ( for ex: 50 , 200) , its copying duplicate values into cp20 attribute.
Username - Cp20
~~~~~~~~~~~~~~~~~~~~~~~~
User01 - ABC+XYZ+Sales
User02 - PQR+YZ+Sales
User03 - ZMR+OYZ+Sales
User04 - ZhR+OtZ+Sales
........
if its 100 users - its making duplicates
User01 - ABC+XYZ+Sales
User02 -ABC+XYZ+Sales
User03 - ZMR+OYZ+Sales
User04 - ZMR+OYZ+Sales
if we run same same program local ( IDE tool) with 100 users in for loop , its working, we are looping through for loop. when we import 100 users , i guess saviynt also call some kind of loop.
not sure it is race condition or mutli threading causing issue ?
any inputs on the above ?
12/08/2022 07:00 AM
Which api is used ?
12/08/2022 10:10 PM
We are using updateUser() api , but the issue is not with that api as the values getting passed is ( java program) getting updated.
Java program is working for 140 Users import ( same firstname, and lastname) but if its goes beyond that it generates duplicates and update like above.
12/09/2022 04:43 AM
It seems race condition do you see any parameters set on no of users to be processed in externalconfig
12/09/2022 08:13 AM
we have modified to 1000 still its creating duplicates.
12/09/2022 08:19 AM
Did you restarted server
12/09/2022 08:43 AM
yes 2 times
12/09/2022 10:51 AM
Did you changed 150 to 1000 ? first config