<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi || Mail || Display csv files content in tabular format. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286596#M212539</link>
    <description>&lt;P&gt;I understand you are not able to figure out the exact ReplaceText syntax that you need. &amp;nbsp;I have quickly created a flow and validated the following works as demonstrated. &amp;nbsp;I had to use \t to match your string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-30 at 12.27.11 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25884i8707EC15729DA1EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-30 at 12.27.11 PM.png" alt="Screen Shot 2019-12-30 at 12.27.11 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-30 at 12.26.53 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25885iA409483565ECFDC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-30 at 12.26.53 PM.png" alt="Screen Shot 2019-12-30 at 12.26.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The regex you need is: &amp;nbsp;&lt;/P&gt;&lt;P&gt;${'$1':replace(',','\t')}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table formatting is something entirely different and is not part of "csv" parsing....&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 17:31:04 GMT</pubDate>
    <dc:creator>stevenmatison</dc:creator>
    <dc:date>2019-12-30T17:31:04Z</dc:date>
    <item>
      <title>Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286560#M212515</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to display the records of csv file over mail body in tabular format using Putmail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am extracting records by executing sql which is scheduled at some duration and than forwarding the same using putmail to some specific users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please tell me how to display the data of generated csv file in tabular format.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="current_flow_1.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25873i052B8F0B2C9ED51B/image-size/large?v=v2&amp;amp;px=999" role="button" title="current_flow_1.png" alt="current_flow_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 08:11:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286560#M212515</guid>
      <dc:creator>ashishtiw26</dc:creator>
      <dc:date>2019-12-30T08:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286587#M212533</link>
      <description>&lt;P&gt;A replaceText processor can change from Comma Separated to Tab Separated. &amp;nbsp;This would be the easiest option. &amp;nbsp; Configured with [tab] in Search Value, and [,] in Replacement Value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-30 at 9.29.24 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25882i63551040BAC6AB29/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-30 at 9.29.24 AM.png" alt="Screen Shot 2019-12-30 at 9.29.24 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 14:30:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286587#M212533</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2019-12-30T14:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286590#M212536</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing the same by replacetext but I am getting the output as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Release Cause,Previous Count,Current Count,Change_Ratio,SEVERITY&lt;/P&gt;&lt;P&gt;test_data,276,730,1.644927536231884058,Critical&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i want the same output in tabular format:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Release Cause&lt;/TD&gt;&lt;TD&gt;Previous Count&lt;/TD&gt;&lt;TD&gt;Current Count&lt;/TD&gt;&lt;TD&gt;Change_Ratio&lt;/TD&gt;&lt;TD&gt;SEVERITY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;test_data&lt;/TD&gt;&lt;TD&gt;276&lt;/TD&gt;&lt;TD&gt;730&lt;/TD&gt;&lt;TD&gt;1.644927536231884058&lt;/TD&gt;&lt;TD&gt;Critical&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help for the same.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 15:43:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286590#M212536</guid>
      <dc:creator>ashishtiw26</dc:creator>
      <dc:date>2019-12-30T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286591#M212537</link>
      <description>&lt;P&gt;If the output is still comma separated, then replace text did not work. &amp;nbsp;The solution above is how you do it. &amp;nbsp;You may need to experiment with other replacements. For example maybe \t instead of [tab]. &amp;nbsp;Again, the method above is what you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a similar post that includes some of the other forms of "tab"...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/How-best-to-replace-all-TABs-t-by-COMMAs-in-the-content-of-a/m-p/225115" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/How-best-to-replace-all-TABs-t-by-COMMAs-in-the-content-of-a/m-p/225115&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:39:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286591#M212537</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2019-12-30T16:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286593#M212538</link>
      <description>&lt;P&gt;Thanks for your help but this is not solving my problem as i want the csv record which itself is in comma separated to be displayed in tabular format as in my mail body through PUTMAIL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want records to be displayed in table format rather than comma separated or tab one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have comma separated record :&lt;/P&gt;&lt;P&gt;Release Cause,Previous Count,Current Count,Change_Ratio,SEVERITY&lt;/P&gt;&lt;P&gt;SIP: [487] Request Terminated,173,393,1.271676300578034682,Critical&lt;/P&gt;&lt;P&gt;and I want like this in mail body:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Release Cause&lt;/TD&gt;&lt;TD&gt;Previous Count&lt;/TD&gt;&lt;TD&gt;Current Count&lt;/TD&gt;&lt;TD&gt;Change_Ratio&lt;/TD&gt;&lt;TD&gt;SEVERITY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;test_data&lt;/TD&gt;&lt;TD&gt;276&lt;/TD&gt;&lt;TD&gt;730&lt;/TD&gt;&lt;TD&gt;1.644927536231884058&lt;/TD&gt;&lt;TD&gt;Critical&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest a suitable method in order to do the same.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:19:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286593#M212538</guid>
      <dc:creator>ashishtiw26</dc:creator>
      <dc:date>2019-12-30T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286596#M212539</link>
      <description>&lt;P&gt;I understand you are not able to figure out the exact ReplaceText syntax that you need. &amp;nbsp;I have quickly created a flow and validated the following works as demonstrated. &amp;nbsp;I had to use \t to match your string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-30 at 12.27.11 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25884i8707EC15729DA1EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-30 at 12.27.11 PM.png" alt="Screen Shot 2019-12-30 at 12.27.11 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-30 at 12.26.53 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25885iA409483565ECFDC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-30 at 12.26.53 PM.png" alt="Screen Shot 2019-12-30 at 12.26.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The regex you need is: &amp;nbsp;&lt;/P&gt;&lt;P&gt;${'$1':replace(',','\t')}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table formatting is something entirely different and is not part of "csv" parsing....&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:31:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286596#M212539</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2019-12-30T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286598#M212540</link>
      <description>&lt;P&gt;To get it into a table, you need something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;BR /&gt;${'$1':replace(',','&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'):replace('\n','&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;')}&lt;BR /&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it should output an HTML Table like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;BR /&gt;Release Cause&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Previous Count&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Current Count&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Change_Ratio&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;SEVERITY&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;SIP: [487] Request Terminated&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;173&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;393&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1.271676300578034682&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Critical&lt;BR /&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have to play with the last &amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt; depending on if you have an empty line on bottom or not.&lt;/P&gt;&lt;P&gt;You may also have to adjust \n to \r\n again depending on the source file actual return chars (not seen they are hidden).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:53:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286598#M212540</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2019-12-30T17:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286662#M212568</link>
      <description>&lt;P&gt;Thanks Stevenmatison.&lt;/P&gt;&lt;P&gt;It worked!!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 07:39:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286662#M212568</guid>
      <dc:creator>ashishtiw26</dc:creator>
      <dc:date>2019-12-31T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286700#M212590</link>
      <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution worked well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i have a question related to this topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Putemail, for the solution you provided i am using content type 'text\html' which is delivering result in table format (in mail body) but&amp;nbsp; i am also attaching csv&amp;nbsp; in my mail.&lt;/P&gt;&lt;P&gt;Now this csv is also displaying data with html tag, is it possible to display the data in original form.(only csv format for attachment without html tag).&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2020 06:49:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/286700#M212590</guid>
      <dc:creator>ashishtiw26</dc:creator>
      <dc:date>2020-01-01T06:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/325795#M229725</link>
      <description>&lt;P&gt;Hello Ashish,&lt;/P&gt;&lt;P&gt;Wanted to check whether you were able to solve this problem. As I have to do something similar. Your help would be appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 07:39:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/325795#M229725</guid>
      <dc:creator>Sumita</dc:creator>
      <dc:date>2021-09-30T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi || Mail || Display csv files content in tabular format.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/325947#M229757</link>
      <description>&lt;P&gt;Yes Sumita, it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 05:56:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Mail-Display-csv-files-content-in-tabular-format/m-p/325947#M229757</guid>
      <dc:creator>ashishtiw26</dc:creator>
      <dc:date>2021-10-01T05:56:54Z</dc:date>
    </item>
  </channel>
</rss>

