<?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 treating newline as argument delimiter despite custom config in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338746#M232920</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;, thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing that, and while it seems to make Nifi ignores the newlines indeed, the processor now throws a different error:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: ORA-01756: quoted string not properly terminated&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The strings are definitely terminated in the configuration.... The ERROR_DETAIL does contain double quotes as well, can this be affecting it?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 05:23:47 GMT</pubDate>
    <dc:creator>abvincita</dc:creator>
    <dc:date>2022-03-16T05:23:47Z</dc:date>
    <item>
      <title>Nifi treating newline as argument delimiter despite custom config</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338658#M232887</link>
      <description>&lt;P&gt;I'm having issues with ExecuteStreamCommand, I have set up the Argument Delimiter as ~ like screenshot below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abvincita_0-1647327485446.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33945iF1958F35BDA46861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abvincita_0-1647327485446.png" alt="abvincita_0-1647327485446.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when ERROR_DETAIL attribute contains newline characters (\n or&amp;nbsp;%0A) apparently Nifi treats the newline as a delimiter and hence the shell script receives more than 1 arguments in the place of ERROR_DETAIL. I was expecting Nifi to use strictly just the ~ character as the argument delimiter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing a different config in Nifi? Is there a way to make Nifi ignores the newline and only use the ~ as the delimiter?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 07:04:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338658#M232887</guid>
      <dc:creator>abvincita</dc:creator>
      <dc:date>2022-03-15T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi treating newline as argument delimiter despite custom config</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338677#M232897</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96551"&gt;@abvincita&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the following&amp;nbsp;Command Arguments in your processor configuration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"${ERROR_DETAIL}"~"${ERROR_CODE}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&lt;EM&gt;--&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:51:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338677#M232897</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-15T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi treating newline as argument delimiter despite custom config</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338746#M232920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;, thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing that, and while it seems to make Nifi ignores the newlines indeed, the processor now throws a different error:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: ORA-01756: quoted string not properly terminated&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The strings are definitely terminated in the configuration.... The ERROR_DETAIL does contain double quotes as well, can this be affecting it?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 05:23:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338746#M232920</guid>
      <dc:creator>abvincita</dc:creator>
      <dc:date>2022-03-16T05:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi treating newline as argument delimiter despite custom config</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338747#M232921</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96551"&gt;@abvincita&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, if ERROR_DETAIL has double-quotes in it, it will have adverse effects. Does it have single-quotes too? If not, you can try using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'${ERROR_DETAIL}'~'${ERROR_CODE}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&lt;EM&gt;--&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 06:21:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338747#M232921</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-16T06:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi treating newline as argument delimiter despite custom config</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338750#M232923</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96551"&gt;@abvincita&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please ignore my last post. I did a quick test using dynamic properties arguments and confirmed that it works well, regardless of the content of the attributes.&lt;/P&gt;&lt;P&gt;Please give this a try:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="araujo_0-1647413281075.png" style="width: 591px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33950i261D03EA07F10AFC/image-dimensions/591x343?v=v2" width="591" height="343" role="button" title="araujo_0-1647413281075.png" alt="araujo_0-1647413281075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&lt;EM&gt;--&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 06:48:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-treating-newline-as-argument-delimiter-despite-custom/m-p/338750#M232923</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-16T06:48:44Z</dc:date>
    </item>
  </channel>
</rss>

