UpdateWorkflowExecution operation is disabled on this namespace

Hi all.

I am running into this error with the dotnet-sdk:
UpdateWorkflowExecution operation is disabled on this namespace

Which happens with I try to call a update method:

        [WorkflowUpdate]
        public async Task UpdateApprovalRequest(bool approved) =>
            this.approved = approved;

I am calling it with:

await handle.ExecuteUpdateAsync(wf => wf.UpdateApprovalRequest(true));

How do I update the namespace to allow workflow updates to function correctly?

I am running the latest Temporal in docker on my local machine.

Thanks.

i believe you need to set this env var for the container frontend.enableUpdateWorkflowExecution=true

Thank you.

Adding it to the env for the container did not work. I had to add it to the dynamic config file:

frontend.enableUpdateWorkflowExecution:
  - value: true
    constraints: {}
1 Like

adding to dynamic update file worked for me too

Can it be enabled in Temporal Cloud?