{"id":72825,"date":"2026-10-22T12:42:01","date_gmt":"2026-10-22T04:42:01","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=72825"},"modified":"2026-11-25T04:58:10","modified_gmt":"2026-11-24T20:58:10","slug":"odata-adaptors","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/odata-adaptors\/","title":{"rendered":"OData Adaptors"},"content":{"rendered":"<p class=\"intro-text\">The OData adaptors connect IFS OI Server to services that publish data through the OData protocol, such as IFS Cloud, EnergySys and many other business systems. The OData Time Series Adaptor provides tag data for trends. The Generic OData Adaptor provides datasets.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-tag-datasource\/\">Tag Datasources<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/\">Dataset Datasources<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/how-to-write-a-dataset-query\/\">Dataset Queries<\/a><\/p>\n<h2 id=\"overview\" class=\"page-subheading\">Overview<\/h2>\n<p>OData is a standard way of publishing tables of data over the web. Each table (an <em>entity set<\/em>) has an address, and the service accepts query options in the URL, such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$filter<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$select<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$orderby<\/span>. There are two OData adaptors:<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Adaptor<\/strong><\/td>\n<td><strong>Use it for<\/strong><\/td>\n<td><strong>How it is configured<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OData Time Series Adaptor<\/span><\/strong><\/td>\n<td>Tag data: readings for named tags over time, shown in trends and anywhere Explorer reads tag history<\/td>\n<td>On the datasource: which table holds the readings, and which columns hold the name, timestamp and values<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Generic OData Adaptor<\/span><\/strong><\/td>\n<td>Datasets: tables of rows and columns<\/td>\n<td>On each dataset: the query is the OData URL to call<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Both adaptors share the same authentication options and are read-only. If the service returns JSON but is not an OData service, use the Generic REST adaptors instead.<\/p>\n<h2 id=\"whatsnew\" class=\"page-subheading\">What's New<\/h2>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Change<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OData Time Series Adaptor<\/span><\/strong><\/td>\n<td>New adaptor that reads tag data from OData tables in either wide or narrow layout, with tag browsing and batched requests. Included in the main and Remote Data Host installers.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OData v4 support<\/span><\/strong><\/td>\n<td>Both adaptors follow the OData v4 standard: v4 date formats in filters, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">OData-Version<\/span> headers, and clearer error messages that include the service's own error code and text. The Time Series adaptor still supports v1 to v3 services.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Computed columns<\/span><\/strong><\/td>\n<td>Dataset queries can build a column from other columns with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">concat(...) as Name<\/span>, for example to produce a column that matches entity names. See <a href=\"#computed\">Computed Columns<\/a>.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Navigation paths<\/span><\/strong><\/td>\n<td>The Time Series adaptor's Table Name can be a navigation path such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Plants('P1')\/Readings<\/span>.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Token renewal<\/span><\/strong><\/td>\n<td>With OAuth 2.0, if the service rejects a token that has been revoked, the adaptor gets a new token and retries once.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"requirements\" class=\"page-subheading\">Service Requirements<\/h2>\n<p>The OData service must support:<\/p>\n<ul>\n<li>The query options <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$filter<\/span> (with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">eq<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ge<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">le<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">and<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">or<\/span>), <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$orderby<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$top<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$skip<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$select<\/span>.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$batch<\/span> requests, for the Time Series adaptor. Tag data is requested in batches.<\/li>\n<li>JSON or Atom\/XML responses. The adaptors handle both.<\/li>\n<\/ul>\n<p>Before configuring a datasource, open a table's URL in a browser (for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/server\/odata\/WellDaily?$top=5<\/span>) to check the column names, their capitalization and the date format. Column names in OData are case-sensitive.<\/p>\n<h2 id=\"authentication\" class=\"page-subheading\">Authentication<\/h2>\n<p>Both adaptors have the same authentication settings. The following table lists them along with the <em>name<\/em> and <em>type<\/em> to be used in the Import\/Export spreadsheet.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Parameter<\/strong><\/td>\n<td><strong>Description and example<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Authentication<\/span><\/strong><\/td>\n<td>How to sign in to the service. Options: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Secure Login<\/span> (default), <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">OAuth 2.0<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Certificate<\/span>. In the Import\/Export spreadsheet use the values <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Login<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">OAuth2<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Certificate<\/span>.<\/td>\n<td>Authentication<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">UserName \/ User name<\/span><\/strong><\/td>\n<td>User name. Required for Secure Login. With OAuth 2.0, optional (see below).<\/td>\n<td>Username (Time Series)<br \/>\nUserName (Dataset)<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Password<\/span><\/strong><\/td>\n<td>Password. Required for Secure Login. With OAuth 2.0, optional (see below).<\/td>\n<td>Password<\/td>\n<td>EncryptedString<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 Client ID<\/span><\/strong><\/td>\n<td>Client ID. Required for OAuth 2.0.<\/td>\n<td>Client Id<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 Client Secret<\/span><\/strong><\/td>\n<td>Client secret. Required for OAuth 2.0.<\/td>\n<td>Client Secret<\/td>\n<td>EncryptedString<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 TokenURI<\/span><\/strong><\/td>\n<td>Address of the token endpoint. Required for OAuth 2.0. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/login.example.com\/oauth2\/token<\/span><\/td>\n<td>TokenURI<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Certificate Thumbprint<\/span><\/strong><\/td>\n<td>Thumbprint of the client certificate. Required for Certificate authentication. Enter it exactly as Windows shows it, in capitals, without spaces.<\/td>\n<td>Certificate Thumbprint<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Certificate Verification Endpoint<\/span><\/strong><\/td>\n<td>An address the adaptor calls with the certificate to check that it is accepted. Required for Certificate authentication.<\/td>\n<td>Verification Endpoint<\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li><strong>Secure Login<\/strong> sends the user name and password with each request. Both are required. If the service needs no sign-in, choose <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span>.<\/li>\n<li><strong>OAuth 2.0<\/strong> gets a token from the token endpoint using the client ID and secret (the client-credentials grant). If a user name and password are also filled in, the adaptor signs in as that user instead (the password grant). Tokens are renewed a minute before they expire.<\/li>\n<li><strong>Certificate<\/strong> uses a client certificate from the Local Machine's Personal certificate store on the server that runs the adaptor. The account the adaptor runs under must be able to read the certificate's private key.<\/li>\n<\/ul>\n<h2 id=\"timeseries\" class=\"page-subheading\">OData Time Series Adaptor<\/h2>\n<p>The OData Time Series Adaptor reads tag data from an OData table that holds timestamped readings. The table can be <a href=\"#wide-narrow\">wide or narrow<\/a>.<\/p>\n<h3>Time Series Adaptor Settings<\/h3>\n<p>In addition to the <a href=\"#authentication\">authentication settings<\/a>:<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Parameter<\/strong><\/td>\n<td><strong>Description and example<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">BaseURI<\/span><\/strong><\/td>\n<td>Required. The address of the OData service. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/server.example.com\/odata<\/span><\/td>\n<td>BaseURI<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OdataServerVersion<\/span><\/strong><\/td>\n<td>The OData version of the service: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">v1<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">v2<\/span> (default), <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">v3<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">v4<\/span>. This controls the date format used in filters. Check the service's <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$metadata<\/span> document if you are not sure.<\/td>\n<td>Odata Server Version<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Table Name<\/span><\/strong><\/td>\n<td>Required. The entity set that holds the readings. Can be a navigation path. Examples: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">WellDaily<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Plants('P1')\/Readings<\/span><\/td>\n<td>TableName<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">WideMode<\/span><\/strong><\/td>\n<td>Selected (default): the table is <a href=\"#wide-narrow\">wide<\/a>, with one column per measurement. Cleared: the table is narrow, with one row per tag reading.<\/td>\n<td>WideMode<\/td>\n<td>Boolean<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Name Field<\/span><\/strong><\/td>\n<td>Required. The column that holds the entity name (wide mode) or the tag name (narrow mode). Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">NAME<\/span><\/td>\n<td>NameField<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Timestamp Field<\/span><\/strong><\/td>\n<td>Required. The column that holds the reading's date and time. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PRODUCTION_DATE<\/span><\/td>\n<td>TimeStampField<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Value Column(s)<\/span><\/strong><\/td>\n<td>The columns that hold readings, separated by commas. In wide mode, list each measurement column, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">GAS_VOL,OIL_VOL,CHOKE<\/span>. In narrow mode, give the single value column, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">VALUE<\/span>. Readings are only read from the columns listed here.<\/td>\n<td>Columns<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Confidence Column Name<\/span><\/strong><\/td>\n<td>Optional. A column that holds the reading's confidence, from 0 to 100. If blank, readings have a confidence of 100.<\/td>\n<td>Confidence<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Entity Attribute Delimiter<\/span><\/strong><\/td>\n<td>Wide mode only. The characters that join the entity name and the column name to form a tag name. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">.<\/span> (so <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 1<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">GAS_VOL<\/span> make the tag <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 1.GAS_VOL<\/span>).<\/td>\n<td>Entity Attribute Delimiter<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Additional Filters<\/span><\/strong><\/td>\n<td>Optional. A filter added to every data request with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">and<\/span>. Use it when the service needs a fixed condition. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Site eq '2401'<\/span>. Not applied when browsing for tags.<\/td>\n<td>Additional Filters<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Batch Size<\/span><\/strong><\/td>\n<td>Required. How many entities (wide mode) or tags (narrow mode) to request together. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">50<\/span>. Lower it if requests are too long for the service.<\/td>\n<td>Batch Size<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Table Name<\/span><\/strong><\/td>\n<td>Optional. A table that lists the available tags. If blank, tags are found by scanning recent readings. See <a href=\"#ts-discovery\">Tag Browsing<\/a>.<\/td>\n<td>Tag Discovery TableName<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Column Names<\/span><\/strong><\/td>\n<td>Required if Tag Discovery Table Name is set. Five column names, separated by commas, in this order: tag name, description, units, minimum, maximum. Leave a position empty if the table has no such column, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">TAGNAME,,,MIN,MAX<\/span>. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">TAGNAME,DESCRIPTION,UNITS,MINIMUM,MAXIMUM<\/span>.<\/td>\n<td>Tag Discovery Columns<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Scan Days<\/span><\/strong><\/td>\n<td>Required. Used only when Tag Discovery Table Name is blank: how many days of readings to scan when browsing for tags. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">5<\/span>. If every entity reports daily, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">1<\/span> is enough.<\/td>\n<td>ScanDays<\/td>\n<td>Integer<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"left-bar\"><strong>Note:<\/strong> datasources created before the OData Server Version setting was renamed keep working. The adaptor still reads the old <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">OdataServerVersion<\/span> value until the datasource is saved again.<\/p>\n<h3 id=\"wide-narrow\">Wide and Narrow Tables<\/h3>\n<p><strong>Wide tables<\/strong> have one row per entity per time, with a column for each measurement. Each measurement column becomes a tag, named <em>entity<\/em> + delimiter + <em>column<\/em>.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>NAME<\/strong><\/td>\n<td><strong>PRODUCTION_DATE<\/strong><\/td>\n<td><strong>GAS_VOL<\/strong><\/td>\n<td><strong>OIL_VOL<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>Well 1<\/td>\n<td>2026-09-01<\/td>\n<td>1520.4<\/td>\n<td>310.2<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>Well 2<\/td>\n<td>2026-09-01<\/td>\n<td>980.0<\/td>\n<td>122.7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>With Name Field <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">NAME<\/span>, Timestamp Field <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PRODUCTION_DATE<\/span> and Value Column(s) <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">GAS_VOL,OIL_VOL<\/span>, this table provides the tags <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 1.GAS_VOL<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 1.OIL_VOL<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 2.GAS_VOL<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 2.OIL_VOL<\/span>.<\/p>\n<p><strong>Narrow tables<\/strong> have one row per tag per time. Clear <strong>WideMode<\/strong>. The Name Field holds the tag name and Value Column(s) is the single value column.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>TAGNAME<\/strong><\/td>\n<td><strong>TIMESTAMP<\/strong><\/td>\n<td><strong>VALUE<\/strong><\/td>\n<td><strong>QUALITY<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>TIC-101<\/td>\n<td>2026-09-01T08:00:00Z<\/td>\n<td>72.5<\/td>\n<td>100<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>FIC-200<\/td>\n<td>2026-09-01T08:00:00Z<\/td>\n<td>50.1<\/td>\n<td>90<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>With Name Field <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">TAGNAME<\/span>, Timestamp Field <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">TIMESTAMP<\/span>, Value Column(s) <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">VALUE<\/span> and Confidence Column Name <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">QUALITY<\/span>, this table provides the tags <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">TIC-101<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">FIC-200<\/span>.<\/p>\n<h3 id=\"ts-fetch\">How Tag Data Is Fetched<\/h3>\n<ul>\n<li><strong>Over a time range<\/strong>, the adaptor asks for rows whose timestamp is between the start and end times, for the requested entities, in batches of Batch Size. In wide mode it uses <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$select<\/span> to fetch only the needed columns.<\/li>\n<li><strong>At a single time<\/strong>, OData cannot ask for \"the latest row for each entity\", so the adaptor asks for the most recent rows up to that time and then asks again for any entity it didn't get a value for.<\/li>\n<li><strong>If a time range has no data<\/strong> for a tag, the adaptor fetches the last known value before the range and uses it.<\/li>\n<li><strong>If a value column doesn't exist<\/strong>, the service rejects the whole request. The adaptor marks the tags that use that column with an error, then repeats the request without it so that the other tags still return data.<\/li>\n<li><strong>An entity that doesn't exist<\/strong> returns no data rather than an error, because OData can't tell the difference between an unknown entity and one with no readings.<\/li>\n<\/ul>\n<p>Readings can be numbers, text or true\/false. Text that looks like a number is read as a number. If any reading for a tag is non-numeric text, all of that tag's readings are returned as text.<\/p>\n<h4>Time Zones<\/h4>\n<p>Request times are converted to the datasource's time zone before they are sent.<\/p>\n<ul>\n<li><strong>v1 to v3<\/strong>: times are sent as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">datetime'2026-09-01T08:00:00'<\/span>, with no time zone. Set the datasource's time zone to the zone the service stores its times in.<\/li>\n<li><strong>v4<\/strong>: times are sent as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">2026-09-01T08:00:00Z<\/span>, which means UTC. Set the datasource's time zone to <strong>UTC<\/strong>; otherwise local times are sent labeled as UTC and readings will be shifted.<\/li>\n<\/ul>\n<h3 id=\"ts-discovery\">Tag Browsing<\/h3>\n<p>When a user browses for tags, the adaptor finds them in one of two ways.<\/p>\n<p><strong>With a tag list table<\/strong> (Tag Discovery Table Name is set): the adaptor reads the table, sorted by the tag name column, in pages of ten times the Batch Size. The description, units, minimum and maximum come from the columns given in Tag Discovery Column Names.<\/p>\n<p><strong>Without a tag list table<\/strong>: the adaptor reads all readings from the last Scan Days and lists each entity and value column it finds. Minimum and maximum are set from the values seen, the description is <em>name<\/em> OData tag, and units are <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">tbd<\/span>. This can be slow for large tables; a tag list table is recommended when there are many tags. Additional Filters are not applied while scanning.<\/p>\n<h2 id=\"dataset\" class=\"page-subheading\">Generic OData Adaptor (Datasets)<\/h2>\n<p>The Generic OData Adaptor returns a dataset from an OData query. The datasource holds the service address and authentication. Each dataset's query is the rest of the URL: the entity set and any query options.<\/p>\n<h3>Dataset Adaptor Settings<\/h3>\n<p>In addition to the <a href=\"#authentication\">authentication settings<\/a>:<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Parameter<\/strong><\/td>\n<td><strong>Description and example<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Base URL<\/span><\/strong><\/td>\n<td>Required. The address of the OData service. The dataset query is added to it; a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\/<\/span> between them is added automatically if needed. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/server.example.com\/main\/ifsapplications\/projection\/v1\/ActiveSeparateHandling.svc<\/span><\/td>\n<td>BaseUrl<\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The Generic OData Adaptor always uses OData v4.<\/p>\n<h3>Writing a Dataset Query<\/h3>\n<p>The query is the entity set name followed by OData query options:<\/p>\n<pre class=\"wrap:true lang:default decode:true\">Products?$select=ProductID,ProductName,UnitPrice&amp;$filter=UnitPrice gt 20&amp;$orderby=ProductName<\/pre>\n<p>Each property returned becomes a column. The column type follows the OData type: numbers, text, true\/false, dates and durations. Other details:<\/p>\n<ul>\n<li>Structured (complex) properties are split into one column per field, named <em>Property - Field<\/em>, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Address - City<\/span>.<\/li>\n<li>Dates without a time zone (OData <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">DateTime<\/span>, used by older services) are treated as UTC. <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">DateTimeOffset<\/span> values keep their own offset.<\/li>\n<li>GUIDs and binary values are returned as text.<\/li>\n<\/ul>\n<h2 id=\"keywords\" class=\"page-subheading\">Dataset Query Keywords<\/h2>\n<p>OData datasets use their own keywords. These replace the SQL keywords <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAM()<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">SORTBY()<\/span> and produce values in OData format. Keywords that take a parameter add it to the dataset's options in Explorer. Keyword names are not case-sensitive.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Keyword<\/strong><\/td>\n<td><strong>Usage<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">ODataParam<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATAPARAM(name,data_type,odata_type)<\/span><br \/>\nExample:<br \/>\n<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATAPARAM(site,string,String)<\/span><br \/>\nbecomes <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">'2401'<\/span><\/td>\n<td>A single value supplied in Explorer, written in the OData format for <em>odata_type<\/em>.<br \/>\n<em>name<\/em>: the parameter name shown in Explorer. Case-sensitive, no spaces.<br \/>\n<em>data_type<\/em>: the Explorer parameter type, for example string, integer, decimal, boolean, datetime or duration.<br \/>\n<em>odata_type<\/em>: the OData type of the property being compared. See the table below.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">ODataUserParam<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATAUSERPARAM(name,data_type,odata_type)<\/span><\/td>\n<td>The same as ODATAPARAM, but the value comes from a user parameter supplied at run time by the page, not from the dataset's configured parameters. It doesn't appear as a dataset option.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">ODataSortBy<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATASORTBY(column [asc|desc][,\u2026])<\/span><br \/>\nExample:<br \/>\n<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATASORTBY(ProductName desc)<\/span><br \/>\nbecomes <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">&amp;$orderby=ProductName desc<\/span><\/td>\n<td>Sorts the results. Adds an optional <em>ODataSortBy<\/em> option to the dataset so that the sort can be changed in Explorer. Because it adds <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">&amp;<\/span>, the query must already contain a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">?<\/span>.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">ODataUserParamSortBy<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATAUSERPARAMSORTBY(column [asc|desc])<\/span><\/td>\n<td>The same as ODATASORTBY, but the sort can be overridden by a user parameter supplied at run time by the page.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>OData Types for ODATAPARAM<\/h3>\n<p>The <em>odata_type<\/em> argument controls how the value is written. Older OData versions wrap some values with a type prefix or suffix. OData v4 services, including the Generic OData Adaptor's, expect the plain form, so use the types marked <strong>Yes<\/strong> in the last column.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>odata_type<\/strong><\/td>\n<td><strong>Explorer value<\/strong><\/td>\n<td><strong>Written as<\/strong><\/td>\n<td><strong>OData v4<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">String<\/span><\/strong><\/td>\n<td>string<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">'Well 1'<\/span><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Boolean<\/span><\/strong><\/td>\n<td>boolean<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">true<\/span><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Int32, Int16, Byte, SByte<\/span><\/strong><\/td>\n<td>integer, or a whole decimal<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">42<\/span><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Date<\/span><\/strong><\/td>\n<td>datetime<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">2026-09-01<\/span><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Int64<\/span><\/strong><\/td>\n<td>integer, or a whole decimal<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">42L<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Decimal<\/span><\/strong><\/td>\n<td>integer or decimal<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">1.5M<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Double<\/span><\/strong><\/td>\n<td>integer or decimal<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">1.50000000000000000e+000d<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Single<\/span><\/strong><\/td>\n<td>integer or decimal<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">1.500000000e+000f<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">DateTime<\/span><\/strong><\/td>\n<td>datetime<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">datetime'2026-09-01T08:00:00'<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">DateTimeOffset<\/span><\/strong><\/td>\n<td>datetime<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">datetimeoffset'2026-09-01T08:00:00Z'<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">TimeOfDay<\/span><\/strong><\/td>\n<td>datetime<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">time'08:00:00'<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Duration<\/span><\/strong><\/td>\n<td>duration<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">duration'P0DT01H30M00S'<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Guid<\/span><\/strong><\/td>\n<td>string<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">guid'\u2026'<\/span><\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>An empty value is written as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">null<\/span>. A text value containing a single quote is not escaped, so avoid quotes in string parameters.<\/p>\n<h2 id=\"computed\" class=\"page-subheading\">Computed Columns<\/h2>\n<p>A dataset query can create a column by joining other columns and fixed text. Write <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">concat(\u2026) as Name<\/span> inside <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$select<\/span>:<\/p>\n<pre class=\"wrap:true lang:default decode:true\">ActiveSeparateSet?$filter=Objsite eq '2401'&amp;$select=concat(MchCode, ' - ', EquipmentObjectSeq) as Entity,WoNo,RegDate,ErrDescr<\/pre>\n<p>This returns a column called <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Entity<\/span> with values such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PUMP-01 - 1001<\/span>, which can be matched to entity names in IFS OI Server. Rules:<\/p>\n<ul>\n<li>Arguments are property names, or text in single quotes. Write a quote inside text as two quotes, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">'it''s'<\/span>.<\/li>\n<li>Property names must be simple names (letters, digits and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">_<\/span>), not paths.<\/li>\n<li>An empty (null) value is treated as empty text.<\/li>\n<li>Each computed column needs a unique name.<\/li>\n<li>Columns used only inside <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">concat<\/span> are fetched but not returned. To return one as well, list it separately in <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$select<\/span>.<\/li>\n<li>Only <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$select<\/span> is changed; <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$filter<\/span> and the other options are sent to the service unchanged.<\/li>\n<\/ul>\n<h2 id=\"examples\" class=\"page-subheading\">Examples<\/h2>\n<h3>Dataset: Public Sample Service<\/h3>\n<p>A quick way to check the Generic OData Adaptor works. Create a datasource with Base URL <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/services.odata.org\/V4\/Northwind\/Northwind.svc<\/span> and Authentication <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span>, then add a dataset with this query:<\/p>\n<pre class=\"wrap:true lang:default decode:true\">Products?$select=ProductID,ProductName,UnitPrice&amp;$top=20<\/pre>\n<h3>Dataset: Filtered by a Parameter<\/h3>\n<p>The user chooses a category in Explorer; the list is sorted by name unless the sort is changed.<\/p>\n<pre class=\"wrap:true lang:default decode:true\">Products?$filter=CategoryID eq ODATAPARAM(category,integer,Int32) and Discontinued eq false&amp;$select=ProductName,UnitPriceODATASORTBY(ProductName)<\/pre>\n<p><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ODATASORTBY<\/span> goes straight after the last query option, with no space, because it adds <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">&amp;$orderby=ProductName<\/span> at that point.<\/p>\n<h3>Dataset: Text and Date Parameters<\/h3>\n<pre class=\"wrap:true lang:default decode:true\">WorkOrders?$filter=Site eq ODATAPARAM(site,string,String) and RegDate ge ODATAPARAM(from,datetime,Date)<\/pre>\n<h3>Time Series: Wide Production Table (OData v2)<\/h3>\n<p><strong>Datasource settings<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">BaseURI:                    https:\/\/energysys.example.com\/odata\r\nOdataServerVersion:         v2\r\nAuthentication:             Secure Login\r\nTable Name:                 WELL_DAILY\r\nWideMode:                   selected\r\nName Field:                 NAME\r\nTimestamp Field:            PRODUCTION_DATE\r\nValue Column(s):            GAS_VOL,OIL_VOL,WATER_VOL,CHOKE\r\nEntity Attribute Delimiter: .\r\nTag Discovery Table Name:   WELL_TAGLIST\r\nTag Discovery Column Names: TAGNAME,DESCRIPTION,UNITS,MINIMUM,MAXIMUM<\/pre>\n<p>Tags are named like <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Well 1.GAS_VOL<\/span>. Set the datasource time zone to the zone the service uses for <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PRODUCTION_DATE<\/span>.<\/p>\n<h3>Time Series: Narrow Readings Table (OData v4, OAuth 2.0)<\/h3>\n<p><strong>Datasource settings<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">BaseURI:                https:\/\/cloud.example.com\/odata\/v4\r\nOdataServerVersion:     v4\r\nAuthentication:         OAuth 2.0\r\nOAuth2 Client ID:       (your client ID)\r\nOAuth2 Client Secret:   (your client secret)\r\nOAuth2 TokenURI:        https:\/\/cloud.example.com\/oauth2\/token\r\nTable Name:             Measurements\r\nWideMode:               cleared\r\nName Field:             TagName\r\nTimestamp Field:        MeasuredAt\r\nValue Column(s):        Value\r\nConfidence Column Name: Quality\r\nAdditional Filters:     Site eq '2401'\r\nScan Days:              1<\/pre>\n<p>Set the datasource time zone to UTC, because this is a v4 service.<\/p>\n<h2 id=\"troubleshooting\" class=\"page-subheading\">Troubleshooting<\/h2>\n<p><strong><span style=\"color: #800080;\">\"Required parameter(s) for Secure Login unrecognised or not found\"<\/span><\/strong><br \/>\nAuthentication is Secure Login (the default) but the user name or password is empty. Fill them in, or set Authentication to None if the service needs no sign-in.<\/p>\n<p><strong><span style=\"color: #800080;\">\"Certificate was not valid\"<\/span><\/strong><br \/>\nNo certificate with that thumbprint was found in the Local Machine Personal store, or the Certificate Verification Endpoint didn't accept it. Check the thumbprint (capitals, no spaces), that the certificate is installed for the machine rather than a user, and that the adaptor's account can read its private key.<\/p>\n<p><strong><span style=\"color: #800080;\">A tag shows \"field does not exist\"<\/span><\/strong><br \/>\nA column in Value Column(s) doesn't exist in the table. Check the spelling and capitalization against the service. Other tags still return data.<\/p>\n<p><strong><span style=\"color: #800080;\">Wide-mode tags show a delimiter error<\/span><\/strong><br \/>\nThe tag name doesn't contain the Entity Attribute Delimiter. Check that tags were created from this datasource and that the delimiter hasn't changed.<\/p>\n<p><strong><span style=\"color: #800080;\">Readings are shifted by a few hours<\/span><\/strong><br \/>\nCheck the datasource time zone. For v4 services it should be UTC. For v1 to v3 services it should be the zone the service stores its times in. See <a href=\"#ts-fetch\">Time Zones<\/a>.<\/p>\n<p><strong><span style=\"color: #800080;\">Tag browsing is slow or finds nothing<\/span><\/strong><br \/>\nWithout a tag list table, browsing scans the last Scan Days of readings. Increase Scan Days if entities report less often, or set up a Tag Discovery Table Name.<\/p>\n<p><strong><span style=\"color: #800080;\">A dataset fails with \"invalid computed column expression\"<\/span><\/strong><br \/>\nCheck the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">concat(\u2026) as Name<\/span> syntax: commas between arguments, text in single quotes, and a simple name after <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">as<\/span>.<\/p>\n<p><strong><span style=\"color: #800080;\">Errors from the service<\/span><\/strong><br \/>\nWhen an OData v4 service returns an error, the message includes the service's error code and text. The full request URL and response are written to the server log.<\/p>\n<h2 id=\"limits\" class=\"page-subheading\">Limitations<\/h2>\n<ul>\n<li>Read-only. Neither adaptor writes data back to the service.<\/li>\n<li>The Time Series adaptor needs a service that supports <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$batch<\/span> requests.<\/li>\n<li>Tag browsing without a tag list table can be slow for large tables.<\/li>\n<li>The Generic OData Adaptor reads the results in the service's response. If the service splits large results into pages, only the first page is returned; use <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$filter<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$top<\/span> to keep results within one page.<\/li>\n<li>Some ODATAPARAM types are written in the older OData format, which v4 services may reject. See <a href=\"#keywords\">OData Types for ODATAPARAM<\/a>.<\/li>\n<li>Computed columns support <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">concat<\/span> only.<\/li>\n<li>The SQL keywords <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">FIRSTROW()<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">LASTROW()<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ENTITYNAME()<\/span> are not supported in OData dataset queries.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The OData adaptors connect IFS OI Server to services that publish data through the OData protocol, such as IFS Cloud, EnergySys and many other business systems. The OData Time Series Adaptor provides tag data for trends. The Generic OData Adaptor provides datasets. Related: Tag Datasources, Dataset Datasources, Dataset Queries Overview\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/odata-adaptors\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72825","page","type-page","status-publish","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=72825"}],"version-history":[{"count":3,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72825\/revisions"}],"predecessor-version":[{"id":73026,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72825\/revisions\/73026"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=72825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=72825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=72825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}