<?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: ReplaceText doesn't work properly in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199209#M161249</link>
    <description>&lt;P&gt;No problem.if your existing approach is not working. Please.share.some.info regarding your convert record processor etc and same dataset it is passing for and is failing for&lt;/P&gt;&lt;P&gt; I can look in further&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 17:33:21 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-30T17:33:21Z</dc:date>
    <item>
      <title>ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199203#M161243</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/67437-flow.jpg"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/67438-replacetext.jpg"&gt;replacetext.jpg&lt;/A&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;I want to create a CSV file on a monthly bases by executing a SQL script. For this I am using ExecuteSQL processor and ConvertAvroToJSON, SplitJSON, EvaluateJsonPath, ReplaceText and PutFile. &lt;BR /&gt;&lt;BR /&gt;My problem is with ReplaceText processor. Provide a list with empty values even if the JSON values are there and are valid. Please see the attached files. I tried every recommended solution provided here on community but didn't help me.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Stefan&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7253i6D4E8154DF44E68B/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="executesql.jpg" title="executesql.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7254iE591F90A53317994/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="evaluatejsonpath.jpg" title="evaluatejsonpath.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7256iE4BB1E182B8A4661/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="splitjson.jpg" title="splitjson.jpg" /&gt;</description>
      <pubDate>Thu, 29 Mar 2018 18:31:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199203#M161243</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-03-29T18:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199204#M161244</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/70171/stefan-constantin18.html" nodeid="70171" target="_blank"&gt;@Stefan Constantin&lt;/A&gt;&lt;P&gt;Could you please change the below properties in Replace text processor and run again &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64935-replacetext.png" style="width: 1471px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17671iEE09466BD7B0C49F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64935-replacetext.png" alt="64935-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure you are using same attribute names(case sensitive) in replace text processor those are matching with evaluatejson path processor.&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;More optimal way of doing this use case is if you are using NiFi 1.2+ then use &lt;STRONG&gt;ConvertRecord&lt;/STRONG&gt; processor with Avro Reader as record reader and CSV Set writer as Record setwriter this processor even accepts array of json messages and does conversion to CSV.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Executesql&lt;BR /&gt;ConvertRecord&lt;BR /&gt;PutFile&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://blogs.apache.org/nifi/entry/record-oriented-data-with-nifi" target="_blank" rel="nofollow noopener noreferrer"&gt;This&lt;/A&gt; Link describes how to use Convert Record processor.&lt;/P&gt;&lt;P&gt;Let us know if you are having any issues..!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:57:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199204#M161244</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T05:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199205#M161245</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, both flows didn't work. First one, with ReplaceText having the properties you mentioned still outputted empty values even though the attributes are the same.&lt;BR /&gt;For the second one with ConvertRecord, I receive this error: Failed to process StandardFlowFileRecord[...] will route to failure: java.lang.ArrayIndexOutOfBoundsException: -40
