We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Throwing error for update account task

saimeghana
Regular Contributor
Regular Contributor

Hi Team,

We are using below query in our update account json, update account task are created but not getting completed,

 "userPrincipalName":"${user.customproperty1.toString().concat(user.customproperty1,'@emea.xxxxxx.test')}",

attaching the error for reference:

Error processing task of ADSI - Ambiguous method overloading for method java.lang.Exception#<init>. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.Throwable] [class java.lang.String]

Please help us to resolve this issue.

Thanks,

Saimeghana

[This post has been edited by a Moderator to remove sensitive information.]

11 REPLIES 11

SB
Saviynt Employee
Saviynt Employee

Can you try with the below once and see if it works

"userPrincipalName":"{String UPN = user.customproperty1;return UPN.concat(user.customproperty1).concat('@emea.xxxxxx.test');}"

[This post has been edited by a Moderator to remove sensitive information.]


Regards,
Sahil

saimeghana
Regular Contributor
Regular Contributor

Hi Sahil,

Update account task got completed but updates are not coming up to user.

Thanks,

Saimeghana

SB
Saviynt Employee
Saviynt Employee

Can you check in the logs if the above function did resolve to a value.


Regards,
Sahil

saimeghana
Regular Contributor
Regular Contributor

attached the error below 

{"log":"2023-03-08 17:50:04,144 [quartzScheduler_Worker-2] ERROR services.SaviyntCommonUtilityService - error in getXegerString: \n","stream":"stdout","time":"2023-03-08T17:50:04.144172555Z"}

{"log":"2023-03-08 17:50:03,820 [quartzScheduler_Worker-2] DEBUG services.HttpClientUtilityService - getHttpClient - sslSocketFactory : null\n","stream":"stdout","time":"2023-03-08T17:50:03.820081186Z"}
2023-03-08, 11:20 pm
ecm-worker
{"log":"2023-03-08 17:50:03,820 [quartzScheduler_Worker-2] DEBUG services.HttpClientUtilityService - getHttpClient - HttpClientBuilder.create().build() called.\n","stream":"stdout","time":"2023-03-08T17:50:03.820336937Z"}
2023-03-08, 11:20 pm
ecm-worker
{"log":"2023-03-08 17:50:04,135 [quartzScheduler_Worker-2] DEBUG adsi.SaviyntGroovyADSIService - Inside else of statusCode?.toString()?.startsWith(2)\n","stream":"stdout","time":"2023-03-08T17:50:04.135777834Z"}
2023-03-08, 11:20 pm
ecm-worker
{"log":"2023-03-08 17:50:04,135 [quartzScheduler_Worker-2] DEBUG adsi.SaviyntGroovyADSIService - updateAccountResponse : [:]\n","stream":"stdout","time":"2023-03-08T17:50:04.135807091Z"}
2023-03-08, 11:20 pm
ecm-worker
{"log":"2023-03-08 17:50:04,136 [quartzScheduler_Worker-2] ERROR adsi.SaviyntGroovyADSIService - Exception in update account try1 : \n","stream":"stdout","time":"2023-03-08T17:50:04.136231301Z"}

SB
Saviynt Employee
Saviynt Employee

This does not contain the attribute values. Can you search for userPrincipalName and see if the expected value is getting generated or if its another value.


Regards,
Sahil

saimeghana
Regular Contributor
Regular Contributor

Hi,

searched with UserPrincipalName, but in logs it's not showing update for my test user.

 

