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

New User Request via ARS

JB
Regular Contributor
Regular Contributor

Hello Team,

We are creating users via ARS -- User Management -- Create User request option.

 

JB_0-1697570807860.png

While creating users if we select manager as  user who created recently its not working. If we select any user who created long back its working fine.

On analyzing the logs we can see below error message.

Anyone faced similar issue ?

Note : We have done migration recently, Whether it will cause any issue ?

*************************************************************************************************************

2023-10-18T00:35:51+05:30-ecm----java.lang.NumberFormatException: For input string: "av025aa" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:589) at java.lang.Long.parseLong(Long.java:631) at com.saviynt.ecm.services.changeaction.UserChangeActionService.saveUser(UserChangeActionService.groovy:5663) at com.saviynt.ecm.services.changeaction.UserChangeActionService.completeuserrequest(UserChangeActionService.groovy:9574) at com.saviynt.ecm.services.ArsTaskService.createTask(ArsTaskService.groovy:3835) at com.saviynt.ecm.services.ArsTaskService.createTask(ArsTaskService.groovy:3301) at com.saviynt.workflowmgt.grantaccess.doaccess(grantaccess.groovy:32) at com.saviynt.workflowmgt.grantaccess$_createAccess_closure2.doCall(grantaccess.groovy:152) at com.saviynt.workflowmgt.grantaccess.createAccess(grantaccess.groovy:104) at org.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:184) at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.invokeMethod(ObjectDescriptor.java:209) at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:76) at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15) at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632) at org.jbpm.pvm.internal.model.op.TransitionEndActivity.perform(TransitionEndActivity.java:56) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632) at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:430) at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:416) at org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:201) at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:65) at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:32) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42) at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45) at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:49) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56) at org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:96) at com.saviynt.ecm.services.WorkflowService$_dosignoff_closure81.doCall(WorkflowService.groovy:6851) at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:814) at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:714) at com.saviynt.ecm.services.WorkflowService.dosignoff(WorkflowService.groovy:6349) at com.saviynt.ecm.services.WorkflowService.approveRequest(WorkflowService.groovy:21524) at com.saviynt.ecm.workflow.WorkflowmanagementController$_closure24.doCall(WorkflowmanagementController.groovy:906) at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53) at com.saviynt.webservice.SaviyntRestAuthenticationFilter.doFilter(SaviyntRestAuthenticationFilter.groovy:155) 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.lang.Thread.run(Thread.java:750)

*************************************************************************************************************

Regards,

JB

6 REPLIES 6

sk
All-Star
All-Star

@JB : Provided information is not enough to identify the issue. In logs I see "av025aa" what is this? where did you input this value? Looks like issue with data type or something like that.

Also can you explain how you are populating data in Supervisor and Manager Username (This is auto filled)? Are these two fields mapped to any user attribute columns?


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

rushikeshvartak
All-Star
All-Star

Share dynamic attribute config for Supervisor field


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

JB
Regular Contributor
Regular Contributor

@rushikeshvartak  @sk 

Please find the below screen shot

JB_0-1697617469192.png

If we select particular users as managers its working fine but not for all. We have tried to compare the users  , it looks same even though users are not getting created. We have tried by creating new users but same issue. 

Is there  can be any issue like users are not synched property ? any platform issue ?

Regards,

JB

@JB : Manager column store the userkey of the manager, But you are assigning username to a key column which is why you are getting this error. Please change the mapping from manager to owner and that should fix the issue.

If it is working for certain users then I would assume their username is may be just numeric which might be matching with key of any user?


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

Dhruv_S
Saviynt Employee
Saviynt Employee

@JB 

As per the logs uploaded above, below error is being observed.

-java.lang.NumberFormatException: For input string: "av025aa

It seems that the datatype of the field for which the value "av025aa" is being passed into a field which is of numeric type. 

Have you tried the above suggestion by @sk ? Please confirm if it help resolve the issue.

Regards,

Dhruv Sharma

DixshantValecha
Saviynt Employee
Saviynt Employee

Hi @JB,

It seems that you are facing an issue while creating users via ARS – User Management – Create User request option. You mentioned that if you select a manager as a user who created recently, it’s not working. However, if you select any user who created long back, it works fine. You also mentioned that on analyzing the logs, you can see the error message “java.lang.NumberFormatException: For input string: “av025aa””.

This error message indicates that there is an issue with the format of the input string. Specifically, the string “av025aa” cannot be converted to a number format. This error can occur when a string is passed to a method as an argument that cannot be converted to a numeric value.

Have you tried the above suggestion by @sk ? Please confirm if it help resolve the issue.