# OpcClient.TranslatePath Method

> Reference: Translates a path starting from the root node using the pathElements specified.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcClient</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcClient Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

<span class="api-meta">12 overloads · since v2.18</span>

| Overload | Description |
|---|---|
| [TranslatePath(params OpcName\[\])](#translatepath-opc-uafx-opcname-array)<span class="api-meta">since v2.18</span> | Translates a path starting from the root node using the `pathElements` specified. |
| [TranslatePath(IEnumerable&lt;OpcName&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-system-collections-generic-ienumerable-of-opc-uafx-opcname)<span class="api-meta">since v2.18</span> | Translates a path starting from the root node using the `pathElements` specified. |
| [TranslatePath(OpcNodeId, params OpcName\[\])](#translatepath-opc-uafx-opcnodeid-opc-uafx-opcname-array)<span class="api-meta">since v2.18</span> | Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed. |
| [TranslatePath(OpcNodeId, IEnumerable&lt;OpcName&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcname)<span class="api-meta">since v2.18</span> | Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed. |
| [TranslatePath(params OpcRelativePathElement\[\])](#translatepath-opc-uafx-opcrelativepathelement-array)<span class="api-meta">since v2.18</span> | Translates a path starting from the root node using the `pathElements` specified. |
| [TranslatePath(IEnumerable&lt;OpcRelativePathElement&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-system-collections-generic-ienumerable-of-opc-uafx-opcrelativepathelement)<span class="api-meta">since v2.18</span> | Translates a path starting from the root node using the `pathElements` specified. |
| [TranslatePath(OpcNodeId, params OpcRelativePathElement\[\])](#translatepath-opc-uafx-opcnodeid-opc-uafx-opcrelativepathelement-array)<span class="api-meta">since v2.18</span> | Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed. |
| [TranslatePath(OpcNodeId, IEnumerable&lt;OpcRelativePathElement&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcrelativepathelement)<span class="api-meta">since v2.18</span> | Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed. |
| [TranslatePath(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-system-string)<span class="api-meta">since v2.18</span> | Translates the `path` starting from the root node. |
| [TranslatePath(OpcNodeId, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-opc-uafx-opcnodeid-system-string)<span class="api-meta">since v2.18</span> | Translates the `path` starting from the node identified by the `nodeId` specified. |
| [TranslatePath(OpcNodeId, OpcRelativePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-opc-uafx-opcnodeid-opc-uafx-opcrelativepath)<span class="api-meta">since v2.18</span> | Translates the `path` starting from the node identified by the `nodeId` specified. |
| [TranslatePath(OpcTranslatePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/translatepath#translatepath-opc-uafx-opctranslatepath)<span class="api-meta">since v2.18</span> | Translates a path starting from a dedicated node using the `command` specified. |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ObjectDisposedException](https://learn.microsoft.com/dotnet/api/system.objectdisposedexception) | The object has been disposed of. |
| [OpcException](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexception/) | The service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) and [BadTooManyOperations](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanyoperations). |

## TranslatePath(params OpcName\[\])

<span class="api-meta">since v2.18</span>

Translates a path starting from the root node using the `pathElements` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(params OpcName[] pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(ParamArray pathElements As OpcName()) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | An array of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(IEnumerable&lt;OpcName&gt;)

<span class="api-meta">since v2.18</span>

Translates a path starting from the root node using the `pathElements` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(IEnumerable<OpcName> pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    pathElements As IEnumerable(Of OpcName)) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)&gt; | A sequence of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcNodeId, params OpcName\[\])

<span class="api-meta">since v2.18</span>

Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(OpcNodeId nodeId, params OpcName[] pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    ParamArray pathElements As OpcName()) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | An array of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcNodeId, IEnumerable&lt;OpcName&gt;)

<span class="api-meta">since v2.18</span>

Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(
    OpcNodeId nodeId,
    IEnumerable<OpcName> pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    pathElements As IEnumerable(Of OpcName)) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)&gt; | A sequence of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) objects representing the value of the [BrowseName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#browsename) attribute of the nodes to visit to translate the last [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(params OpcRelativePathElement\[\])

<span class="api-meta">since v2.18</span>

Translates a path starting from the root node using the `pathElements` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(params OpcRelativePathElement[] pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    ParamArray pathElements As OpcRelativePathElement()) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | params [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)[] | An array of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(IEnumerable&lt;OpcRelativePathElement&gt;)

<span class="api-meta">since v2.18</span>

Translates a path starting from the root node using the `pathElements` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(IEnumerable<OpcRelativePathElement> pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    pathElements As IEnumerable(Of OpcRelativePathElement)) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)&gt; | A sequence of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcNodeId, params OpcRelativePathElement\[\])

<span class="api-meta">since v2.18</span>

Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(
    OpcNodeId nodeId,
    params OpcRelativePathElement[] pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    ParamArray pathElements As OpcRelativePathElement()) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | params [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)[] | An array of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcNodeId, IEnumerable&lt;OpcRelativePathElement&gt;)

<span class="api-meta">since v2.18</span>

Translates a path starting from the node identified by the `nodeId` specified using the `pathElements` passed.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(
    OpcNodeId nodeId,
    IEnumerable<OpcRelativePathElement> pathElements)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    pathElements As IEnumerable(Of OpcRelativePathElement)) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `pathElements`. |
| `pathElements` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/)&gt; | A sequence of [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) objects representing the translation directives of the nodes to visit to translate the last [OpcRelativePathElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepathelement/) item in `pathElements` to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `pathElements` were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `pathElements` or one of its items is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `pathElements` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(string)

<span class="api-meta">since v2.18</span>

Translates the `path` starting from the root node.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(string path)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(path As String) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `path` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A [string](https://learn.microsoft.com/dotnet/api/system.string) representing a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `path` was translated to or a null reference (Nothing in Visual Basic) if the `path` could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `path` is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `path` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcNodeId, string)

<span class="api-meta">since v2.18</span>

Translates the `path` starting from the node identified by the `nodeId` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(OpcNodeId nodeId, string path)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(nodeId As OpcNodeId, path As String) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `path`. |
| `path` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A [string](https://learn.microsoft.com/dotnet/api/system.string) representing a [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `path` was translated to or a null reference (Nothing in Visual Basic) if the `path` could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `path` is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `path` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcNodeId, OpcRelativePath)

<span class="api-meta">since v2.18</span>

Translates the `path` starting from the node identified by the `nodeId` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeId TranslatePath(OpcNodeId nodeId, OpcRelativePath path)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    path As OpcRelativePath) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node on which the service will translate the `path`. |
| `path` | [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) | The [OpcRelativePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrelativepath/) to the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) requested by the service. |

**Returns**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

The target identifier the `path` was translated to or a null reference (Nothing in Visual Basic) if the `path` could not translated.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `path` is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `path` specified. |

**Remarks**

Known results for this method are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |

## TranslatePath(OpcTranslatePath)

<span class="api-meta">since v2.18</span>

Translates a path starting from a dedicated node using the `command` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcTranslatePathResult TranslatePath(OpcTranslatePath command)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function TranslatePath(
    command As OpcTranslatePath) As OpcTranslatePathResult
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `command` | [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) | The [OpcTranslatePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepath/) instance to process. |

**Returns**

[OpcTranslatePathResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepathresult/)

An instance of the [OpcTranslatePathResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepathresult/) class which contains the target identifier the path has been translated to through the `command` specified; together with information about the outcome of the processed command.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `command` is a null reference (Nothing in Visual Basic). |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) | The translate path service is currently not supported, especially using the `command` specified. |

**Remarks**

Known results for the `command` specified are:

| Status | Description |
|---|---|
| [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid) | For more details see [BadNodeIdInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidinvalid). |
| [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown) | For more details see [BadNodeIdUnknown](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnodeidunknown). |
| [BadNothingToDo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnothingtodo) | This code indicates that the relativePath contained an empty list. |
| [BadBrowseNameInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badbrowsenameinvalid) | This code indicates that a TargetName was missing in a RelativePath. |
| [UncertainReferenceOutOfServer](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#uncertainreferenceoutofserver) | The path element has targets which are in another server. |
| [BadTooManyMatches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badtoomanymatches) | The requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code. |
| [BadQueryTooComplex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badquerytoocomplex) | The requested operation requires too many resources in the server. |
| [BadNoMatch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badnomatch) | The requested relativePath cannot be resolved to a target to return. |
