Error assigning task to user from Tasklist

Hi,

I’m having a problem in a multi-tenancy scenario when trying to assign a task. I saw some similar old issues in the forum, but the problem doesn’t look to be the same.

To clarify, I’m starting a new instance of the process, a job worker does its work, and the user task is reached.

The screen shows a confusing message when I try to assign it to me about a problem accessing the service, and the logs show the next message:

io.camunda.zeebe.client.api.command.ProblemException: Failed with code 404: 'Not Found'. Details: 'class ProblemDetail {
    type: about:blank
    title: NOT_FOUND
    status: 404
    detail: Command 'ASSIGN' rejected with code 'NOT_FOUND': Expected to assign user task with key '2251799813687717', but no such user task was found
    instance: /zeebe/v2/user-tasks/2251799813687717/assignment
}'

The task is a Zeebe user task as you can see in the image:

And the task id is the same as shown in Operate:

{
	"flowNodeType": "USER_TASK",
	"flowNodeId": "Activity_SelectWorkflow",
	"startDate": "2025-04-03 23:42:26",
	"eventId": "2251799813687702_2251799813687715",
	"formKey": 2251799813687652,
	"action": "",
	"changedAttributes": [],
	"assignee": "",
	"userTaskKey": 2251799813687717,
	"variables": {},
	"candidateGroups": [
		"Release managers"
	],
	"candidateUsers": [],
	"tenantId": "cicd",
	"endDate": null,
	"jobDeadline": null,
	"incidentErrorType": null,
	"incidentErrorMessage": null,
	"flowNodeInstanceKey": "2251799813687715"
}

This happens with all the users. I created a user with all the possible permissions to discard a permission related problem. It has access to all tenants, all authorizations and all the roles.

I tried, also, to remove the Candidate groups configured for the task, but the same result was achieved.

Does anyone have any clue about the problem with this?

Regards,
Rodrigo

Hi @crodrigo - how are you attempting to assign the task? Using an API call? Or are you seeing that message inside Tasklist when you click the “Assign” button?

I have tried in three ways:

  • Using Tasklist UI, a generic error message is shown (service unreacheable), but reviewing the logs I found the message in my post.
  • Using Tasklist REST API, but I receive that this API can’t be used. The reason for this is that a used Zeebe User Task as recommended, because job worker user tasks are going to be deprecated, and the API to be used is the Zeebe API.
  • Using Zeebe API, and I receive the same message that appears in the Tasklist log.

Today I tried another thing: I changed the user tasks to job workers user tasks. Now it works ok, but it’s not the solution because they will be deprecated in next versions.
Right now it is not a problem because I’m doing a proof of concept, but the final processes user tasks shouldn’t be created this way.

@crodrigo - what version of Camunda are you running, and how have you deployed it? Can you share your configuration?

That looks like it’s the same issue as in Command 'ASSIGN' rejected with code 'NOT_FOUND': Expected to assign user task with key, but no such user task was found

2 Likes

Thank you @nathan.loding, GotnOGuts give the key to resolve this issue in this answer: Error assigning task to user from Tasklist - #5 by GotnOGuts

I’m sorry I didn’t find the post he mention before.

Hi @GotnOGuts,

Thanks, the post you linked resolved my problem. I’m sorry I didn’t find that post before writing.

2 Likes

@crodrigo No worries about not finding it!
I just cross referenced it, because they looked like the same issue. That thread wasn’t “Solved” when I sent the pointer

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.