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

java.lang.NullPointerException: Cannot invoke method replaceAll() on null object on email gen rule

nitishdas
New Contributor
New Contributor

Hello All,

We are stuck on an issue where we are getting an error "java.lang.NullPointerException: Cannot invoke method replaceAll() on null object at com.saviynt.ecm.services.WorkflowService$_generateUserProperty_closure97.doCall(WorkflowService.groovy:8930)" for users where we are trying to trigger the email generation rule via user update rule. As per the logs it looks like the email is also getting created as required but after the below block from the logs that I can see we are getting the above error:

New PropertyName :caroline.teixeira-ext@domain.com"
"2024-05-08T05:19:45.046+00:00","ecm-worker","services.WorkflowService","quartzScheduler_Worker-6-bpbl6","DEBUG","user email check query = from Users ac where ac.email=:email and ac.id <> 233890"
"2024-05-08T05:19:45.053+00:00","ecm-worker","services.WorkflowService","quartzScheduler_Worker-6-bpbl6","DEBUG","user email property value....null"
"2024-05-08T05:19:45.053+00:00","ecm-worker","services.WorkflowService","quartzScheduler_Worker-6-bpbl6","DEBUG","userattribute email check hql = Select new Map(count(ua.data) as total) from UserAttributes ua where data=:email and ua.userkey <> 233890"

[This message has been edited by moderator to remove domain name]

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @nitishdas,

Could you please provide the email generation rule?
The email isn't being updated and seems to be null, hence you're encountering the above error.

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".