<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Trying to get  CDT mapped to a view</title><link>https://community.appian.com/discussions/f/data/19421/trying-to-get-cdt-mapped-to-a-view</link><description>Pulling my hair out. I m trying to create a CDT mapped to an existing view in my application&amp;#39;s mySQL database. Doing my best to follow these instructions: https://docs.appian.com/suite/help/20.2/Mapping_CDTs_to_Pre-defined_Database_Tables.html . I cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Trying to get  CDT mapped to a view</title><link>https://community.appian.com/thread/75970?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 19:46:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1086de27-5d3a-422f-891e-37840a3731d9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You can open the datastore and verify, but only as a precaution / to double check.&amp;nbsp; When things are working normally AFAIK this is an unnecessary step.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to get  CDT mapped to a view</title><link>https://community.appian.com/thread/75969?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 19:35:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1bd5d04b-4f30-4c62-ac6c-afb7f89ce3cd</guid><dc:creator>Edward Anthony Allen</dc:creator><description>&lt;p&gt;As I have done this several times, I was told that after doing what you suggest, that I open the Datastore ,Verify and then Save and Publish as the final step. Is this necessary? or am I doing an unnecessary step?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to get  CDT mapped to a view</title><link>https://community.appian.com/thread/75968?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 18:27:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c1cfa00-36f8-48b9-a0ad-f26710cc07da</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re just trying to create a new CDT based on an existing table/view, there shouldn&amp;#39;t be a step in the process where any DDL needs to come into it.&amp;nbsp; It&amp;#39;s pretty straightforward...&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;click &amp;quot;new&amp;quot; -&amp;gt; &amp;quot;data type&amp;quot;&lt;/li&gt;
&lt;li&gt;select &amp;quot;create from database table or view&amp;quot; radio button&lt;/li&gt;
&lt;li&gt;select the data source and the view name, click next&lt;/li&gt;
&lt;li&gt;the &amp;quot;create data type&amp;quot; form pops up with all the pre-populated column names;
&lt;ol&gt;
&lt;li&gt;the only catch here is that you need to force a primary key column by clicking on the &amp;quot;key&amp;quot; icon and selecting &amp;quot;primary key&amp;quot;; you need to do this even if it&amp;#39;s not really a primary key (in a view at least), though for querying reasons i&amp;#39;d strongly suggest you make sure there&amp;#39;s at least one column that will basically always have unique values under nominal conditions&lt;/li&gt;
&lt;li&gt;otherwise, just give the CDT a name (i suggest not using the pre-populated one), and select the Data Store&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;click &amp;quot;create&amp;quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;#39;s really all it takes.&amp;nbsp; I&amp;#39;m running through it as I type this to make sure.&amp;nbsp; No DDL files involved - where are you&amp;nbsp; seeing that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>