<?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>Import CSV to Database error</title><link>https://community.appian.com/discussions/f/general/13934/import-csv-to-database-error</link><description>Hi, 
 I&amp;#39;ve used Import CSV to database smart services and configured the parameters. But when I debug, it throws &amp;quot; java.lang.ClassCastException: org.apache.naming.NamingContext cannot be cast to javax.sql.DataSource &amp;quot; error. 
 Can someone pls help me</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/78938?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 06:12:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d772f10-c40c-4479-ad7b-dd71a6ce89cf</guid><dc:creator>srinathj0002</dc:creator><description>&lt;p&gt;Hi Thoufiq,&lt;/p&gt;
&lt;p&gt;I am getting&amp;nbsp;&lt;span&gt;???Incorrect syntax near &amp;#39;,&amp;#39;.??? error. There is no comma delimiter in my excel file. I have exact same column names defined in CDT and SQL table. Any idea?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63354?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 10:17:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d243d4bd-46db-4e57-9ac8-24a88b814b48</guid><dc:creator>mohamedt808</dc:creator><description>&lt;p&gt;It means your file has fewer columns than mentioned in the smart service. Please check your file column count and what you have configured for &amp;quot;columns to read in a row&amp;quot; in the smart service. &lt;br /&gt; &lt;br /&gt;Sometimes if there is accidentally a space entered in the&amp;nbsp;column adjacent, it will also causes this error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63352?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 09:43:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06d38522-5e8e-4084-b731-28812dfcff6d</guid><dc:creator>mpatram</dc:creator><description>Now I m getting &amp;quot;??? Unknown column &amp;quot; in field list???&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63350?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 09:15:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3882569d-8860-4223-8a00-d7775b278aaa</guid><dc:creator>mpatram</dc:creator><description>Applied ur suggestion, but now I am getting another error &amp;quot;??? Incorrect table name???&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63349?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 09:09:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af8ac70e-da75-435d-83a9-3536a8d93124</guid><dc:creator>mohamedt808</dc:creator><description>Create a constant and store the value &amp;quot;jdbc/Appian&amp;quot;  and use that constant as  the value in Data source of the smart service!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63348?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 09:05:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2b62262-6042-4ea2-b393-2eb23ab28581</guid><dc:creator>mpatram</dc:creator><description>I used the same in my data store. But import excel tondb plugin has a filed called data source, what should I use ther&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63347?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 09:01:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fdf74a8-1553-4c68-880a-ee4247e070f7</guid><dc:creator>mohamedt808</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have to use the&amp;nbsp;&amp;quot;Data Source&amp;quot; name in your Datastore(this is the drop down that you&amp;nbsp;select to define your Database - connection ).&lt;/p&gt;
&lt;p&gt;See the attached image.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Thoufiq.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/11/data-source.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/data-source.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63339?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:10:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9bdc0a8-5867-4c12-bb3c-80490f36ae63</guid><dc:creator>mpatram</dc:creator><description>Hi Chandu, thanks your response. I am new to Appian. still facing the same issue. Value in data source name field shows my data entity name. Do I need to give something else here, Am I missing something here?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63338?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:08:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31db9655-a84b-4c13-bf71-243bd491cd9f</guid><dc:creator>mpatram</dc:creator><description>Hi thoufiq, still facing the same issue. Value in data source name field shows my data entity name. Am I missing something here?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63305?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 11:00:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dbe3392-8b25-47be-9398-2974d04c3d30</guid><dc:creator>chandu</dc:creator><description>Looks like the issue is with the DataSoure parameter in Inputs tab, Please use the same JNDI name that is used for the Data Store&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63256?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 02:22:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1afccfd1-10e7-461e-a58a-f7b449082054</guid><dc:creator>mpatram</dc:creator><description>Thanks a lot Thoufiq...will try today and let you know. I am anew to Appian.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Import CSV to Database error</title><link>https://community.appian.com/thread/63248?ContentTypeID=1</link><pubDate>Sun, 09 Dec 2018 11:07:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58266e61-7315-441e-8262-1884b1f1aebe</guid><dc:creator>mohamedt808</dc:creator><description>HI , &lt;br /&gt;
Please validate the below configurations,&lt;br /&gt;
&lt;br /&gt;
Excel to database :&lt;br /&gt;
Document-&amp;gt; Your excel document&lt;br /&gt;
columns to read in a  row -&amp;gt; exact count of columns you want to read from the file &lt;br /&gt;
data source name -&amp;gt; Your data source name in your data store&lt;br /&gt;
new column (optional)-&amp;gt;Can be used to add more data that i snot contained in the file. For Example Batch ID can help in extracting all rows inserted part of file import.mention it as text array i.e. {&amp;quot;Batch ID&amp;quot;, &amp;quot;Date of import&amp;quot;}&lt;br /&gt;
new column value (optional)-&amp;gt; Value for new column. i.e.{ri!batchID,today()}&lt;br /&gt;
&lt;br /&gt;
you have to ensure your column names matches the file header names.&lt;br /&gt;
&lt;br /&gt;
If you still face issues please share a sample file , table structure and you rconfiguration so that can help you better to resolve this!!&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Thoufiq.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>