<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JTX 9.3.1 Job Query SQL Error - Insufficient Permissions in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/jtx-9-3-1-job-query-sql-error-insufficient/m-p/332783#M675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an 'Insufficient Permissions' error with a job query in which I would like the jobs on hold not to show up in the jobs in progress list.&amp;nbsp; The query works fine in Oracle, and is successfully verified in JTX Configuration, but then I get an error when trying to save the query.&amp;nbsp; The error seems to be generated from the last condition in the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JTX_JOBS.JOB_ID NOT IN &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(SELECT JOB_ID FROM JTX_JOB_HOLDS WHERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(JTX_JOB_HOLDS.RELEASED_DATE IS NULL))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full query is attached.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew McColgan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Computer Software Specialist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Memphis Light, Gas, and Water&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Aug 2010 12:30:21 GMT</pubDate>
    <dc:creator>AndrewMcColgan</dc:creator>
    <dc:date>2010-08-24T12:30:21Z</dc:date>
    <item>
      <title>JTX 9.3.1 Job Query SQL Error - Insufficient Permissions</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/jtx-9-3-1-job-query-sql-error-insufficient/m-p/332783#M675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an 'Insufficient Permissions' error with a job query in which I would like the jobs on hold not to show up in the jobs in progress list.&amp;nbsp; The query works fine in Oracle, and is successfully verified in JTX Configuration, but then I get an error when trying to save the query.&amp;nbsp; The error seems to be generated from the last condition in the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JTX_JOBS.JOB_ID NOT IN &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(SELECT JOB_ID FROM JTX_JOB_HOLDS WHERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(JTX_JOB_HOLDS.RELEASED_DATE IS NULL))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full query is attached.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew McColgan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Computer Software Specialist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Memphis Light, Gas, and Water&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 12:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/jtx-9-3-1-job-query-sql-error-insufficient/m-p/332783#M675</guid>
      <dc:creator>AndrewMcColgan</dc:creator>
      <dc:date>2010-08-24T12:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: JTX 9.3.1 Job Query SQL Error - Insufficient Permissions</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/jtx-9-3-1-job-query-sql-error-insufficient/m-p/332784#M676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The JTX query framework expects you to always select a field from the jobs table. If the "Jobs" table is not in the "FROM" clause, the query is not considered valid. Unfortunately the error message displayed is probably not that accurate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To accomplish what you are trying to do, here is what I did - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JTX_JOBS.JOB_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JTX_JOBS,sde.jtx94.JTX_JOB_HOLDS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.jtx94.JTX_JOB_HOLDS.job_id = sde.jtx94.JTX_JOBS.job_id&amp;nbsp; AND sde.jtx94.JTX_JOB_HOLDS.released_date&amp;nbsp; IS Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, I am selecting job id from the jobs table where the released date is null. I had to do a join of the jobs table to the holds table, hence the jobs.job_id = holds.job_id&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tope&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 23:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/jtx-9-3-1-job-query-sql-error-insufficient/m-p/332784#M676</guid>
      <dc:creator>TopeBello</dc:creator>
      <dc:date>2010-08-24T23:55:45Z</dc:date>
    </item>
  </channel>
</rss>

