<?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 Re: Underlying DBMS error [ORA-00907: missing right parenthesis] in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326108#M8497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too get the same situation. Here i uses "Inner Join", but it is not enabled as a function in add query layer in arcgis pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;query:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select w.*, r.Total_plots from FGDABEDITZ40.SECTORTPSS AS w&lt;BR /&gt;Inner JOIN&lt;BR /&gt;(SELECT PLOTINTERNALID,SECTORTPSSNUMBER,COUNT(SECTORTPSSNUMBER) AS Total_plots FROM FGDABEDITZ40.PLOT GROUP BY SECTORTPSSNUMBER) AS r&lt;BR /&gt;ON w.SECTORTPSSNUMBER=r.SECTORTPSSNUMBER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2019 04:32:50 GMT</pubDate>
    <dc:creator>SaravananRaj</dc:creator>
    <dc:date>2019-06-24T04:32:50Z</dc:date>
    <item>
      <title>Underlying DBMS error [ORA-00907: missing right parenthesis]</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326104#M8493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am tring to query SDE Geodatabase with following query to find duplicate elments in a feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; IQueryFilter subiqf = new QueryFilter();&amp;nbsp; subiqf.setWhereClause(fieldName+" In (SELECT "+fieldName+" FROM "+className.getName()+"GROUP BY "+fieldName+" HAVING&amp;nbsp; Count(*)&amp;gt;1 )");&amp;nbsp; IFeatureCursor subresultCursor = className.search(subiqf, false);&amp;nbsp; IFeature subif = subresultCursor.nextFeature();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This qery works fine when i try for Personal geodatabase but when i try it on SDE it produces following error--&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: AutomationException: Underlying DBMS error [ORA-00907: missing right parenthesis&lt;BR /&gt;] [Data.Block]&lt;BR /&gt;Sample failed.&amp;nbsp; Exiting...&lt;BR /&gt;AutomationException: 0x80041538 - Underlying DBMS error [ORA-00907: missing right parenthesis] [Data.Block] in 'esriDataSourcesGDB.SdeWorkspace.1'&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and points to this line ---&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;IFeature subif = subresultCursor.nextFeature();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something i am missing for quring SDE geodatabase else why is it only working for PGBD and not SDE ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 11:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326104#M8493</guid>
      <dc:creator>IshanKaushik</dc:creator>
      <dc:date>2013-07-06T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Underlying DBMS error [ORA-00907: missing right parenthesis]</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326105#M8494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you have the last parenthesis placed wrong:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;subiqf.setWhereClause(fieldName+" In (SELECT "+fieldName+" FROM "+className.getName()+"GROUP BY "+fieldName+" HAVING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Count(*)&amp;gt;1 )"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;subiqf.setWhereClause(fieldName+" In (SELECT "+fieldName+" FROM "+className.getName()+"GROUP BY "+fieldName+" HAVING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Count(*)&amp;gt;1 )&lt;/SPAN&gt;&lt;STRONG&gt;)"&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 12:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326105#M8494</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-07-06T12:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Underlying DBMS error [ORA-00907: missing right parenthesis]</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326106#M8495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The parentheses should be correct.&amp;nbsp; I think you are missing a space before the words GROUP BY and that the underlying SDE database parsing is not as forgiving as the parsing done by the personal geodatabase Microsoft Jet database engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; subiqf.setWhereClause(fieldName+" In (SELECT "+fieldName+" FROM "+className.getName()+" GROUP BY "+fieldName+" HAVING Count(*)&amp;gt;1 )");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that isn't it you need to share exactly what database underlies your SDE and look up the particular SQL syntax required for this kind of selection associated with that database.&amp;nbsp; Not all SQL is exactly alike across all databases and similar behaviors can differ in seemingly minor, but nonetheless important ways.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 14:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326106#M8495</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-07-06T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Underlying DBMS error [ORA-00907: missing right parenthesis]</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326107#M8496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The parentheses should be correct.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're right, my mistake in the first post, the parentheses are correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think you are missing a space before the words GROUP BY and that the underlying SDE database parsing is not as forgiving as the parsing done by the personal geodatabase Microsoft Jet database engine.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The missing space is good catch. I doubt Oracle would accept it, and it is amazing the Jet engine does... I usually insert a debug line after such dynamically created SQL queries, helps in catching these errors by reviewing the statement before processing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2013 07:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326107#M8496</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-07-07T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Underlying DBMS error [ORA-00907: missing right parenthesis]</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326108#M8497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too get the same situation. Here i uses "Inner Join", but it is not enabled as a function in add query layer in arcgis pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;query:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select w.*, r.Total_plots from FGDABEDITZ40.SECTORTPSS AS w&lt;BR /&gt;Inner JOIN&lt;BR /&gt;(SELECT PLOTINTERNALID,SECTORTPSSNUMBER,COUNT(SECTORTPSSNUMBER) AS Total_plots FROM FGDABEDITZ40.PLOT GROUP BY SECTORTPSSNUMBER) AS r&lt;BR /&gt;ON w.SECTORTPSSNUMBER=r.SECTORTPSSNUMBER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 04:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/underlying-dbms-error-ora-00907-missing-right/m-p/326108#M8497</guid>
      <dc:creator>SaravananRaj</dc:creator>
      <dc:date>2019-06-24T04:32:50Z</dc:date>
    </item>
  </channel>
</rss>

