I have been facing this issue intermittently, once in 2 weeks. As I observed, each time this issue occurs, all are due to activity Id 26. I see activity id 26 got completed successfully. Not sure why decision task is failing with the activity which got completed successfully.
"eventTimestamp": 1500668941.164,
"eventType": "WorkflowExecutionFailed
",
"eventId": 866, "workflowExecutionFailedEventAttributes":
"details":
"java.lang.IllegalArgumentException:Unknown DecisionId
[type=ACTIVITY, id=26].
The possible causes arenon-deterministic workflow definition
code orincompatible change
in the workflow definition.at: com.amazonaws.services.simpleworkflow.flow.worker.DecisionsHelper.getDecision(DecisionsHelper.java:613)
com.amazonaws.services.simpleworkflow.flow.worker.DecisionsHelper.handleActivityTaskScheduled(DecisionsHelper.java:171)
at: com.amazonaws.services.simpleworkflow.flow.worker.AsyncDecider.processEvent(AsyncDecider.java:267) com.amazonaws.services.simpleworkflow.flow.worker.AsyncDecider.decide(AsyncDecider.java:515)
at: com.amazonaws.services.simpleworkflow.flow.worker.AsyncDecisionTaskHandler.handleDecisionTask(AsyncDecisionTaskHandler.java:50)
at com.amazonaws.services.simpleworkflow.flow.worker.DecisionTaskPoller.pollAndProcessSingleTask(DecisionTaskPoller.java:201)
at com.amazonaws.services.simpleworkflow.flow.worker.GenericWorker$PollServiceTask.run(GenericWorker.java:94)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)","decisionTaskCompletedEventId": 865,
"reason": "Unknown DecisionId
[type=ACTIVITY, id=26].
The possible causes arenon-deterministic workflow definition
code or incompatible change in the workflow definition."
Any help would be appreciated.