<?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 the first line of a CSV</title><link>https://community.appian.com/discussions/f/new-to-appian/25196/read-the-first-line-of-a-csv</link><description>Does anyone know how to read the first line of a CSV? 
 I have tried the readcsvlogpaging() function but it only works for files that are in the logs directory, and the readexcelsheetpaging() function does not work for CSV documents. 
 Any ideas? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Read the first line of a CSV</title><link>https://community.appian.com/thread/110047?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 05:14:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3950cdcf-46cd-42da-b5ea-1a0d1fc4c2b6</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;I am not aware of any way&amp;nbsp;to read csv directly within the Appian. It has to be loaded&amp;nbsp;into DB first and then retrieve from the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the first line of a CSV</title><link>https://community.appian.com/thread/110010?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 16:27:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad7633e2-ae6f-4ec4-bc36-2df9bf4a18da</guid><dc:creator>luis_acosta</dc:creator><description>&lt;p&gt;Hey, vgarcmon. Have you tried to change the BatchSize parameter? It is one of the most common unnattended recomendations, because documentation doesn&amp;acute;t recommend setting this paremeter to -1, which means &amp;quot;extract all the registers at once&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the first line of a CSV</title><link>https://community.appian.com/thread/97753?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 14:31:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8de12abc-efc2-4dcb-96b3-8360de76ac51</guid><dc:creator>vgarcmon</dc:creator><description>&lt;p&gt;They are files of about 100MB that we load automatically from a repository, and to verify the correct structure of these I need to keep the &amp;quot;headers&amp;quot; to validate them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the first line of a CSV</title><link>https://community.appian.com/thread/97752?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 14:29:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:307b1e4b-a6c1-4a94-b4e5-99e04def4945</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Oof -- How large is the CSV?&amp;nbsp; Where is it coming from, and do you have any alternatives?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the first line of a CSV</title><link>https://community.appian.com/thread/97751?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 14:28:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49e8d005-117c-408e-a87b-b250ed4d0c92</guid><dc:creator>vgarcmon</dc:creator><description>&lt;p&gt;I have also tried the readtextfromfile() function but the file is very large and I get the following error: The Memory Circuit Breaker prevented this evaluation from completing due to insufficient resources. Is there any way to limit this reading?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the first line of a CSV</title><link>https://community.appian.com/thread/97750?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 14:24:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90385441-9abb-4005-872d-1ae17eb118ea</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;A CSV file is really just text (just in a particular format).&amp;nbsp; I think you might be able to leverage a rule that reads the contents of a text file - i&amp;#39;ll look around and see if I remember the one I was thinking of.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>