You may have received report that automation policies configured to send emails (with report data, query results, or task outputs) are not working as expected. Common symptoms include:
Automation Policies in ITMS allow administrators to automate responses to database events. Issues typically stem from three areas:
Evaluation Failures: The SQL query returns no results or fails to run.
Configuration Errors: Incorrect SMTP settings or "Max Row" limits.
Data Integrity: Tokens not resolving correctly within the email body.
This guide helps identify why a policy isn't triggering or why the email output isn't meeting expectations.
ITMS 8.7.x, 8.8.x
Automation policies in IT Management Suite (ITMS) rely on multiple interconnected components:
| Category | Description |
|---|---|
| SMTP Configuration | Incorrect SMTP server, port, authentication, or sender settings. SMP Server cannot reach the mail server or lacks permissions. |
| No Data Returned | Report/query used in email has no results at runtime. SQL Query Logic: The data class being queried hasn't been updated by the agent, resulting in empty sets. |
| Policy Misconfiguration | Incorrect schedule, targeting, or conditions. |
| Permissions Issue | Policy runs under a context without access to data. |
| Task Execution Failure | Automation policy runs but underlying task fails silently. |
| Workflow / Queue Delay | Notification processing backlog or delays. |
| Invalid Tokens / Variables | Email template variables not resolving correctly. Using illegal characters or incorrect syntax in email tokens (e.g., %results%). |
Before changing configurations, confirm whether the policy is actually generating data and attempting to send email.
| Diagnostic Step | Command / Path | Expected Output |
|---|---|---|
| Check SQL Results | Copy SQL query from policy → Run in SQL Server Management Studio (SSMS) | Results should return. If 0 rows, email will not trigger |
| Verify SMP Logs | C:\ProgramData\Symantec\SMP\Logs\aXX.log | Look for Automation Policy Execution Task, SMTP, or Mail entries |
| Test SMTP | Settings > All Settings > Notification Server > Server Settings > Email | “Send Test Email” should arrive successfully |
Tip: Many “email failures” are actually data issues (no results = no email).
Path:
Manage > Automation Policies
Scenario: Email arrives but data is missing or incorrect
Path:
Automation Policy > Actions > Edit Input Parameter
| Token | Description | Requirement |
|---|---|---|
%results% | Displays full result table | Works for all queries |
%[ColumnName]% | Displays specific column value | Requires “Run for each row” under Conditions > Evaluation Rule dropdown setting |
Tip: Avoid special characters (e.g., spaces, symbols) in SQL column aliases.
See more details under:
Automation Policy Emails are Received Blank or Missing Report Data
Scenario: Email is received but data is truncated when a Report is used
Location:
a*.logCheck if there are any errors related to the Automation Policy process in the NS logs. You should see something similar to this when the Automation Policy is triggered:Operation started: Executing automation policy ('Automation Policy name' (c4ca1bf0-3f8e-4048-9cf1-6ff566b6ff90)) ...-----------------------------------------------------------------------------------------------------Date: 4/21/2026 6:22:35 AM, Tick Count: 1032576750 (11.22:49:36.7500000), Size: 331 BProcess: w3wp (13628), Thread ID: 272, Module: Altiris.Automation.dllPriority: 4, Source: AutomationPolicy
and something like this when it is done:
Operation completed: Executing automation policy ('Automation Policy name' (c4ca1bf0-3f8e-4048-9cf1-6ff566b6ff90)), data loaded=True, total time=0:00:00.01-----------------------------------------------------------------------------------------------------Date: 4/21/2026 6:22:35 AM, Tick Count: 1032576765 (11.22:49:36.7650000), Size: 370 BProcess: w3wp (13628), Thread ID: 272, Module: Altiris.Automation.dllPriority: 4, Source: AutomationPolicy
| Log Entry | Meaning |
|---|---|
Failed to send email | SMTP/authentication issue |
AutomationPolicy.ExecutionJob | Policy execution in progress |
SMTP send failed | SMTP connectivity issue |
Task failed | Underlying execution issue |
Tip: Always correlate timestamp with policy run time.
Path:
Settings > All Settings > Notification Server > Notification Server Settings > E-mail tab > SMTP Server Settings
Policy runs under a context that cannot access SQL data
If policy triggers tasks:
After applying fixes:
| Area | What to Validate | Expected Result |
|---|---|---|
| SQL Query | Returns data | Rows present |
| SMTP | Test email works | Email received |
| Policy | Runs successfully | Execution timestamp updates |
| Tokens | Resolve correctly | Data visible in email |
| Logs | No errors | Clean execution |
| Max Rows | Not limiting data | Full dataset included |
| Permissions | Access to data | No SQL errors |
| Schedule | Aligned timing | Data available at runtime |
Automation Policy Emails are Received Blank or Missing Report Data
Automation policy based on a report does not appear to run or Send emails (KB 152251)
Automation Policies fail to send emails or run tasks (KB 179645)
Automation Policy is not sending email after the upgrade to ITMS 8.x (KB 219364)
Automation Policy emails contain raw SQL or incorrect data tokens (KB 162988)
How to troubleshoot Automation Policies that are not triggering (KB 178955)
Emails sent from Automation Policies are missing results or truncated (KB 184828)
Using the "Run for each row" option in Automation Policies (KB 152014)
Automation Policy schedule behavior and troubleshooting (KB 181792)
Identifying SMTP communication errors in Notification Server logs (KB 178901)
Best practices for creating SQL-based Automation Policies (KB 230779)
Send an E-mail with an Inline Report Using an Automation Policy