<?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-1111 "No matching tables found!" error thrown after verifying entity mappings even though the tables exist</title><link>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1111 "No matching tables found!" error thrown after verifying entity mappings even though the tables exist</title><link>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist</link><pubDate>Tue, 17 Oct 2023 17:24:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9536ad1-cb5a-4cc1-97be-ddd2f81a06ca</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist#comments</comments><description>Current Revision posted to Appian Knowledge Base by Elly Meng on 10/17/2023 5:24:58 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Creating a data store and verifying the entity mappings fails with error message &lt;code&gt;No matching tables found!&lt;/code&gt; after confirming that the tables do exist in the database table or view.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The schema defined in the XSD is lowercased by Appian when verifying entity mappings. This creates a mismatch in casing between the data store and the entity mappings. This issue affects all Oracle datasources and SQL Server datasources that have case sensitive collation configured.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;There are two solutions to this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Lowercase the schema name in the database and add the schema attribute to the XSD.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a synonym with the exact name and case as the entity. For example if the entity is named &lt;strong&gt;MYENTITY&lt;/strong&gt; the steps are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;DROP SYNONYM XXXXX.MYENTITY;
DROP PUBLIC SYNONYM MYENTITY; 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As the Appian database user:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CREATE OR REPLACE SYNONYM MYENTITY FOR XXXXXX.MYENTITY;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will ensure that the datasource validation succeeds however querying this datasource would fail. In Oracle for example, the error is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ORA-00942: table or view does not exist 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is typically addressed by ensuring that the XSD entity has the appropriate annotation that maps to the above synonym. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@Table(name=&amp;quot;MYENTITY&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="workaround"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;For Oracle databases, use an alias for the schema that is lowercase.&lt;/p&gt;
&lt;p&gt;For SQL Server databases, configure case insensitive collation.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using Oracle or SQL Server datasources.&lt;/p&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: sql server, database, infrastructure, oracle&lt;/div&gt;
</description></item><item><title>KB-1111 "No matching tables found!" error thrown after verifying entity mappings even though the tables exist</title><link>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist/revision/2</link><pubDate>Mon, 30 Jul 2018 03:53:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9536ad1-cb5a-4cc1-97be-ddd2f81a06ca</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Parmida Borhani on 7/30/2018 3:53:47 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Creating a data store and verifying the entity mappings fails with error message &lt;code&gt;No matching tables found!&lt;/code&gt; after confirming that the tables do exist in the database table or view.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The schema defined in the XSD is lowercased by Appian when verifying entity mappings. This creates a mismatch in casing between the data store and the entity mappings. This issue affects all Oracle datasources and SQL Server datasources that have case sensitive collation configured.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;There are two solutions to this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Lowercase the schema name in the database and add the schema attribute to the XSD.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a synonym with the exact name and case as the entity. For example if the entity is named &lt;strong&gt;MYENTITY&lt;/strong&gt; the steps are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;DROP SYNONYM XXXXX.MYENTITY;
DROP PUBLIC SYNONYM MYENTITY; 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As the Appian database user:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CREATE OR REPLACE SYNONYM MYENTITY FOR XXXXXX.MYENTITY;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will ensure that the datasource validation succeeds however querying this datasource would fail. In Oracle for example, the error is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ORA-00942: table or view does not exist 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is typically addressed by ensuring that the XSD entity has the appropriate annotation that maps to the above synonym. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@Table(name=&amp;quot;MYENTITY&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="workaround"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;For Oracle databases, use an alias for the schema that is lowercase.&lt;/p&gt;
&lt;p&gt;For SQL Server databases, configure case insensitive collation.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using Oracle or SQL Server datasources.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: sql server, database, infrastructure, oracle&lt;/div&gt;
</description></item><item><title>KB-1111 "No matching tables found!" error thrown after verifying entity mappings even though the tables exist</title><link>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist/revision/1</link><pubDate>Fri, 24 Feb 2017 13:11:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9536ad1-cb5a-4cc1-97be-ddd2f81a06ca</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/333/kb-1111-no-matching-tables-found-error-thrown-after-verifying-entity-mappings-even-though-the-tables-exist#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/24/2017 1:11:21 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Creating a data store and verifying the entity mappings fails with error message &lt;code&gt;No matching tables found!&lt;/code&gt; after confirming that the tables do exist in the database table or view.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The schema defined in the XSD is lowercased by Appian when verifying entity mappings. This creates a mismatch in casing between the data store and the entity mappings. This issue affects all Oracle datasources and SQL Server datasources that have case sensitive collation configured.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;There are two solutions to this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Lowercase the schema name in the database and add the schema attribute to the XSD.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a synonym with the exact name and case as the entity. For example if the entity is named &lt;strong&gt;MYENTITY&lt;/strong&gt; the steps are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;DROP SYNONYM XXXXX.MYENTITY;
DROP PUBLIC SYNONYM MYENTITY; 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As the Appian database user:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CREATE OR REPLACE SYNONYM MYENTITY FOR XXXXXX.MYENTITY;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will ensure that the datasource validation succeeds however querying this datasource would fail. In Oracle for example, the error is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ORA-00942: table or view does not exist 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is typically addressed by ensuring that the XSD entity has the appropriate annotation that maps to the above synonym. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@Table(name=&amp;quot;MYENTITY&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="workaround"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;For Oracle databases, use an alias for the schema that is lowercase.&lt;/p&gt;
&lt;p&gt;For SQL Server databases, configure case insensitive collation.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using Oracle or SQL Server datasources.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

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