<?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: Dynamically references parameters from parameter context in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374996#M242235</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97630"&gt;@sam_s0ni&lt;/a&gt;&amp;nbsp;I took up this conversation internally and exposed another related JIRA 11763.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior was removed in 1.19 and will not be coming back due to nature of parameter evaluation against references of those parameters when they are changed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can view the conversation for NIFI-11763 here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-11763" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-11763&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 13:51:42 GMT</pubDate>
    <dc:creator>steven-matison</dc:creator>
    <dc:date>2023-08-07T13:51:42Z</dc:date>
    <item>
      <title>Dynamically references parameters from parameter context</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374901#M242184</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We have a solution in our flow which is currently running on 1.16.3 and we are referencing parameters dynamically for some schema validations. Now we have upgraded NIFI to version 1.21.0 and this functionality of function "&lt;SPAN&gt;evaluateELString()&lt;/SPAN&gt;"&lt;SPAN&gt;&amp;nbsp;not working as expected. Example -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sam_s0ni_0-1691066491497.png" style="width: 441px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38158i8930B27B5420EAB1/image-dimensions/441x43?v=v2" width="441" height="43" role="button" title="sam_s0ni_0-1691066491497.png" alt="sam_s0ni_0-1691066491497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Using above NIFI expression language, we used to reference parameters dynamically but now we are getting null values although parameter is not sensitive.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I find out this was changed in NIFI version 1.19.0 to not expose sensitive parameters but why have they change it for all the parameters - &lt;A href="https://issues.apache.org/jira/browse/NIFI-10674" target="_self"&gt;NIFI-10674&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can see a JIRA raised for similar issue here -&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-11627" target="_blank" rel="noopener"&gt;NIFI-11627&lt;/A&gt;&lt;BR /&gt;Can someone please help us over here ? I do not want to hardcode this thing as we have 10's of schemas in parameters and I do not want to hardcode for each one.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:44:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374901#M242184</guid>
      <dc:creator>sam_s0ni</dc:creator>
      <dc:date>2023-08-03T12:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically references parameters from parameter context</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374902#M242185</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/53610"&gt;@pierre&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95817"&gt;@joet&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:17:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374902#M242185</guid>
      <dc:creator>sam_s0ni</dc:creator>
      <dc:date>2023-08-03T13:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically references parameters from parameter context</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374996#M242235</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97630"&gt;@sam_s0ni&lt;/a&gt;&amp;nbsp;I took up this conversation internally and exposed another related JIRA 11763.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior was removed in 1.19 and will not be coming back due to nature of parameter evaluation against references of those parameters when they are changed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can view the conversation for NIFI-11763 here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-11763" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-11763&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 13:51:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/374996#M242235</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-08-07T13:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically references parameters from parameter context</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/375008#M242243</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97630"&gt;@sam_s0ni&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Apache NiFi never intended with the context of the NiFi framework to allow parameters to be dynamically accessed within NiFi Expression Language (NEL).&amp;nbsp; The EvaluateElString() exposed a bug in which this was possible while never intended.&amp;nbsp; That bug was addressed in apache NiFi 1.19 thus resulting in what you are seeing.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As an alternative, you could store your schemas in an external database and pull those schemas back dynamically based on a FlowFile attribute instead of using Parameter contexts to store those schemas.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 18:10:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Dynamically-references-parameters-from-parameter-context/m-p/375008#M242243</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-07T18:10:33Z</dc:date>
    </item>
  </channel>
</rss>

