<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1053 "ORA-00904: "XXXX": invalid identifier" or "ORA-02289: sequence does not exist" errors thrown when running Query Database smart service</title><link>https://community.appian.com/support/w/kb/278/kb-1053-ora-00904-xxxx-invalid-identifier-or-ora-02289-sequence-does-not-exist-errors-thrown-when-running-query-database-smart-service</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1053 "ORA-00904: "XXXX": invalid identifier" or "ORA-02289: sequence does not exist" errors thrown when running Query Database smart service</title><link>https://community.appian.com/support/w/kb/278/kb-1053-ora-00904-xxxx-invalid-identifier-or-ora-02289-sequence-does-not-exist-errors-thrown-when-running-query-database-smart-service</link><pubDate>Tue, 14 Feb 2017 18:53:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a025a1d9-404a-4f2b-9ad4-ff718283657b</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/278/kb-1053-ora-00904-xxxx-invalid-identifier-or-ora-02289-sequence-does-not-exist-errors-thrown-when-running-query-database-smart-service#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 6:53:46 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;If an Oracle database was recently upgraded or migrated, either of the following errors could appear in the form of an Appian alert when running the Query Database smart service:&lt;/p&gt;
&lt;pre&gt;There was a problem executing the SQL query. SQL Message : ORA-00904: &amp;quot;XXXX&amp;quot;: invalid identifier
&lt;/pre&gt;
&lt;pre&gt;There was a problem executing the SQL query. SQL Message : ORA-02289: sequence does not exist
&lt;/pre&gt;
&lt;p&gt;The same error will also be seen in application server log.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The above errors mean Appian is unable to see those objects in the configured schema. The following are possible reasons for this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the database has been upgraded or migrated recently, then the original data may not have been migrated properly or at all.&lt;/li&gt;
&lt;li&gt;If using JBoss, &lt;strong&gt;appian-ds.xml&lt;/strong&gt; may be misconfigured and pointing to the wrong schema. Alternatively, the user account may not have enough permissions to see the objects, tables, or sequences in the schema.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Have your DBA verify the integrity of the migration by redoing the migration in the database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If using JBoss, make sure &lt;strong&gt;appian-ds.xml&lt;/strong&gt; is properly configured to point to the correct schema and the user account has sufficient permissions over the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, process models, application design, oracle&lt;/div&gt;
</description></item></channel></rss>