Skip to content
Marketing Automation

Marketing Automation

Discover more in every scroll

  • Home
  • About Myself
  • Consultation
  • Trainings
  • Contact
  • Guides
    • AmpScript Guide
  • Blogs
    • Dataviews
    • Synchronized Data Extensions
    • Email Studio

Salesforce Marketing Cloud Data Views: _AutomationInstance (Automation Studio)

Posted on March 29, 2025March 30, 2025 by admin

The _AutomationInstance data view in Salesforce Marketing Cloud (SFMC) provides a detailed look at how your automations are performing. It’s essential for reviewing execution results, diagnosing issues, and improving the reliability and efficiency of automation processes in Automation Studio.

This blog explains each field in the _AutomationInstance data view, outlines real-world use cases, and provides SQL query examples to help you manage automation health and avoid process failures.


What is the _AutomationInstance Data View?

The _AutomationInstance data view returns execution data about each automation run across your account. It logs the schedule, start/end times, execution status, triggering details, and error messages (if any). It’s a go-to resource for operational reporting and troubleshooting automation failures.

Key Benefits of _AutomationInstance Data View

  • Track Automation Runs: Monitor every execution instance across all BUs.
  • Error Diagnostics: Investigate failure causes and error details.
  • Schedule Review: View actual run vs. scheduled run times.
  • Efficiency Optimization: Spot long-running or skipped automations.

Fields in _AutomationInstance Data View & Their Uses

FieldTypeDescription & Use Case
MemberIDNumberBusiness Unit ID. Used for multi-BU reporting.
AutomationNameText(400)The name of the automation. Core identifier for business reporting.
AutomationCustomerKeyTextUnique key used to reference the automation (for joins and APIs).
AutomationDescriptionText(400)Optional description of the automation. Useful for documentation.
AutomationTypeText(50)How the automation is triggered: Schedule, File Drop, or Trigger.
AutomationNotificationRecipient_CompleteText(500)Email address receiving completion notifications.
AutomationNotificationRecipient_ErrorText(500)Email address for error alerts. Useful for alerting setups.
AutomationNotificationRecipient_SkipText(500)Email address for skipped automation alerts.
AutomationStepCountNumberNumber of steps in the automation. Useful for complexity analysis.
AutomationInstanceIDText(50)Unique ID of the individual automation run. Used in joins with _AutomationActivityInstance.
AutomationInstanceIsRunOnceBooleanWhether the automation is one-time (1) or recurring (0).
FilenameFromTriggerText(4000)File name that triggered the automation (for file drop or trigger types). Useful for troubleshooting.
AutomationInstanceScheduledTime_UTCDateScheduled start time. Useful for schedule validation.
AutomationInstanceStartTime_UTCDateActual time the automation started. Enables latency analysis.
AutomationInstanceEndTime_UTCDateActual end time. Useful for tracking execution duration.
AutomationInstanceStatusText(400)Final status of the automation run: QueuedFile, Initialized, Executing, Stopped, Complete, or Error.
AutomationInstanceActivityErrorDetailsText(4000)First error message logged for the run. Crucial for diagnosing failed automations.

When and Why to Use _AutomationInstance Data View?

When to Use?

  • To monitor execution status of automations.
  • To audit timing vs. actual run.
  • When diagnosing automation errors.
  • To review performance of scheduled vs. triggered workflows.

Why Use It?

  • Prevent Failures: Identify long-running or errored automations.
  • Ensure Accountability: Track notification recipients and schedules.
  • Optimize Operations: Detect inefficiencies or skipped runs.
  • Enable Alerting: Build automation health dashboards.

10 Example Scenarios and Queries

1. Retrieve All Completed Automations in Last 7 Days

SELECT AutomationName, AutomationInstanceStartTime_UTC, AutomationInstanceEndTime_UTC 
FROM _AutomationInstance 
WHERE AutomationInstanceStatus = 'Complete' 
AND AutomationInstanceStartTime_UTC >= DATEADD(day, -7, GETDATE())

Use Case: Report on recent successful executions.

2. Find Failed Automation Runs

SELECT AutomationName, AutomationInstanceStartTime_UTC, AutomationInstanceActivityErrorDetails 
FROM _AutomationInstance 
WHERE AutomationInstanceStatus = 'Error'

Use Case: Troubleshoot error patterns across workflows.

3. Track Long-Running Automations

SELECT AutomationName, DATEDIFF(minute, AutomationInstanceStartTime_UTC, AutomationInstanceEndTime_UTC) AS Duration 
FROM _AutomationInstance 
WHERE AutomationInstanceEndTime_UTC IS NOT NULL 
ORDER BY Duration DESC

Use Case: Identify slow-performing automation runs.

4. View Automation Run Counts by Status

