<?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>Read first line of .csv file</title><link>https://community.appian.com/discussions/f/plug-ins/20646/read-first-line-of-csv-file</link><description>Hi all, 
 I am using the plugin excel tools to import a csv file to db. 
 But after that I want to validate the headers just to see if the column names are the same defined in the db. 
 
 I tried the function 
 
 
 But I only got an error saying &amp;quot;evalution</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Read first line of .csv file</title><link>https://community.appian.com/thread/80471?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 10:32:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbdfa846-edb1-4783-8586-d394c705c071</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;A CSV file is just text. So you can use readtextfromfile() to do that. Depends a bit on the size of the file. There is a plugin &amp;quot;Text File Function&amp;quot; which allows you to read just a part of the file.&lt;/p&gt;
&lt;p&gt;In the end do something in the line of: Read first line, split by separator, check each value in a forEach&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read first line of .csv file</title><link>https://community.appian.com/thread/80470?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 10:16:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:371abff7-e523-4c77-a0de-332357fbf1b3</guid><dc:creator>filipe.ventura</dc:creator><description>&lt;p&gt;It is a CSV file.&lt;/p&gt;
&lt;p&gt;But if &lt;span&gt;readexcelsheet only works with excel files there is a way to do it with csv files?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read first line of .csv file</title><link>https://community.appian.com/thread/80466?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 06:46:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62a1d6e9-d5a1-4cc5-8d99-f9fdd580d41b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm ... is this a CSV file or an EXCEL file? I think that readexcelsheet() can only read EXCEL files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>