Skip to content
Home » Automation Activity Instance (Data View)

Automation Activity Instance (Data View)

This Data View will get you more insights in the specific activities performed by your automations. If you want to analyze the performance of the individual activities, this is the Data View you want.

Combined with the Automation Instance Data View, you will be able to perfect your automations and prevent long running jobs or failing steps.

This Data View holds data about the activities in recently ran automations, their status, when and how long it ran and why a run failed. The data in Automation Activity Instance is available for automations that ran in the past 31 days and has a 24-hour delay.

You can query the data in the data view from an automation, from the Query Studio or from an API.

Fields

Field nameTypeNullableOptionsDescription
MemberIDNumberNoID of the Business Unit.
AutomationNameTextNoName of the automation.
AutomationCustomerKeyTextNoID of the automation.
AutomationInstanceIDTextNoID of the specific automation run.
ActivityTypeNumberNoSee list ↓Type of the activity.
ActivityNameTextNoName of the activity.
ActivityDescriptionTextYesDescription of the activity.
ActivityCustomerKeyTextNoID of the activity.
ActivityInstanceStepTextNoStep/location of the activity within the automation.
ActivityInstanceIDTextNoID of the specific activity run.
ActivityInstanceStartTime_UTCDateYesDatetime the activity started.
If run was skipped, value is null.
ActivityInstanceEndTime_UTCDateYesDatetime the activity finished.
If run was skipped or still running, value is null.
ActivityInstanceStatusTextNo– Initialized
– Executing
– Complete
– Error
– NotSelected
Status of the activity at time of query.
ActivityInstanceStatusDetailsTextYesError message from log.

Activity Type IDs

Type IDName
33SMS Activity
42Send Email
43Import File
45Refresh Group
53File Transfer
73Data Extract
84Report Definition
300SQL Query
303Filter
423Script
425Data Factory Utility Activity
426Refresh Segment Template
427Publish Audience
467Wait
724Refresh Mobile Filtered List
725Send SMS
726Import Mobile Contacts
733Journey Builder Event Activity
736Send Push
749Fire Event
771Salesforce Email Send
772Mobile Connect Send Salesforce Sync Subscriber
783Send GroupConnect
952Journey Builder Event Activity
1000Verification
1010Interaction Studio Data
1101Interactions
1701Batch Personalization
3700Contact to Business Unit Mapping

Sample queries

Activity duration

Monitor activities to spot long running queries or scripts.

SELECT ActivityCustomerKey AS [ID]
      , AutomationName AS [Automation Name]
      , ActivityName AS [Activity Name]
      , AVG(Datediff(minute, ActivityInstanceStartTime_UTC, ActivityInstanceEndTime_UTC)) AS [AvgDuration]
      , MIN(Datediff(minute, ActivityInstanceStartTime_UTC, ActivityInstanceEndTime_UTC)) AS [MinDuration]
      , MAX(Datediff(minute, ActivityInstanceStartTime_UTC, ActivityInstanceEndTime_UTC)) AS [MaxDuration]
FROM [_AutomationActivityInstance]
GROUP BY ActivityCustomerKey,AutomationName,ActivityName

More reading and learning? Check this out…