{"id":72894,"date":"2026-10-22T18:28:29","date_gmt":"2026-10-22T10:28:29","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=72894"},"modified":"2026-10-22T23:45:38","modified_gmt":"2026-10-22T15:45:38","slug":"troubleshooting","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/troubleshooting\/","title":{"rendered":"Troubleshooting"},"content":{"rendered":"<p class=\"intro-text\">Common problems with OI OData datasets, and how to solve them.<\/p>\n<p class=\"note\"><strong>First step for any error:<\/strong> run the query in a browser. Sign in to Explorer, then open <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">https:\/\/&lt;your-oi-server&gt;\/&lt;service-root&gt;\/odata\/&lt;your query&gt;<\/span>, with any parameters replaced by real values. The browser shows the full error message from the OData service, which is usually more detailed than the message the dataset shows.<\/p>\n<hr \/>\n<h3 id=\"the-dataset-fails-with-not-found-is-not-an-object-of-this-service\">The dataset fails with \"Not Found: '\u2026' is not an object of this service\"<\/h3>\n<p class=\"intro-text\">The query starts with a name the service doesn't have, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">EntryClassificationSchemas<\/span>. The message names it and, where it can, says what you probably meant: <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Did you mean 'EntryForms'?<\/span>. Check the name against the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/object-reference\/\">Object Reference<\/a>. A query the service refuses like this only fails that dataset. Other datasets on the same datasource keep working.<\/p>\n<h3 id=\"the-dataset-fails-with-bad-request\">The dataset fails with \"Bad Request\"<\/h3>\n<p class=\"intro-text\">The OData service didn't understand the query. The message says what it didn't understand. For a name it doesn't know, it says what you probably meant, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Did you mean 'FormSchema'?<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Write it as 'OI.monthsago'.<\/span> Common causes:<\/p>\n<ul class=\"intro-text\">\n<li><strong>The object or field name is misspelled.<\/strong> Check <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$metadata<\/span> or the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/object-reference\/\">Object Reference<\/a>. Capitals don't matter: <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">tags<\/span> works the same as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Tags<\/span>.<\/li>\n<li><strong>An OI query function is missing its <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">OI.<\/span> prefix.<\/strong> Write <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">OI.monthsago(3)<\/span>, not <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">monthsago(3)<\/span>. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-query-functions\/\">OI query functions<\/a>.<\/li>\n<li><strong>Text isn't quoted, or a date is quoted.<\/strong> Text needs single quotes: <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Name eq 'WELL-A12'<\/span>. Dates don't: <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">StartTime ge 2026-09-01T00:00:00Z<\/span>.<\/li>\n<li><strong><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$orderby<\/span> uses a column that isn't in a grouped result.<\/strong> After <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">groupby<\/span>, you can only sort on group keys and aggregate aliases.<\/li>\n<li><strong>A function isn't available on this object.<\/strong> The <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-query-functions\/\">OI query functions<\/a> only work on database-backed objects.<\/li>\n<li><strong><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$top<\/span> is over 1,000.<\/strong><\/li>\n<li><strong>A count or aggregation on a live object with more than 5,000 rows.<\/strong> <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$count=true<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">apply<\/span> can only see the first 5,000 rows of a live object, so they're refused. Use the database-backed object instead (see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/limits-and-performance\/\">Limits and Performance<\/a>).<\/li>\n<\/ul>\n<h3 id=\"the-dataset-fails-with-not-acceptable\">The dataset fails with \"Not Acceptable\"<\/h3>\n<p class=\"intro-text\">The service writes JSON only. The request asked for another format, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Accept: application\/xml<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$format=xml<\/span>. Ask for <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">application\/json<\/span>, or leave the format out.<\/p>\n<h3 id=\"the-dataset-fails-with-the-following-odata-data-type-is-not-supported\">The dataset fails with \"The following OData data type is not supported\"<\/h3>\n<p class=\"intro-text\">The result contains a nested object or a list, which a dataset can't hold. This happens with:<\/p>\n<ul class=\"intro-text\">\n<li><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$expand<\/span><\/li>\n<li><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">groupby<\/span> on a related field, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">groupby((Workspace\/Name))<\/span><\/li>\n<li><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$select<\/span> of a navigation or collection field, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Templates<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Attributes<\/span><\/li>\n<\/ul>\n<p class=\"intro-text\">Compute related values into their own columns instead. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/writing-queries\/\">Getting related values into a dataset<\/a>.<\/p>\n<h3 id=\"the-dataset-fails-with-this-operation-is-not-supported-by-odata-adaptors\">The dataset fails with \"This operation is not supported by OData adaptors\"<\/h3>\n<p class=\"intro-text\">The query uses a SQL keyword such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">PARAM<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">PARAMS<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SORTBY<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">FIRSTROW<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">LASTROW<\/span>. Use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataParam<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataSortBy<\/span> instead, and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataSkip()<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataTop()<\/span> in place of <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">FIRSTROW<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">LASTROW<\/span>. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/parameters\/\">Parameters<\/a>.<\/p>\n<p class=\"intro-text\">Keywords are recognised anywhere in the query text, even inside a quoted value. Avoid text such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Param(<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SortBy(<\/span> in values.<\/p>\n<h3 id=\"the-dataset-fails-with-no-calling-user-or-refusing-to-query-without-a-security-context\">The dataset fails with \"No calling user\" or \"refusing to query without a security context\"<\/h3>\n<p class=\"intro-text\">OI OData datasets always run as a signed-in user. This error means the dataset was requested by a process with no user, such as a background or system task. Use OI OData datasets on pages that users view.<\/p>\n<h3 id=\"the-dataset-shows-fewer-rows-than-expected\">The dataset shows fewer rows than expected<\/h3>\n<ul class=\"intro-text\">\n<li><strong>The dataset limit is 1,000 rows.<\/strong> Only the first page of results is read. Filter, aggregate, or use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$top<\/span> with <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$orderby<\/span>. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/limits-and-performance\/#the-1000-row-dataset-limit\">The 1,000-row dataset limit<\/a>.<\/li>\n<li><strong>The 5,000-row fetch cap applied.<\/strong> On live objects, filters run over the first 5,000 source rows only. Use the database-backed equivalent. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/limits-and-performance\/#the-5000-row-fetch-cap\">The 5,000-row fetch cap<\/a>.<\/li>\n<li><strong>Security is filtering rows.<\/strong> The dataset runs as the person viewing the page. Check that the user can see the assets, workspaces or entries in Explorer.<\/li>\n<li><strong>Another user's private workspace.<\/strong> Related values from a workspace you can't see come back null, so a <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Workspace\/Name ne null<\/span> filter leaves those rows out.<\/li>\n<\/ul>\n<h3 id=\"two-users-see-different-results-on-the-same-page\">Two users see different results on the same page<\/h3>\n<p class=\"intro-text\">This is expected. Each user sees the data their Explorer security allows. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-odata-primer\/#security\">Security<\/a>.<\/p>\n<h3 id=\"numbers-sort-or-compare-wrongly\">Numbers sort or compare wrongly<\/h3>\n<p class=\"intro-text\">Sentinel <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Value<\/span>, attribute values and audit values are stored as text, so <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">'900' gt '1000'<\/span> is true. On database-backed objects, use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">OI.tonumber(...)<\/span>. Otherwise, convert the values on the page.<\/p>\n<p class=\"intro-text\">Form fields on <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SapiCases<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SapiIssues<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SapiSummaries<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SapiTimeWindows<\/span> keep their type, but a number compared with a quoted value is compared as text. Write <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">DeferredOil gt 900<\/span>, not <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">DeferredOil gt '900'<\/span>. A field that holds several values is text.<\/p>\n<p class=\"intro-text\">All Union output columns are text too.<\/p>\n<h3 id=\"times-are-a-few-hours-out\">Times are a few hours out<\/h3>\n<ul class=\"intro-text\">\n<li>OI OData returns times in UTC. Check the page and datasource time zone settings.<\/li>\n<li>Dates are stored, and the rolling-window functions (<span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">OI.daysago<\/span> and others) work, in UTC. Day and month boundaries are UTC midnight, not the site's. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-query-functions\/#current-time-and-time-zones\">Current time and time zones<\/a>.<\/li>\n<li>To group by a site's local hour or day, use <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-query-functions\/#time-zones\"><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">OI.attimezone<\/span><\/a>.<\/li>\n<\/ul>\n<h3 id=\"a-data-entry-field-shows-a-different-value-from-the-entry-in-explorer\">A data-entry field shows a different value from the entry in Explorer<\/h3>\n<p class=\"intro-text\">OI OData reads data-entry fields live from the historian when the query runs. If historian data was corrected, or the field's source time is \"Now\", the value differs from the one saved. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/entries-shift-log-and-case-management\/\">Live values for data-entry fields<\/a>.<\/p>\n<h3 id=\"the-dataset-times-out\">The dataset times out<\/h3>\n<ul class=\"intro-text\">\n<li>Filter first, and aggregate on the server.<\/li>\n<li>Use database-backed objects for searches and counts.<\/li>\n<li>On entries, select only the live data-entry fields you need, and filter on saved fields.<\/li>\n<li>If the query is already efficient, raise the datasource's <strong>Request Timeout<\/strong> in Core Management. This helps only up to the 30-second database query timeout.<\/li>\n<\/ul>\n<p class=\"intro-text\">See the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/limits-and-performance\/#performance-checklist\">Performance checklist<\/a>.<\/p>\n<h3 id=\"a-query-works-in-the-browser-but-fails-as-a-dataset\">A query works in the browser but fails as a dataset<\/h3>\n<ul class=\"intro-text\">\n<li><strong>The query contains a line break.<\/strong> Write dataset queries on one line.<\/li>\n<li><strong>The query starts with <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">\/odata\/<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">https:\/\/<\/span>.<\/strong> Start with the object name.<\/li>\n<li><strong>The query uses <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$expand<\/span>.<\/strong> It works in a browser, but not in a dataset.<\/li>\n<li><strong>A parameter value was already URL-encoded.<\/strong> <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataParam<\/span> encodes text values itself, so <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Oil%20Gas<\/span> is matched as that literal text. Pass the value as typed. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/parameters\/\">Parameters<\/a>.<\/li>\n<li><strong>The browser uses your security, and the page uses the viewer's.<\/strong> Try the query signed in as the affected user.<\/li>\n<\/ul>\n<hr \/>\n<p class=\"left-bar\"><strong>Related:<\/strong> \u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/server-troubleshooting\/\">Server Troubleshooting<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Common problems with OI OData datasets, and how to solve them. First step for any error: run the query in a browser. Sign in to Explorer, then open https:\/\/&lt;your-oi-server&gt;\/&lt;service-root&gt;\/odata\/&lt;your query&gt;, with any parameters replaced by real values. The browser shows the full error message from the OData service, which is\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/troubleshooting\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"parent":72744,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72894","page","type-page","status-publish","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72894","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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=72894"}],"version-history":[{"count":5,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72894\/revisions"}],"predecessor-version":[{"id":72925,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72894\/revisions\/72925"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72744"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=72894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=72894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=72894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}