# ActivityTaskFailed but workflow got completed

**URL:** https://community.temporal.io/t/activitytaskfailed-but-workflow-got-completed/11252
**Category:** Community Support
**Tags:** go-sdk
**Created:** [March 5, 2024, 7:12pm UTC](https://community.temporal.io/t/activitytaskfailed-but-workflow-got-completed/11252 "2024-03-05T19:12:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ajay\_Police\_Patil](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ajay_police_patil/32/5044_2.png) [@Ajay\_Police\_Patil](https://community.temporal.io/u/Ajay_Police_Patil)
#### Post date: [March 5, 2024, 7:12pm UTC](https://community.temporal.io/t/activitytaskfailed-but-workflow-got-completed/11252/1 "2024-03-05T19:12:40Z")

</div>

I have multiple activities running in my workflow. And In each activity i’m making gRPC calls.  
After successful completion of First activity, in second activity it is getting failed as the gRPC calls are not yet implemented but added in proto files.

In UI, i’m able to see ActivityTaskFailed for second activity, but the overall Workflow is getting Completed instead of Failed

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [March 5, 2024, 11:30pm UTC](https://community.temporal.io/t/activitytaskfailed-but-workflow-got-completed/11252/2 "2024-03-05T23:30:27Z")

</div>

How do you handle the error returned from the activity Future?

---

<div class="post-metadata">

### Author: ![Ajay\_Police\_Patil](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ajay_police_patil/32/5044_2.png) [@Ajay\_Police\_Patil](https://community.temporal.io/u/Ajay_Police_Patil)
#### Post date: [March 6, 2024, 7:31pm UTC](https://community.temporal.io/t/activitytaskfailed-but-workflow-got-completed/11252/3 "2024-03-06T19:31:13Z")

</div>

```auto
   var temp ts.tempStruct
	err := workflow.ExecuteActivity(wctx, (*activity.UserActivities).Activity1, messageID, inputStruct).Get(wctx, &temp)
	if err != nil {
		errMsg := fmt.Sprintf("messageID: %v, workflowID: %v, failed to execute Activity 1 : %v", messageID, workflowID, err.Error())
		workflow.GetLogger(wctx).Error(errMsg)
		return err
	}

	err = workflow.ExecuteActivity(wctx, (*activity.UserActivities).Activity2, messageID, temp).Get(wctx, &temp)
	if err != nil {
		errMsg := fmt.Sprintf("messageID: %v, workflowID: %v, failed to execute Activity 2 : %v", messageID, workflowID, err.Error())
		workflow.GetLogger(wctx).Error(errMsg)
		return err
	}

    err = workflow.ExecuteActivity(wctx, (*activity.UserActivities).Activity3, messageID, temp).Get(wctx, &temp)
	if err != nil {
		errMsg := fmt.Sprintf("messageID: %v, workflowID: %v, failed to execute Activity 3 : %v", messageID, workflowID, err.Error())
		workflow.GetLogger(wctx).Error(errMsg)
		return err
	}

```

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [March 6, 2024, 9:55pm UTC](https://community.temporal.io/t/activitytaskfailed-but-workflow-got-completed/11252/4 "2024-03-06T21:55:45Z")

</div>

Could you post the history of the workflow?