{"log":"2023-03-09 02:08:22,554 [quartzScheduler_Worker-5] DEBUG rest.RestUtilService - Got showLogs = true\n","stream":"stdout","time":"2023-03-09T02:08:22.554971601Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,554 [quartzScheduler_Worker-5] DEBUG adsi.SaviyntGroovyADSIService - httpParams: [objects:[[objectClasses:[user], distinguishedName:CN=NAME BESSON,OU=Comptes Actif,OU=65,OU=UTILISATEURS,OU=FR,OU=BUs,DC=emea,DC=xxxxxxtest,DC=net, moveObjectToOU:OU=Comptes Actif,OU=65,OU=UTILISATEURS,OU=FR,OU=BUs,DC=emea,DC=xxxxxxtest,DC=net, deleteAllGroups:Yes, attributes:[userPrincipalName:name.besson2@emea.xxxxxxtest.net, title:RESPONSABLE CLIENTELE ET RECRUTEMENT H/F, sn:BESSON, samaccountname:name.besson2, cn:NAME BESSON2, userAccountControl:512, company:xxxxxx MEDICAL, co:France, info:MBX, c:FR, department:CR VILLEFRANCHE, displayName:NAME BESSON, employeeID:0, employeeNumber:0, employeeType:Colleague, givenName:Name, pwdlastset:0, division:CONSO LYON, scriptPath:logon_AMS_migration.vbs, manager:CN=TestPrasam2UPD1 ConcurUPD1,OU=ES,OU=Internal,OU=StandardUsers,OU=Users,OU=AITS,OU=BUs,DC=emea,DC=xxxxxxtest,DC=net]]], connectionString:[LDAP://xxxxxxtest.net:636]]\n","stream":"stdout","time":"2023-03-09T02:08:22.554978091Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,554 [quartzScheduler_Worker-5] DEBUG adsi.SaviyntGroovyADSIService - httpContentType : application/json\n","stream":"stdout","time":"2023-03-09T02:08:22.555011509Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,554 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - isFipsEnabled = false\n","stream":"stdout","time":"2023-03-09T02:08:22.555027884Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,555 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - sslParams : null\n","stream":"stdout","time":"2023-03-09T02:08:22.555125898Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,555 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - proxyParams : null\n","stream":"stdout","time":"2023-03-09T02:08:22.555130594Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,555 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - sslSocketFactory : null\n","stream":"stdout","time":"2023-03-09T02:08:22.555133062Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,555 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - HttpClientBuilder.create().build() called.\n","stream":"stdout","time":"2023-03-09T02:08:22.555363625Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,837 [quartzScheduler_Worker-5] DEBUG adsi.SaviyntGroovyADSIService - Inside else of statusCode?.toString()?.startsWith(2)\n","stream":"stdout","time":"2023-03-09T02:08:22.837730113Z"}
2023-03-09, 07:38 am
ecm-worker
{"log":"2023-03-09 02:08:22,837 [quartzScheduler_Worker-5] DEBUG adsi.SaviyntGroovyADSIService - updateAccountResponse : [:]\n","stream":"stdout","time":"2023-03-09T02:08:22.8377621Z"}
 
[This post has been edited by a Moderator to remove sensitive information.]

Hsoumare
New Contributor III
New Contributor III

there is an error on your query please try this one 

"userPrincipalName": "${user.customproperty1}@emea.xxxxxx.test"

you dont need a concat there

[This post has been edited by a Moderator to remove sensitive information.]

saimeghana
Regular Contributor
Regular Contributor

Hi,

No, having same issue task got completed but no updated to user.

Thanks,

saimeghana

SB
Saviynt Employee
Saviynt Employee

I do see the userPrincipalName getting resolved to the value intended (userPrincipalName:name.besson2@emea.xxxxxxtest.net) in the logs. It appears the issue might be due to some other value. Just to be sure, can you define a static value for this attribute and try to provision. This will help us confirm if the issue is due to this attribute or some other.

Also do share the complete json you are using.

[This post has been edited by a Moderator to remove sensitive information.]


Regards,
Sahil

saimeghana
Regular Contributor
Regular Contributor

Hi Sahil,

The (userPrincipalName:name.besson2@emea.xxxxxxtest.net) is got updated depending on the java jar job.

This UPN is dependent on samaccount name attribute, we will update the samaccount name from user update form, so we need a query where it will Update the UPN depending on samaccount name.

Thanks,

saimeghana

[This post has been edited by a Moderator to remove sensitive information.]

timchengappa
Saviynt Employee
Saviynt Employee

Hi @saimeghana 

I understand you want to use the updated samAccountName as a substring in your UPN.  Which user or SSM account attribute is the samAccountName being reconciled/imported/mapped to?

Can you share some samples, please? With the user's samAccountName and the expected UPN for it?
cc: @SB