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

email generation rule error

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 2 2020 at 08:09 UTC

Hi team,


When I create a new user with same name as an existing user with generate email, it throws ArrayIndexOutOfBoundsException, I have configured the following email generation rule in advanced config. If the first one exists.

Can you please check if the config is right or is it some other issue?


Config -


case when (users.departmentname='dept1') then concat(users.firstname,'.',users.lastname,'@company.com') else concat(users.firstname,'.',users.lastname,'@comp.com') end ### case when (users.departmentname='dept1') then concat(users.firstname,'.',users.lastname,'1@company.com') else concat(users.firstname,'.',users.lastname,'1@comp.com') end ### case when (users.departmentname='dept1') then concat(users.firstname,'.',users.lastname,'2@company.com') else concat(users.firstname,'.',users.lastname,'2@comp.com') end


Error -


2020-11-01 22:33:13,468 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - New PropertyName :Peter.Berg@vhi.ie

2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - Email Peter.Berg@vhi.ie exists so ignoring rule (ADV:case when (users.departmentname='Swiftcare') then concat(users.firstname,'.',users.lastname,'@vhiswiftcare.ie') else concat(users.firstname,'.',users.lastname,'@vhi.ie') end)

2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - Evaluating Rule :: ADV:

2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - spclChars-

2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - rule-ADV:

2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - ruleFilters-[ruletype:EMAIL]

2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - specialChars-@._-

2020-11-01 22:33:13,472 [https-jsse-nio-443-exec-185] ERROR errors.GrailsExceptionResolver - ArrayIndexOutOfBoundsException occurred when processing request: [POST] /ECM/users/uploaduserfinalstep

Stacktrace follows:

java.lang.ArrayIndexOutOfBoundsException

2020-11-01 22:33:13,476 [https-jsse-nio-443-exec-185] ERROR error.ErrorController - Exception

org.codehaus.groovy.grails.web.errors.GrailsWrappedRuntimeException

at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)

at com.saviynt.webservice.SaviyntRestAuthenticationFilter.doFilter(SaviyntRestAuthenticationFilter.groovy:145)

at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)

at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)

at com.mrhaki.grails.plugin.xframeoptions.web.XFrameOptionsFilter.doFilterInternal(XFrameOptionsFilter.java:69)

at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.ArrayIndexOutOfBoundsException

2020-11-01 22:33:27,320 [https-jsse-nio-443-exec-233] DEBUG domain.FlatViewJobcontrolController - ecmjobIdQuery .. select max(eij.JOBID) as 'JobId' from EcmImportJob eij where eij.TRIGGERNAME in (select qrt.TRIGGER_NAME from qrtz_triggers qrt) group by eij.TRIGGERNAME

2020-11-01 22:33:27,334 [https-jsse-nio-443-exec-233] DEBUG domain.FlatViewJobcontrolController - jobIdList size = 34

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
4 REPLIES 4

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 3 2020 at 04:01 UTC

Hi Sakshi, What is the version you are using?


Thanks

Ajay

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 3 2020 at 08:18 UTC

Its 5.5 SP3

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 4 2020 at 08:58 UTC

Hi Sakshi, Request you to please create a support ticket for the issue.


Thanks

Ajay

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on February 25 2022 at 11:03 UTC

Hi Team,


We are also facing Array index out of bound when trying to generate email using advance query, Could you please guide how this issue was resolved.


Thanks,

Sitarasmi

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.