# Class ActionNotFoundException OptimaJet.Workflow.Core.Fault.ActionNotFoundException Represents an exception raised when a workflow activity references an action that is not found in its scheme definition. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class ActionNotFoundException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - ActionNotFoundException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public ActionNotFoundException(string actionName, string activityName, string schemeCode)` Initializes a new instance of the [ActionNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActionNotFoundException/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `actionName` | `String` | The action name that was not found. | | `activityName` | `String` | The workflow activity name where the action was expected. | | `schemeCode` | `String` | The code of the workflow scheme that contains the activity. | ### Remarks The message is initialized using `Action with name '{actionName}' was not found in '{activityName}' activity '{schemeCode}' scheme.`. [Previous ParameterMapping](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/ParameterMapping/) [Next ActivityAlreadyExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActivityAlreadyExistsException/)