java.lang.ArrayIndexOutOfBoundsException: -40 &lt;BR /&gt;&lt;BR /&gt;I even try to convert the Avro to JSON and then to pass to ConvertRecord but still the same error...&lt;BR /&gt;&lt;BR /&gt;Any help will be welcomed ! Thank you !&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 23:11:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199205#M161245</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-03-29T23:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199206#M161246</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70171/stefan-constantin18.html" nodeid="70171"&gt;@Stefan Constantin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are using NiFi 1.2+, I would highly recommend NOT using EvaluateJSONPath. Now talking about the alternate approach, which is using ConvertRecord where you are facing arrayIndexOutOfBoundException, the problem probably is with your schema. Use default null values for your columns in your schema for ConvertRecord Processor like.&lt;/P&gt;&lt;PRE&gt;{
"type":"record",
"name":"nifi_logs",
"fields":[
	{"name":"column1","type":["null","string"]},
	{"name":"column2","type":["null","string"]},
	{"name":"column3","type":["null","string"]},
	{"name":"column4","type":["null","string"]}
	]
}&lt;/PRE&gt;&lt;P&gt;Try this and let know if you still face any problems.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 09:55:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199206#M161246</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-30T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199207#M161247</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/66220/rsoni.html" nodeid="66220"&gt;@Rahul Soni&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Since beggining I tried with null like default values but still I receive that error. Also I validated the JSON so is OK, here is my JSON: &lt;BR /&gt;&lt;BR /&gt;{
  "type": "record",
  "name": "DnpReport",
  "fields" : [
    {"name": "inv_idn", "type": ["null", "string"]},
    {"name": "inv_number", "type": ["null", "string"]},
    {"name": "usr_mdf", "type": ["null", "string"]},
    {"name": "invIssDat", "type": ["null", "string"]},
    {"name": "invCliCod", "type": ["null", "string"]},
    {"name": "invCliNam", "type": ["null", "string"]},
    {"name": "invCli_RegCountry", "type": ["null", "string"]},
    {"name": "invoiceClass", "type": ["null", "string"]},
    {"name": "corCliCod", "type": ["null", "string"]},
    {"name": "ofoChiNmb", "type": ["null", "string"]},
    {"name": "bsnCtgDsc", "type": ["null", "string"]},
    {"name": "bsnCtgCod", "type": ["null", "string"]},
    {"name": "bsnCtgDspCod", "type": ["null", "string"]},
{"name": "invTyp", "type": ["null", "string"]},
{"name": "invStu", "type": ["null", "string"]},
{"name": "invOrgCod", "type": ["null", "string"]},
{"name": "cryCod", "type": ["null", "string"]},
{"name": "amnWthVat", "type": ["null", "string"]},
{"name": "amnWthVatInEur", "type": ["null", "string"]},
{"name": "mediaFeesInEur", "type": ["null", "string"]},
{"name": "kcFeesInEur", "type": ["null", "string"]}
]
}&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 15:10:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199207#M161247</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-03-30T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199208#M161248</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/66220/rsoni.html" nodeid="66220"&gt;@Rahul Soni&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Do you have any other ideas ? Thank you !&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 17:18:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199208#M161248</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-03-30T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199209#M161249</link>
      <description>&lt;P&gt;No problem.if your existing approach is not working. Please.share.some.info regarding your convert record processor etc and same dataset it is passing for and is failing for&lt;/P&gt;&lt;P&gt; I can look in further&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 17:33:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199209#M161249</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-30T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199210#M161250</link>
      <description>&lt;PRE&gt;Json input:  [ {
  "INV_IDN" : "247048764",
  "INV_NUMBER" : "181120060",
  "USR_MDF" : "15/03/2018 08:34:00 by LDL",
  "INVISSDAT" : "15/03/2018",
  "INVCLICOD" : "FUNDQ",
  "INVCLINAM" : "FUNDQUEST",
  "INVCLI_REGCOUNTRY" : "FR",
  "INVOICECLASS" : "CUS - assujetti in EU outside Lx",
  "CORCLICOD" : "BNPAMFR",
  "OFOCHINMB" : "20173748",
  "BSNCTGDSC" : "Fund Data Management",
  "BSNCTGCOD" : "LIS",
  "BSNCTGDSPCOD" : "FDM",
  "INVTYP" : "Credit Note",
  "INVSTU" : "Validated",
  "INVORGCOD" : "LU",
  "CRYCOD" : "EUR",
  "AMNWTHVAT" : "-7,543.23",
  "AMNWTHVATINEUR" : "-7,543.23",
  "MEDIAFEESINEUR" : "0",
  "KCFEESINEUR" : "-7543.23"
} ]&lt;BR /&gt;&lt;BR /&gt;Json schema: {
  "type": "record",
  "name": "DnpReport",
  "fields" : [
    {"name": "inv_idn", "type": ["null", "string"]},
    {"name": "inv_number", "type": ["null", "string"]},
    {"name": "usr_mdf", "type": ["null", "string"]},
    {"name": "invIssDat", "type": ["null", "string"]},
    {"name": "invCliCod", "type": ["null", "string"]},
    {"name": "invCliNam", "type": ["null", "string"]},
    {"name": "invCli_RegCountry", "type": ["null", "string"]},
    {"name": "invoiceClass", "type": ["null", "string"]},
    {"name": "corCliCod", "type": ["null", "string"]},
    {"name": "ofoChiNmb", "type": ["null", "string"]},
    {"name": "bsnCtgDsc", "type": ["null", "string"]},
    {"name": "bsnCtgCod", "type": ["null", "string"]},
    {"name": "bsnCtgDspCod", "type": ["null", "string"]},
	{"name": "invTyp", "type": ["null", "string"]},
	{"name": "invStu", "type": ["null", "string"]},
	{"name": "invOrgCod", "type": ["null", "string"]},
	{"name": "cryCod", "type": ["null", "string"]},
	{"name": "amnWthVat", "type": ["null", "string"]},
	{"name": "amnWthVatInEur", "type": ["null", "string"]},
	{"name": "mediaFeesInEur", "type": ["null", "string"]},
	{"name": "kcFeesInEur", "type": ["null", "string"]}
	]
}
&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Mar 2018 19:12:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199210#M161250</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-03-30T19:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199211#M161251</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/70171/stefan-constantin18.html" nodeid="70171"&gt;@Stefan Constantin&lt;/A&gt;&lt;P&gt;The issue is with your json schema because schema key names are not matching with json message key names as json schema having &lt;STRONG&gt;lower case,camel case&lt;/STRONG&gt; in name value but json message having upper case names (inv_idn,INV_IDN)&lt;/P&gt;&lt;P&gt;Change the schema in Avro Schema registry to match with incoming json names(i.e upper case) everything will work as expected&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Json Schema:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "type": "record",
  "name": "DnpReport",
  "fields" : [
    {"name": "INV_IDN", "type": ["null", "string"]},
    {"name": "INV_NUMBER", "type": ["null", "string"]},
    {"name": "USR_MDF", "type": ["null", "string"]},
    {"name": "INVISSDAT", "type": ["null", "string"]},
    {"name": "INVCLICOD", "type": ["null", "string"]},
    {"name": "INVCLINAM", "type": ["null", "string"]},
    {"name": "INVCLI_REGCOUNTRY", "type": ["null", "string"]},
    {"name": "INVOICECLASS", "type": ["null", "string"]},
    {"name": "CORCLICOD", "type": ["null", "string"]},
    {"name": "OFOCHINMB", "type": ["null", "string"]},
    {"name": "BSNCTGDSC", "type": ["null", "string"]},
    {"name": "BSNCTGCOD", "type": ["null", "string"]},
    {"name": "BSNCTGDSPCOD", "type": ["null", "string"]},
{"name": "INVTYP", "type": ["null", "string"]},
{"name": "INVSTU", "type": ["null", "string"]},
{"name": "INVORGCOD", "type": ["null", "string"]},
{"name": "CRYCOD", "type": ["null", "string"]},
{"name": "AMNWTHVAT", "type": ["null", "string"]},
{"name": "AMNWTHVATINEUR", "type": ["null", "string"]},
{"name": "MEDIAFEESINEUR", "type": ["null", "string"]},
{"name": "KCFEESINEUR", "type": ["null", "string"]}
]
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;INV_IDN,INV_NUMBER,USR_MDF,INVISSDAT,INVCLICOD,INVCLINAM,INVCLI_REGCOUNTRY,INVOICECLASS,CORCLICOD,OFOCHINMB,BSNCTGDSC,BSNCTGCOD,BSNCTGDSPCOD,INVTYP,INVSTU,INVORGCOD,CRYCOD,AMNWTHVAT,AMNWTHVATINEUR,MEDIAFEESINEUR,KCFEESINEUR
247048764,181120060,15/03/2018 08:34:00 by LDL,15/03/2018,FUNDQ,FUNDQUEST,FR,CUS - assujetti in EU outside Lx,BNPAMFR,20173748,Fund Data Management,LIS,FDM,Credit Note,Validated,LU,EUR,"-7,543.23","-7,543.23",0,-7543.23&lt;/PRE&gt;&lt;P&gt;Reference template:-&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/67452-181962-csv.xml"&gt;181962-csv.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 20:06:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199211#M161251</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-30T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199212#M161252</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/70171/stefan-constantin18.html" nodeid="70171" target="_blank"&gt;@Stefan Constantin&lt;/A&gt;&lt;P&gt;If you want header with lower and camel case names then in &lt;STRONG&gt;csvsetwriter &lt;/STRONG&gt;controller change the below property to false.&lt;BR /&gt;&lt;STRONG&gt;Include Header Line&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;false&lt;/PRE&gt;&lt;P&gt;now we are not going to get the header line included in the output flowfile, then use &lt;STRONG&gt;Replace text &lt;/STRONG&gt;processor to add our own header to the file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Replace text configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67453-replacetext.png" style="width: 1750px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17670iF4566D2CF9C636D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67453-replacetext.png" alt="67453-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search Value
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;(?s)(^.*$)&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Replacement Value
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;inv_idn,inv_number,usr_mdf,invIssDat,invCliCod,invCliNam,invCli_RegCountry,invoiceClass,corCliCod,ofoChiNmb,bsnCtgDsc,bsnCtgCod,bsnCtgDspCod,invTyp,invStu,invOrgCod,cryCod,amnWthVat,amnWthVatInEur,mediaFeesInEur,kcFeesInEur&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Character Set
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;UTF-8&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Maximum Buffer Size
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;1 MB //needs to change the value according to the file size that we are getting after convertrecord processor&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Replacement Strategy
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Prepend //we are prepend the the content with the above header line&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Evaluation Mode
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Entire text&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Input content:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;247048764,181120060,15/03/2018 08:34:00 by LDL,15/03/2018,FUNDQ,FUNDQUEST,FR,CUS - assujetti in EU outside Lx,BNPAMFR,20173748,Fund Data Management,LIS,FDM,Credit Note,Validated,LU,EUR,"-7,543.23","-7,543.23",0,-7543.23&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output Content:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;inv_idn,inv_number,usr_mdf,invIssDat,invCliCod,invCliNam,invCli_RegCountry,invoiceClass,corCliCod,ofoChiNmb,bsnCtgDsc,bsnCtgCod,bsnCtgDspCod,invTyp,invStu,invOrgCod,cryCod,amnWthVat,amnWthVatInEur,mediaFeesInEur,kcFeesInEur
247048764,181120060,15/03/2018 08:34:00 by LDL,15/03/2018,FUNDQ,FUNDQUEST,FR,CUS - assujetti in EU outside Lx,BNPAMFR,20173748,Fund Data Management,LIS,FDM,Credit Note,Validated,LU,EUR,"-7,543.23","-7,543.23",0,-7543.23&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:57:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199212#M161252</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T05:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199213#M161253</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I didn't added here but of course I tried also with upper letters and still the same issue with ConvertRecord.&lt;BR /&gt;With the EvaluateJsonPath, same issue again. I tried many other things but nothing worked. I was thinking that it will be really easy to output a file from a simple select query from a table but it seems that is not like that..&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 21:44:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199213#M161253</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-03-30T21:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199214#M161254</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70171/stefan-constantin18.html" nodeid="70171" target="_blank"&gt;@Stefan Constantin&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As you are doing ExecuteSql to pull data the format of output flowfile is in Avro and having embedded schema with the content so we can use Embedded AvroSchema as the Schema Access Strategy in ConvertRecord processor by using embedded schema we are &lt;STRONG&gt;skipping defining Schema Registry&lt;/STRONG&gt; in both Reader and Writer controller services.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Convert Record processor Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Record Reader&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;AvroReader&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Avro Reader Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67455-avroreader.png" style="width: 659px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17668i901B937305816EB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67455-avroreader.png" alt="67455-avroreader.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Record Writer&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;CSVRecordSetWriter&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Csv set writer Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67456-csvsetwriter.png" style="width: 567px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17669i548566DAB62ECD98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67456-csvsetwriter.png" alt="67456-csvsetwriter.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With this configs we are reading the Avro data and converting to Csv, if you want header then keep includer header line property to True.&lt;/P&gt;&lt;P&gt;Flow xml for your reference &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/67457-avro-to-csv.xml" target="_blank"&gt;avro-to-csv.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:57:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199214#M161254</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T05:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199215#M161255</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70171/stefan-constantin18.html" nodeid="70171"&gt;@Stefan Constantin&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I tried with your sample record and&lt;STRONG&gt; i'm able to get the csv data&lt;/STRONG&gt; as i have mentioned in the comment above and also i have attached my xml you can &lt;STRONG&gt;save and upload to your NiFi instance&lt;/STRONG&gt; and compare both find where are you missing some configs.&lt;/P&gt;&lt;P&gt;Could you share your Convert Record processors &lt;STRONG&gt;Record Reader, Record Writer,Avro Schema Registry&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;Config screenshots.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 21:52:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199215#M161255</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-30T21:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: ReplaceText doesn't work properly</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199216#M161256</link>
      <description>&lt;P&gt;Hello everyone !&lt;BR /&gt;I tried with Embedded schema, like Shu mentioned, and now everything is working perfectly. I feel so bad that it was so easy and simple, just few processors...anyway, thank you for your time and help, I really appreciate it !&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:52:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-doesn-t-work-properly/m-p/199216#M161256</guid>
      <dc:creator>stefan_constant</dc:creator>
      <dc:date>2018-04-03T15:52:58Z</dc:date>
    </item>
  </channel>
</rss>

