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

Emais not being sent_baseUrlForEmail is missing in the externalConfig file

sundas7
Regular Contributor II
Regular Contributor II

Hi experts,

We are experiencing some email related issues for one of use cases(Whenever user's secondary accounts are created,email is not going through) . We could see the Email templates(new) are configured correctly.

We have attached the new email template in Connection and also under Endpoint> New account creation >task complete

Upon checking in logs we could see the below message.

I did check the forum and there was one similar issue posted,but really could not conclude if the below configuration is actual cause of the issue ,as we are getting emails for couple of other use cases new hires etc.We do not have this baseurl in DEV either.

Masked the details here

2022-06-24 02:01:14,295 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - assignedFromRoles : null
2022-06-24 02:01:14,295 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - Processing task 557946 done
2022-06-24 02:01:14,300 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - Final status of task 557946 - 3
2022-06-24 02:01:14,303 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - Config for ARSTASKCOMPNEWPWDcom.saviynt.ecm.utility.domain.EcmConfig : ARSTASKCOMPNEWPWD
2022-06-24 02:01:14,304 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - Task Complete Email Template For New Account Password = null
2022-06-24 02:01:14,304 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - start converting accTasksMap to endpointaccTasksMap
2022-06-24 02:01:14,304 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - finished converting accTasksMap to endpointaccTasksMap
2022-06-24 02:01:14,304 [quartzScheduler_Worker-3] DEBUG services.SaviyntCommonUtilityService - Start bindBaseUrlEmailTemplate
2022-06-24 02:01:14,304 [quartzScheduler_Worker-3] DEBUG services.SaviyntCommonUtilityService - baseUrlForEmail value in externalConfig : [:]
2022-06-24 02:01:14,304 [quartzScheduler_Worker-3] DEBUG services.SaviyntCommonUtilityService - baseUrlForEmail is missing in the externalConfig file. Please add it !
2022-06-24 02:01:14,347 [quartzScheduler_Worker-3] DEBUG services.ArsTaskHelperService - taskemailtemplates = [{"emailTemplateType":"1","taskType":"3","emailTemplate":"XYZ"}]
2022-06-24 02:01:14,348 [quartzScheduler_Worker-3] DEBUG services.ArsTaskHelperService - emailTemplates for template type = 1 [3:[XYZ]]
2022-06-24 02:01:14,348 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - type: 3
2022-06-24 02:01:14,348 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - taskEmailTemplatesList size: 1
2022-06-24 02:01:14,360 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATING FROM FLD
2022-06-24 02:01:14,361 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATED FROM FLD Team'sMailbox@def
2022-06-24 02:01:14,361 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATING TO FLD
2022-06-24 02:01:14,479 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATED TO FLD null
2022-06-24 02:01:14,479 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATING CC FLD
2022-06-24 02:01:14,577 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATED CC Manager's emailaddress@def,null
2022-06-24 02:01:14,577 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATING BCC FLD
2022-06-24 02:01:14,577 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - POPULATED BCC abc@def
2022-06-24 02:01:14,669 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - List of TO email address = [null]
2022-06-24 02:01:14,669 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - List of CC email address = [Manager's emailaddress@def, null]
2022-06-24 02:01:14,669 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - List of BCC email address = [Team'sMailbox@def]
2022-06-24 02:01:14,669 [quartzScheduler_Worker-3] DEBUG services.ArsTaskService - SUBJECT POPULATED Email Template subject: Email for user ********
2022-06-24 02:01:14,702 [quartzScheduler_Worker-4] DEBUG rest.RestProvisioningService -
2022-06-24 02:01:14,702 [quartzScheduler_Worker-4] DEBUG rest.RestProvisioningService - pullObjectsByRest - responseStatusCode ::200
2022-06-24 02:01:14,703 [quartzScheduler_Worker-4] DEBUG rest.RestProvisioningService - Entered getResponseHeaders method
2022-06-24 02:01:14,752 [quartzScheduler_Worker-4] DEBUG rest.RestProvisioningService - responseError : null
2022-06-24 02:01:14,753 [quartzScheduler_Worker-4] DEBUG rest.RestProvisioningService - isAuthError: false

 

Thanks

Shyam

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

Add baseUrlForEmail   in externalconfig.properties & restart server.

 

Does to address is blank ? can you hardcode details in to body & try


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

sundas7
Regular Contributor II
Regular Contributor II

Thanks Rushikesh ..We would need to seek the approval from customer and raise CR for the same.

To address in Email template is not blank.We had given user's secondaryEmail address.

Thanks

Shyam

sahajranajee
Saviynt Employee
Saviynt Employee

Hi @sundas7 ,

This will not cause your emails to not get sent out. The thread is DEBUG for this log 'baseUrlForEmail is missing in the externalConfig file' 

Please check your email template and logs for the users for whom it does not work.


Regards,
Sahaj Ranajee
Sr. Product Specialist

sundas7
Regular Contributor II
Regular Contributor II

Thanks Sahaj and Rushikesh for your comments.

I was checking logs corresponding to one of the recently created accounts and I could see below.

So I had corrected in body of email from {account.name} to {account_name} and am waiting for new accounts to be set up so I can check if emails are triggered.

I will update the same here.

2022-07-12 01:33:24,812 [quartzScheduler_Worker-1] ERROR services.ArsTaskService  - Error while sending email - Cannot get property 'name' on null object
java.lang.NullPointerException: Cannot get property 'name' on null object