# Signal received but activity was not performed\[JAVA\]

**URL:** https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484
**Category:** Community Support
**Tags:** java-sdk
**Created:** [September 10, 2024, 11:20am UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484 "2024-09-10T11:20:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![2909sanjay](https://avatars.discourse-cdn.com/v4/letter/2/ce73a5/32.png) [@2909sanjay](https://community.temporal.io/u/2909sanjay)
#### Post date: [September 10, 2024, 11:20am UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/1 "2024-09-10T11:20:19Z")

</div>

Hi Team,

I have few activities planned in my workflow,  
Today the after receiving first activity signal, the first activity failed due to expected error and all retries were exhausted  
Now second activity signal was received but I see the workflow task was scheduled and the error I get is of the same 1st activity which failed  
Problem: 2nd activity is not started even if signal was received  
How to make sure the even if 1 activity fails after all retries, the workflow can continue with other activities successfully?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/5/5e8c5b5917630e47b324ce18be5775f727c129a7.png)  
Here in above screen signal for 1st activity failed at 17 and workflow error was seen at 20 and 2nd activity signal was received at 21 but still the error on 24 and 20 are same. Why is 2nd activity not invoked even after receiving signal  
Please help me fix this. Thank you.

---

<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: [September 10, 2024, 4:54pm UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/2 "2024-09-10T16:54:51Z")

</div>

What is the error inside the WorkflowTaskFailed event?

---

<div class="post-metadata">

### Author: ![2909sanjay](https://avatars.discourse-cdn.com/v4/letter/2/ce73a5/32.png) [@2909sanjay](https://community.temporal.io/u/2909sanjay)
#### Post date: [September 11, 2024, 6:41am UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/6 "2024-09-11T06:41:19Z")

</div>

“message”: "Failure handling event 19 of type ‘EVENT\_TYPE\_WORKFLOW\_TASK\_STARTED’ during execution. {WorkflowTaskStartedEventId=19, CurrentStartedEventId=19}  
“message”: “WorkflowTask: failure executing SCHEDULED-\>WORKFLOW\_TASK\_STARTED, transition history is [CREATED-\>WORKFLOW\_TASK\_SCHEDULED]”,  
“message”: “Activity with activityType=‘FetchFullData’ failed: ‘Activity task failed’. scheduledEventId=15, startedEventId=16, activityId=73b53541-2a3c-3222-a631-ba25152df7a7, identity=‘1@oem-integration-service-deployment-55845bf8c6-v7w2h’, retryState=RETRY\_STATE\_MAXIMUM\_ATTEMPTS\_REACHED”,  
“applicationFailureInfo”: {  
“type”: “com.kmbl.cb.vlos.oem\_integration\_service.error.OEMException”  
}  
},  
“applicationFailureInfo”: {  
“type”: “java.lang.RuntimeException”  
}  
},  
“applicationFailureInfo”: {  
“type”: “io.temporal.internal.statemachines.InternalWorkflowTaskException”  
}  
@maxim Above are the contents from the same  
activity 1 fails and exhausts all its retries, so after activity 2 signal is received it should work right??? activity 2 should start instead at #24 it explains again why activity 1 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: [September 11, 2024, 3:42pm UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/7 "2024-09-11T15:42:07Z")

</div>

It looks like the workflow code is throwing “com.kmbl.cb.vlos.oem\_integration\_service.error.OEMException”. Throwing an unknown exception fails the workflow task.

---

<div class="post-metadata">

### Author: ![2909sanjay](https://avatars.discourse-cdn.com/v4/letter/2/ce73a5/32.png) [@2909sanjay](https://community.temporal.io/u/2909sanjay)
#### Post date: [September 12, 2024, 6:05am UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/8 "2024-09-12T06:05:41Z")

</div>

@maxim True at the event of activity failure we throw a custom exception which extends to Runtime Exception, so as per your comment the workflow will work if we catch the exception and do nothing[or just log the error] in the method @Override  
public void executeWorkflow

---

<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: [September 12, 2024, 4:58pm UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/9 "2024-09-12T16:58:20Z")

</div>

Throw an [ApplicationFailure](https://github.com/temporalio/sdk-java/blob/0d7ae22fe5b437e103f8d4f100fb71704352ac87/temporal-sdk/src/main/java/io/temporal/failure/ApplicationFailure.java#L74) if you want the workflow to fail.

---

<div class="post-metadata">

### Author: ![2909sanjay](https://avatars.discourse-cdn.com/v4/letter/2/ce73a5/32.png) [@2909sanjay](https://community.temporal.io/u/2909sanjay)
#### Post date: [September 13, 2024, 6:31am UTC](https://community.temporal.io/t/signal-received-but-activity-was-not-performed-java/13484/10 "2024-09-13T06:31:38Z")

</div>

@maxim on the contrary I do not want the workflow to fail so I think I should not throw the exception which will lead workflow to continue with other activities even if any one of the activities fail
