# Class ParameterAlreadyExistsException OptimaJet.Workflow.Core.Fault.ParameterAlreadyExistsException Represents an exception thrown when a workflow parameter with the same name is already present in a scheme. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class ParameterAlreadyExistsException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - ParameterAlreadyExistsException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public ParameterAlreadyExistsException(string parameterName, string schemeCode)` Initializes a new instance of the [ParameterAlreadyExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ParameterAlreadyExistsException/) class for a duplicate parameter name in the specified workflow scheme. ### Parameters | Name | Type | Description | | --- | --- | --- | | `parameterName` | `String` | The name of the parameter that already exists in the scheme. | | `schemeCode` | `String` | The workflow scheme code that already contains this parameter. | ### Remarks The exception message is initialized using `Parameter with name '{parameterName}' already exists in '{schemeCode}' scheme.` [Previous InvalidParameterValueException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/InvalidParameterValueException/) [Next ParameterNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ParameterNotFoundException/)