<?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: AttributesToJson into Elasticsearch doesn't work in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310188#M224059</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84355"&gt;@Lallagreta&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Make sure you do not have any line returns in the values for your dynamic properties added in the UpdateAttribute processor.&amp;nbsp; When you click on the value field for each property you should not see a line "2".&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-21 at 10.03.10 AM.png" style="width: 384px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30200iC753BC33727DD9A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-21 at 10.03.10 AM.png" alt="Screen Shot 2021-01-21 at 10.03.10 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Above would result in the value assigned to the FlowFile Attribute having a line return.&amp;nbsp; If this is the case, edit the properties value(s) to remove the line returns so you only see one line (1).&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 15:06:02 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2021-01-21T15:06:02Z</dc:date>
    <item>
      <title>AttributesToJson into Elasticsearch doesn't work</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310001#M223988</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73798"&gt;@ApacheNifi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;i have&amp;nbsp;i extracted the attributes from the filename and used AttributesToJson to create a json file to upload into elasticsearch (to create a catalog).&lt;BR /&gt;It gives me many problems, what can I do?&lt;BR /&gt;I also noticed that from updateattribute to attributetojson it adds "\ n" in two fields.&lt;/P&gt;&lt;P&gt;This is my flow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.45.17.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30159i76282CEE59B36AFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata 2021-01-19 alle 11.45.17.png" alt="Schermata 2021-01-19 alle 11.45.17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; UPDATEATTRIBUTE: I have correctly configured updateattribute and this is the result&lt;/P&gt;&lt;P&gt; Setting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.46.01.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30160i77CE017922AFC612/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata 2021-01-19 alle 11.46.01.png" alt="Schermata 2021-01-19 alle 11.46.01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.55.28.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30167iDA661441C662ABD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2021-01-19 alle 11.55.28.png" alt="Schermata 2021-01-19 alle 11.55.28.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ATTRIBUTESTOJSON:&lt;/P&gt;&lt;P&gt;Configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.48.27.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30162iE33BDC1689CF603B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata 2021-01-19 alle 11.48.27.png" alt="Schermata 2021-01-19 alle 11.48.27.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 12.00.32.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30168iC8AB20FBC904EC9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2021-01-19 alle 12.00.32.png" alt="Schermata 2021-01-19 alle 12.00.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as you can notice in jsonattributes it adds a "\ n" at the end of the strings "giri" and "id-riduttore" fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PUTELASTICSEARCHHTTPRECORD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Configure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.53.02.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30166iB829914AFBAA7904/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata 2021-01-19 alle 11.53.02.png" alt="Schermata 2021-01-19 alle 11.53.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.52.57.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30165i146C07DCDF3996CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata 2021-01-19 alle 11.52.57.png" alt="Schermata 2021-01-19 alle 11.52.57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2021-01-19 alle 11.52.03.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30164i14EE827EFF896E79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata 2021-01-19 alle 11.52.03.png" alt="Schermata 2021-01-19 alle 11.52.03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can i do this? thank you so much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 11:05:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310001#M223988</guid>
      <dc:creator>Lallagreta</dc:creator>
      <dc:date>2021-01-19T11:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: AttributesToJson into Elasticsearch doesn't work</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310054#M224009</link>
      <description>&lt;P&gt;Just asking, what is the result if you change the Property 'Destination' at AttributesToJSON to flowfile-content? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 23:04:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310054#M224009</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2021-01-19T23:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: AttributesToJson into Elasticsearch doesn't work</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310188#M224059</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84355"&gt;@Lallagreta&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Make sure you do not have any line returns in the values for your dynamic properties added in the UpdateAttribute processor.&amp;nbsp; When you click on the value field for each property you should not see a line "2".&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-21 at 10.03.10 AM.png" style="width: 384px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30200iC753BC33727DD9A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-21 at 10.03.10 AM.png" alt="Screen Shot 2021-01-21 at 10.03.10 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Above would result in the value assigned to the FlowFile Attribute having a line return.&amp;nbsp; If this is the case, edit the properties value(s) to remove the line returns so you only see one line (1).&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:06:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AttributesToJson-into-Elasticsearch-doesn-t-work/m-p/310188#M224059</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-01-21T15:06:02Z</dc:date>
    </item>
  </channel>
</rss>

