Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Email Template Conflict Count

cgarwood
New Contributor III
New Contributor III

I am trying to set up an email template for analytics that includes the report name, report description, and conflict count. The analytic returns 42 rows, but it will not send the email out if I am including ${ANALYTICSDATA.size()} in the body of the email. If I remove it, the email sends fine. Can anyone see what I am doing wrong? Body text I am using:

Results for: 
${analyticsConfig.analyticsName}

Row Count: 
${ANALYTICSDATA.size()}

Report Description:
${analyticsConfig.description}

5 REPLIES 5

Saathvik
All-Star
All-Star

@cgarwood : Do you find any error in logs? Can you please share the logs?


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

cgarwood
New Contributor III
New Contributor III

@Saathvik I didn't find any error in the logs, and I don't want to upload logs here due to the potential for sensitive data to be shared by mistake.

The row count attribute is causing the failure for sure though. If I remove ${ANALYTICSDATA.size()} from the body message, it will send as expected. The analytic itself is not failing, either. It runs and generates a record in run history that I can view, so the failure is only in sending the email and only when I am trying to generate a row count.

Does anything with my syntax above look incorrect? I copy/pasted directly from the documentation, so I am not understanding why it is failing. Can someone try the snipped I pasted above and confirm whether its working for them?

@cgarwood : I have validated this, yes it is not working getting below error

groovy.lang.MissingPropertyException: No such property: ANALYTICSDATA for class: SimpleTemplateScript2071 at SimpleTemplateScript2071.run(SimpleTemplateScript2071.groovy:3) at com.saviynt.ecm.analytics.AnalyticsESService.notifyEmailToOwner(AnalyticsESService.groovy:2663) at com.saviynt.ecm.analytics.AnalyticsESService.emailAction(AnalyticsESService.groovy:16509) at com.saviynt.ecm.analytics.AnalyticsESService.doFileArchivalAndSendEmail(AnalyticsESService.groovy:14690) at com.saviynt.ecm.analytics.AnalyticsESService$_runControl_closure210_closure318.doCall(AnalyticsESService.groovy:14523) at com.saviynt.ecm.analytics.AnalyticsESService$_runControl_closure210.doCall(AnalyticsESService.groovy:14522) at java.lang.Thread.run(Thread.java:750)


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

use ${totalRecords}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

This worked, thank you for the guidance.