

# ScheduleActivityTaskFailedEventAttributes
<a name="API_ScheduleActivityTaskFailedEventAttributes"></a>

Provides the details of the `ScheduleActivityTaskFailed` event.

## Contents
<a name="API_ScheduleActivityTaskFailedEventAttributes_Contents"></a>

 ** activityId **   <a name="SWF-Type-ScheduleActivityTaskFailedEventAttributes-activityId"></a>
The activityId provided in the `ScheduleActivityTask` decision that failed.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: Yes

 ** activityType **   <a name="SWF-Type-ScheduleActivityTaskFailedEventAttributes-activityType"></a>
The activity type provided in the `ScheduleActivityTask` decision that failed.  
Type: [ActivityType](API_ActivityType.md) object  
Required: Yes

 ** cause **   <a name="SWF-Type-ScheduleActivityTaskFailedEventAttributes-cause"></a>
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.  
If `cause` is set to `OPERATION_NOT_PERMITTED`, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see [Using IAM to Manage Access to Amazon SWF Workflows](https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html) in the *Amazon SWF Developer Guide*.
Type: String  
Valid Values: `ACTIVITY_TYPE_DEPRECATED | ACTIVITY_TYPE_DOES_NOT_EXIST | ACTIVITY_ID_ALREADY_IN_USE | OPEN_ACTIVITIES_LIMIT_EXCEEDED | ACTIVITY_CREATION_RATE_EXCEEDED | DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED | DEFAULT_TASK_LIST_UNDEFINED | DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED | DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED | DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED | OPERATION_NOT_PERMITTED`   
Required: Yes

 ** decisionTaskCompletedEventId **   <a name="SWF-Type-ScheduleActivityTaskFailedEventAttributes-decisionTaskCompletedEventId"></a>
The ID of the `DecisionTaskCompleted` event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.  
Type: Long  
Required: Yes

## See Also
<a name="API_ScheduleActivityTaskFailedEventAttributes_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/swf-2012-01-25/ScheduleActivityTaskFailedEventAttributes) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/swf-2012-01-25/ScheduleActivityTaskFailedEventAttributes) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/swf-2012-01-25/ScheduleActivityTaskFailedEventAttributes) 