ViewLocalizer missing while invoking 't' after updating OC from 2.2.1 to 3.0.1
Author: DotCat1985Created Sep 20, 2026Updated Sep 24, 2026
This bug happens after updating OrchardCore from 2.2.1 to 3.0.1. When I launch a workflow, where "Email Task" > "HTML Body" has the following expression:
{{ "Name" | t }}
I receive the following fault exception:
20:02:55||OrchardCore.Workflows.Services.WorkflowManager|Error|An unhandled error occurred while executing an activity. Workflow ID: '65'. Activity: '449b2r2hmttyzxg7zqj5qqbw41', 'EmailTask'. Putting the workflow in the faulted state.
System.ArgumentException: ViewLocalizer missing while invoking 't'
at OrchardCore.DisplayManagement.Liquid.Filters.LiquidViewFilters.ThrowArgumentException[T](String message)
at OrchardCore.DisplayManagement.Liquid.Filters.LiquidViewFilters.Localize(FluidValue input, FilterArguments arguments, TemplateContext ctx)
at Fluid.Ast.FilterExpression.EvaluateAsync(TemplateContext context)
at Fluid.Ast.OutputStatement.<WriteToAsync>g__Awaited|7_0(ValueTask`1 t, TextWriter w, TextEncoder enc, TemplateContext ctx)
at Fluid.Parser.FluidTemplate.Awaited(ValueTask`1 task, TextWriter writer, TextEncoder encoder, TemplateContext context, IReadOnlyList`1 statements, Int32 startIndex)
at OrchardCore.Workflows.Expressions.LiquidWorkflowExpressionEvaluator.RenderTemplateAsync(IFluidTemplate template, TemplateContext templateContext, TextEncoder encoder)
at OrchardCore.Workflows.Expressions.LiquidWorkflowExpressionEvaluator.EvaluateAsync[T](WorkflowExpression`1 expression, WorkflowExecutionContext workflowContext, TextEncoder encoder)
at OrchardCore.Email.Workflows.Activities.EmailTask.ExecuteAsync(WorkflowExecutionContext workflowContext, ActivityContext activityContext)
at OrchardCore.Workflows.Services.WorkflowManager.ExecuteWorkflowAsync(WorkflowExecutionContext workflowContext, ActivityRecord activity)This situation did not happen in OrchardCore 2.2.1.
Source: OrchardCMS/OrchardCore