Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/2024.5/16660 oracle parameters and command exception changes #130

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e51dfd6
Add 2024.3 files and update config
cortex-td Feb 12, 2024
22667a4
Feature/16568 PowerShell, Microsoft 365, Loops, Logs & SSH first pass…
cortex-sg Feb 27, 2024
73c9688
Updated documentation for data types related to HTTP, files and folde…
cortex-sg Feb 28, 2024
0c87525
Feature/16596 data decisions dictionaries exceptions (#109)
cortex-av Feb 29, 2024
3f222fd
16605 exceptions, 2024.3 (#112)
cortex-av Mar 5, 2024
62b7917
dateandtime-text-exceptions-collections (#116)
cortex-sg Mar 6, 2024
ad0daaf
added microsoft365 data type properties (#108)
cortex-sg Mar 6, 2024
a2d1d3a
Added properties to the HTTP data types
cortex-sg Mar 18, 2024
a33181a
Fix up table markdown syntax
cortex-sg Mar 18, 2024
e126adc
Added OracleParameter, OracleParameters and CommandException.
Cortex-MT Mar 28, 2024
8dcafad
Added OracleMappingType, and updated other files slightly.
Cortex-MT Apr 3, 2024
262028c
Updated OracleMappingType
Cortex-MT Apr 4, 2024
97806b3
Made changes to Data data-types
Cortex-MT Apr 10, 2024
d0e17ae
Updated IParameter and IParameters.
Cortex-MT Apr 11, 2024
415083f
Merge branch 'main' of https://github.com/CortexIntelligentAutomation…
Cortex-MT Apr 11, 2024
b5f0067
Updated Blog links
Cortex-MT Apr 11, 2024
f1e73d5
feature/2024.3/16660-oracle-parameters-and-command-exception-changes …
Cortex-MT Apr 15, 2024
e9492d0
Merge remote-tracking branch 'origin/2024.5' into feature/2024.5/1666…
Cortex-MT Apr 15, 2024
4ca0166
Added Oracle docs to 2024.5
Cortex-MT Apr 15, 2024
f32f4cb
Merge remote-tracking branch 'origin/main' into feature/2024.5/16660-…
cortex-td Apr 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/en/blog/releases/2024.X/2024.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ Affected Components:

The following [Blocks][] have been improved as part of this release of the platform:

* [Execute Data Command][ExecuteDataCommand] - Two new parameter types have been added for requests made to Oracle data sources: OracleParameter and OracleParameters. These allow for specifying the type and direction of the parameter, and provides the capability for processes like passing large data sets (CLOB) to an Oracle stored procedure.
* [Execute Data Command][ExecuteDataCommand] - Two new parameter types have been added for requests made to Oracle data sources: [OracleParameter][] and [OracleParameters][]. These allow for specifying the type and direction of the parameter, and provides the capability for processes like passing large data sets (CLOB) to an Oracle stored procedure.
* [Log Event][LogEventBlock] - has been improved to use the new log format used throughout the platform

Affected Components:
Expand Down Expand Up @@ -728,3 +728,5 @@ Any changes to these forecasts will be announced via the [News channel][].

[ProblemDetails]: {{< url path="RFC.ProblemDetails" version="2024.3" >}}
[2024.1]: {{< url path="Cortex.Blogs.Releases.2024.1.MainDoc" version="2024.3" >}}
[OracleParameters]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameters.MainDoc" >}}
[OracleParameter]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameter.MainDoc" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The exception thrown when any command execution has resulted in an exception bei

### Connection Failed {#1000}

The connection to the data source failed.
An [Error Code][] of `1000` indicates the connection to the data source failed.

#### Message Format

Expand All @@ -39,7 +39,7 @@ More information on why the value is invalid, or instruction on how to provide a

### Statement {#2000}

The statement(s) used could not be parsed.
An [Error Code][] of `2000` indicates the statement(s) used could not be parsed.

#### Message Format

Expand All @@ -58,7 +58,7 @@ More information on why the value is invalid, or instruction on how to provide a

### Incompatible Statement Type (Oracle Only) {#2001}

An [OracleBlockStatement][] has been used in the [Command Property][CommandProperty] when using a [Command][] or [Commands][] data type.
An [Error Code][] of `2001` indicates an [OracleBlockStatement][] has been used in the [Command Property][CommandProperty] when using a [Command][] or [Commands][] data type.

#### Message Format

Expand All @@ -75,7 +75,7 @@ Use a [QueryCommand][] or [NonQueryCommand][] data type.

### Multiple Statements {#2002}

Multiple statements have been passed into the [Command Property][CommandProperty] when using a [Command][] data type.
An [Error Code][] of `2002` indicates multiple statements have been passed into the [Command Property][CommandProperty] when using a [Command][] data type.

#### Message Format

Expand All @@ -90,9 +90,40 @@ Please click the HelpLink for more information on how to fix this."

Use a [Commands][] data type.

### Incompatible Parameter Type {#2003}

An [Error Code][] of `2003` indicates an incompatible parameter type has been passed into the [Parameters Property][ParametersProperty] when using a type of [ConnectionDetails][].

#### Message Format

The format of the [Message][] is as follows:

```json
"'Parameters' contains parameter(s) of a type that is not compatible with the ConnectionDetails used; it must be provided with compatible parameter(s).\r\nPlease click the HelpLink for more information on how to fix this."
```

#### How to fix

Use a compatible parameter data type for the type of [ConnectionDetails][] used.

- [SqlServerConnectionDetails][] compatible types:

* [Structure][]

- [OdbcConnectionDetails][] compatible types:

* [Structure][]

- [OracleConnectionDetails][] compatible types:

* [Structure][]
* [OracleParameters][]
* [OracleParameter][]
* [IEnumberable][]&lt;[OracleParameter][]&gt;

### Runtime {#3000}

An error has occurred during either parsing or execution of the statement(s).
An [Error Code][] of `3000` indicates an error has occurred during either parsing or execution of the statement(s).

#### Message Format

Expand All @@ -109,6 +140,25 @@ Try to make sure that the statement(s) are valid.

More information on why the value is invalid, or instruction on how to provide a valid value, may be present in the [StatementExceptions][].

### Invalid Parameter Binding {#3001}

An [Error Code][] of `3001` indicates at least one parameter has not been defined in the [Parameters Property][ParametersProperty] but has in the [Command Property][CommandProperty], or is not bound correctly; this means that the parameter type and value are not compatible, e.g. declaring a parameter with the type as `OracleMappingType.Blob`, but providing a `OracleMappingType.Int32` value of `1`.

#### Message Format

The format of the [Message][] is as follows:

```json
"An error occurred whilst trying to execute the command provided. Please see the 'StatementExceptions' property for more details.
Please click the HelpLink for more information on how to fix this."
```

#### How to fix

Make sure that all parameters used in the [Command Property][CommandProperty] are defined in the [Parameters Property][ParametersProperty] and have a value that is compatible with the parameter type, e.g. declaring a parameter with the type as `OracleMappingType.Int32`, requires an `OracleMappingType.Int32` value to be provided, for example `1`.

More information may be present in the [StatementExceptions][].

## Properties

### Exception Type
Expand Down Expand Up @@ -151,7 +201,9 @@ For `CommandException` there are the following error codes:
- [2000][Statement] - indicates that a [Statement][] error has occurred during the parsing process (Oracle Category Only)
- [2001][IncompatibleStatementType] - indicates that a [IncompatibleStatementType][] error has occured due to an [OracleBlockStatement][] being used in the [Command Property][CommandProperty] when using a [Command][] or [Commands][] data type (Oracle Category Only)
- [2002][MultipleStatements] - indicates that a [MultipleStatements][] error has occured because multiple statements have been inputted into the [Command Property][CommandProperty] when using the [Command][] datatype (All Categories)
- [2003][IncompatibleParameterType] - An incompatible parameter type has been passed into the [Parameters property][ParametersProperty] when using a type of [ConnectionDetails][] (All Categories)
- [3000][Runtime] - indicates that a [Runtime][] error has occurred during the runtime process (All Categories)
- [3001][InvalidParameterBinding] - indicates at least one parameter has not been defined in the [Parameters Property][ParametersProperty] but has in the [Command Property][CommandProperty], or is not bound correctly (All Categories)

| | |
|-----------|---------------------------|
Expand Down Expand Up @@ -199,6 +251,8 @@ None
- [NonQueryCommand][]
- [OdbcConnectionDetails][]
- [OracleConnectionDetails][]
- [OracleParameter][]
- [OracleParameters][]
- [QueryCommand][]
- [SqlServerConnectionDetails][]
- [String][]
Expand All @@ -221,10 +275,13 @@ None
[Statement]: {{< ref "#2000">}}
[IncompatibleStatementType]: {{< ref "#2001">}}
[MultipleStatements]: {{< ref "#2002">}}
[IncompatibleParameterType]: {{< ref "#2003">}}
[Runtime]: {{< ref "#3000">}}
[InvalidParameterBinding]: {{< ref "#3001">}}
[Message]: {{< ref "#message" >}}
[InnerException]: {{< ref "#innerexception" >}}
[StatementExceptions]: {{< ref "#statementexceptions" >}}
[Error Code]: {{< ref "#error-code" >}}

[Input]: {{< url path="Cortex.Reference.Concepts.Fundamentals.Blocks.BlockProperties.WhatIsABlockProperty.Input" >}}
[Output]: {{< url path="Cortex.Reference.Concepts.Fundamentals.Blocks.BlockProperties.WhatIsABlockProperty.Output" >}}
Expand Down Expand Up @@ -259,6 +316,7 @@ None
[ConnectionDetailsProperty]: {{< url path="Cortex.Reference.Blocks.Data.ExecuteDataCommand.ExecuteDataCommand.ConnectionDetailsProperty" >}}
[DataCommand]: {{< url path="Cortex.Reference.DataTypes.Data.DataCommand.MainDoc" >}}
[DataCommand.CommandText]: {{< url path="Cortex.Reference.DataTypes.Data.DataCommand.CommandText" >}}
[ParametersProperty]: {{< url path="Cortex.Reference.DataTypes.Data.DataCommand.Parameters" >}}

[Command]: {{< url path="Cortex.Reference.DataTypes.Data.Command.MainDoc" >}}
[Command.CommandText]: {{< url path="Cortex.Reference.DataTypes.Data.Command.CommandText" >}}
Expand All @@ -282,3 +340,8 @@ None
[Exceptions]: {{< url path="Cortex.Reference.Concepts.Fundamentals.Exceptions.MainDoc" >}}

[OracleBlockStatement]: {{< url path="Oracle.PL-SQL.BlockStatement" >}}

[IEnumberable]: {{< url path="Cortex.Reference.DataTypes.Collections.IEnumerable_TItem.MainDoc" >}}
[ParametersProperty]: {{< url path="Cortex.Reference.DataTypes.Data.DataCommand.Parameters" >}}
[OracleParameters]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameters.MainDoc" >}}
[OracleParameter]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameter.MainDoc" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,83 @@ None

[Working with Data Sources]: {{< url path="Cortex.Reference.Concepts.WorkingWith.DataSources.MainDoc" >}}

[SqlServerConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.SqlServerConnectionDetails.MainDoc" >}}
[OdbcConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.OdbcConnectionDetails.MainDoc" >}}
[OracleConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.OracleConnectionDetails.MainDoc" >}}

---
title: "ConnectionDetails"
linkTitle: "ConnectionDetails"
description: "Any data type representing configuration for establishing and maintaining a connection to a data source."
---

# {{% param title %}}

<p class="namespace">(Cortex.DataTypes.Data.ConnectionDetails)</p>

## Summary

Any data type representing configuration for establishing and maintaining a connection to a data source.

| | |
|-|-|
| **Category:** | Data |
| **Name:** | `ConnectionDetails` |
| **Full Name:** | `Cortex.DataTypes.Data.ConnectionDetails` |
| **Alias:** | N/A |
| **Description:** | Any data type representing configuration for establishing and maintaining a connection to a data source. |
| **Default Value:** | `null` |
| **Can be used as:** | `Object`, `dynamic` |
| **Can be cast to:** | N/A |

## Remarks

### Most Common ConnectionDetails Data Types

Any of the following data types can be used where a `ConnectionDetails` is required:

- [OdbcConnectionDetails][]
- [OracleConnectionDetails][]
- [SqlServerConnectionDetails][]

### Create a ConnectionDetails

For some of the ways that a `ConnectionDetails` can be created, please see each of the `ConnectionDetails` data types:

- [OdbcConnectionDetails][]
- [OracleConnectionDetails][]
- [SqlServerConnectionDetails][]

### Convert ConnectionDetails to Text

For some of the ways that a `ConnectionDetails` can be converted to text, please see each of the `ConnectionDetails` data types:

- [OdbcConnectionDetails][]
- [OracleConnectionDetails][]
- [SqlServerConnectionDetails][]

### Known limitations

None

## See Also

### Related Data Types

- [OdbcConnectionDetails][]
- [OracleConnectionDetails][]
- [SqlServerConnectionDetails][]

### Related Concepts

- [Working with Data Sources][]

### External Documentation

None

[Working with Data Sources]: {{< url path="Cortex.Reference.Concepts.WorkingWith.DataSources.MainDoc" >}}

[SqlServerConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.SqlServerConnectionDetails.MainDoc" >}}
[OdbcConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.OdbcConnectionDetails.MainDoc" >}}
[OracleConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.OracleConnectionDetails.MainDoc" >}}
88 changes: 88 additions & 0 deletions content/en/docs/2024.3/Reference/data-types/data/iparameter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
title: "IParameter"
linkTitle: "IParameter"
description: "Any data type representing a parameter for use in the parameters property on the DataCommand data types."
---

# {{% param title %}}

<p class="namespace">(Cortex.DataTypes.Data.IParameter)</p>

## Summary

Any data type representing a parameter for use in the [Parameters property][ParametersProperty] on the [DataCommand][] data types.

`OracleParameter` is the most common example.

| | |
|-|-|
| **Category:** | Data |
| **Name:** | `IParameter` |
| **Full Name:** | `Cortex.DataTypes.Data.IParameter` |
| **Alias:** | N/A |
| **Description:** | Any data type representing a parameter for use in the parameters property on the DataCommand data types. |
| **Size:** | Varies |
| **Default Value:** | `null` |
| **Can be used as:** | `Object`, `dynamic` |
| **Can be cast to:** | N/A |

## Remarks

### Most Common IParameter Data Types

Any of the following data types can be used where an `IParameter` is required:

* [OracleParameter][]

### Create an IParameter

For some of the ways that an `IParameter` can be created, please see each of the `IParameter` data types:

* [OracleParameter][CreateOracleParameter]

### Convert IParameter to Text

For some of the ways that an `IParameter` can be converted to text, please see each of the `IParameter` data types:

* [OracleParameter][ConvertOracleParameter]

### Property Editor Support

* The Expression Editor is available for [Input][] properties where the data type is `IParameter`.
* The Literal Editor is not available for [Input][] properties where the data type is `IParameter`.
* The Variable Editor is available for [InputOutput][] and [Output][] properties where the data type is `IParameter`.

### Known Limitations

* None

## See Also

### Related Data Types

* [OracleParameter][]

### Related Concepts

* None

### External Documentation

* None

[Input]: {{< url path="Cortex.Reference.Concepts.Fundamentals.Blocks.BlockProperties.WhatIsABlockProperty.Input" >}}
[InputOutput]: {{< url path="Cortex.Reference.Concepts.Fundamentals.Blocks.BlockProperties.WhatIsABlockProperty.InputOutput" >}}
[Output]: {{< url path="Cortex.Reference.Concepts.Fundamentals.Blocks.BlockProperties.WhatIsABlockProperty.Output" >}}

[Structure]: {{< url path="Cortex.Reference.DataTypes.Collections.Structure.MainDoc" >}}
[StructureCreateNew]: {{< url path="Cortex.Reference.DataTypes.Collections.Structure.CreateNew" >}}
[StructureConvertToText]: {{< url path="Cortex.Reference.DataTypes.Collections.Structure.ConvertToText" >}}
[ParametersProperty]: {{< url path="Cortex.Reference.DataTypes.Data.DataCommand.Parameters" >}}
[OracleParameter]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameter.MainDoc" >}}
[CommandProperty]: {{< url path="Cortex.Reference.Blocks.Data.ExecuteDataCommand.ExecuteDataCommand.CommandProperty" >}}
[DataCommand]: {{< url path="Cortex.Reference.DataTypes.Data.DataCommand.MainDoc" >}}
[OracleParameter]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameter.MainDoc" >}}
[CreateOracleParameter]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameter.Create" >}}
[ConvertOracleParameter]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameter.Convert" >}}
[OracleParameters]: {{< url path="Cortex.Reference.DataTypes.Data.OracleParameters.MainDoc" >}}
[OracleConnectionDetails]: {{< url path="Cortex.Reference.DataTypes.Data.OracleConnectionDetails.MainDoc" >}}
Loading
Loading