SELECT AutomationInstanceStatus, COUNT(*) AS RunCount 
FROM _AutomationInstance 
GROUP BY AutomationInstanceStatus

Use Case: Health overview across all automations.

5. Upcoming Scheduled Automations

SELECT AutomationName, AutomationInstanceScheduledTime_UTC 
FROM _AutomationInstance 
WHERE AutomationInstanceScheduledTime_UTC > GETDATE()

Use Case: Forecast and monitor upcoming processes.

6. Join with _AutomationActivityInstance for Error Breakdown

SELECT a.AutomationName, aa.ActivityName, aa.ActivityStatus, aa.ErrorMessage 
FROM _AutomationInstance a 
JOIN _AutomationActivityInstance aa 
ON a.AutomationInstanceID = aa.AutomationInstanceID 
WHERE a.AutomationInstanceStatus = 'Error'

Use Case: Pinpoint step-level failures.

7. Find File Triggered Automations and Files

SELECT AutomationName, FilenameFromTrigger 
FROM _AutomationInstance 
WHERE AutomationType = 'File Drop'

Use Case: Trace automation back to uploaded files.

8. Automations with Most Steps

SELECT AutomationName, AutomationStepCount 
FROM _AutomationInstance 
ORDER BY AutomationStepCount DESC

Use Case: Analyze complexity of automation designs.

9. Recently Skipped Automations

SELECT AutomationName, AutomationInstanceStatus, AutomationInstanceScheduledTime_UTC 
FROM _AutomationInstance 
WHERE AutomationInstanceStatus = 'Stopped'

Use Case: Review non-executed or skipped automations.

10. Weekly Automation Health Summary

SELECT CAST(AutomationInstanceStartTime_UTC AS DATE) AS RunDate, AutomationInstanceStatus, COUNT(*) AS TotalRuns 
FROM _AutomationInstance 
WHERE AutomationInstanceStartTime_UTC >= DATEADD(day, -7, GETDATE()) 
GROUP BY CAST(AutomationInstanceStartTime_UTC AS DATE), AutomationInstanceStatus

Use Case: Build a dashboard showing weekly trends.


Conclusion

The _AutomationInstance data view is your best friend when it comes to auditing, debugging, and optimizing automations in Salesforce Marketing Cloud. Use it in combination with _AutomationActivityInstance to drill down into step-level performance and build operational dashboards for error tracking and process efficiency.


Posted in Blogs, DataviewsTagged _AutomationInstance explained, automation error logs SFMC, Marketing Cloud automation failure diagnosis, Marketing Cloud automation status tracking, Salesforce file drop automation logs, Salesforce Marketing Cloud, SFMC _AutomationInstance data view, SFMC automation health monitoring, SFMC automation performance, SFMC automation run analysis, SFMC email alert automation status, SFMC scheduled automation report, SFMC SQL automation reporting

Post navigation

Previous: Salesforce Marketing Cloud Data Views: _JourneyActivity (Journey Builder)
Next: Salesforce Marketing Cloud Data Views: _AutomationActivityInstance (Automation Studio)

About Myself

Suhas Ganjare

Suhas Ganjare

CRM and Digital Consultant

Suhas Ganjare is a passionate cricketer, Salesforce Marketing Cloud Developer & Consultant, and a skilled Salesforce Certified Data Cloud Consultant. With expertise in Eloqua Marketing Automation, Salesforce Administration, and digital marketing, Suhas has built a diverse career helping businesses streamline and elevate their marketing strategies. An accomplished professional, Suhas combines technical proficiency with creative insight to deliver data-driven campaigns and automation solutions that drive meaningful engagement. Beyond his professional pursuits, Suhas is an author and an avid sports enthusiast, finding inspiration and balance on the cricket field.

Trending Topics

  • Salesforce Marketing Cloud Email Studio: Complete Guide to Layouts for Email Templates
  • Salesforce Marketing Cloud Email Studio: Complete Guide to Email Templates
  • Salesforce Marketing Cloud Email Studio – Full Guide to Content Builder Blocks
  • πŸ” What is a Template-Based Email in SFMC?
  • Email Studio and Content Builder – Marketing Cloud Basics Explained

Related Posts

  • Blogs
  • Dataviews
5 min read

Salesforce Marketing Cloud Data Views: _Job

  • admin
  • March 29, 2025
  • Blogs
3 min read

The Future of Real-Time Marketing: Salesforce Marketing Cloud Personalisation (MCP) Updates

  • admin
  • January 11, 2025
  • Blogs
  • Dataviews
4 min read

Salesforce Marketing Cloud Data Views: _SocialNetworkTracking

  • admin
  • March 29, 2025
  • Blogs
  • Email Studio
4 min read

Salesforce Marketing Cloud Email Studio – Full Guide to Content Builder Blocks

  • admin
  • April 5, 2025
Copyright © 2025 Marketing Automation