<?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: Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413854#M254250</link>
    <description>&lt;P&gt;&lt;SPAN&gt;This happens in version 1.23.2. In the PutSql processor, I have the following command: UPDATE tbl SET status = 'proceed', startDate = GETDATE() WHERE messageId = ${messageId} The first retry attempt no longer had this attribute. When I look at DataProvanance, I see the following next to this record in PutSql: SEND CLONE CLONE CLONE DONE - as if, each time I retry, PutSql cloned the flow file, which no longer has the formatDateTo and formatDataFrom attributes.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2026 06:38:28 GMT</pubDate>
    <dc:creator>donaldo71</dc:creator>
    <dc:date>2026-04-09T06:38:28Z</dc:date>
    <item>
      <title>Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413845#M254244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm having a problem with a NiFi flow. I use UpdateAttrubute processor when I create an attribute like this:&amp;nbsp;&lt;/P&gt;
&lt;DIV class="slick-cell l0 r0"&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;formatDateFrom      ${dateFrom:format("yyyy-MM-dd")}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="slick-cell l0 r0"&gt;&lt;SPAN&gt;&lt;SPAN&gt;After this I have a PutSql processor that changes a status in DB. When everything is fine, it is ok. However, when something is wrong with the change, this status and my flow go to retry this attribute formatDateFrom disappears and is no longer present in the flow. &lt;BR /&gt;&lt;BR /&gt;Why does this happen and how can I secure this attribute? Attributes created with EvalueateJsonPath didn't disappear, only those created with UpdateAttribute.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Apr 2026 12:29:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413845#M254244</guid>
      <dc:creator>donaldo71</dc:creator>
      <dc:date>2026-04-08T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413846#M254245</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110759"&gt;@donaldo71&lt;/a&gt;&amp;nbsp;I am trying to follow your flow description here and am not very clear.&amp;nbsp; Can you share your flow definition and indicate where you are seeing the failure.&amp;nbsp;&lt;BR /&gt;What version of Apache NiFi are you using?&lt;BR /&gt;&lt;BR /&gt;You have an UpdateAttribute processor that has its success relationship routed via a connection to the PutSQL processor.&amp;nbsp; How is putSQL configured?&lt;BR /&gt;&lt;BR /&gt;When "something is wrong", what exception is being thrown in the nifi-app.log?&lt;BR /&gt;&lt;BR /&gt;The more detail you can provide the better chance. community member may be able to provide guidance and suggestions.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 12:56:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413846#M254245</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-04-08T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413848#M254246</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I mean that if the PutSql processor is unable to change the status, e.g. due to the database being unavailable, and the flow goes to the retry path to retry the process, then the attributes I created earlier in UpadetAttribute disappear from the process.This is my values in PutSql processor:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;Support Fragmented Transactions&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="pointer min-h-[21px]"&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;false&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="flex items-center justify-end gap-x-2"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;Database Session AutoCommit&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="pointer min-h-[21px]"&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;false&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="flex items-center justify-end gap-x-2"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;Transaction Timeout&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="pointer min-h-[21px]"&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;30 sec&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="flex items-center justify-end gap-x-2"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;Batch Size&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="pointer min-h-[21px]"&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;50&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="flex items-center justify-end gap-x-2"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;Obtain Generated Keys&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="pointer min-h-[21px]"&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;false&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="flex items-center justify-end gap-x-2"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;Rollback On Failure&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="pointer min-h-[21px]"&gt;&lt;DIV class="flex justify-between items-center"&gt;&lt;DIV class="whitespace-nowrap overflow-hidden text-ellipsis"&gt;false&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 13:09:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413848#M254246</guid>
      <dc:creator>donaldo71</dc:creator>
      <dc:date>2026-04-08T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413850#M254248</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110759"&gt;@donaldo71&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It would be helpful to know the full Apache NiFi version being used so I can see if there are any known issue that align here.&lt;BR /&gt;&lt;BR /&gt;I assume that you have a prepared SQL statement configured in your PutSQL processor that uses NiFi expression language to insert values from the Source FlowFile's attributes?&lt;BR /&gt;&lt;BR /&gt;Are you saying that on the very first failed execution of a "retry" routed FlowFile (the attempt that still had the "&lt;SPAN&gt;formatDateFrom" attribute set, there was no exception different from all subsequent retry requests made with FlowFile now missing that attribute)?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 18:23:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413850#M254248</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-04-08T18:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413854#M254250</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This happens in version 1.23.2. In the PutSql processor, I have the following command: UPDATE tbl SET status = 'proceed', startDate = GETDATE() WHERE messageId = ${messageId} The first retry attempt no longer had this attribute. When I look at DataProvanance, I see the following next to this record in PutSql: SEND CLONE CLONE CLONE DONE - as if, each time I retry, PutSql cloned the flow file, which no longer has the formatDateTo and formatDataFrom attributes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 06:38:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413854#M254250</guid>
      <dc:creator>donaldo71</dc:creator>
      <dc:date>2026-04-09T06:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loss of formatDateFrom attribute during PutSQL failure retry in Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413858#M254253</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110759"&gt;@donaldo71&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have not been able to identify a known issue that aligns with the description you have shared.&lt;BR /&gt;&lt;BR /&gt;That is an interesting sequence of events on a single FlowFile (SEND followed by clones).&amp;nbsp; Can you share the "Relationships" configuration of your putSQL processor?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1775826509536.png" style="width: 667px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46743iBE075F3E238A0084/image-dimensions/667x390?v=v2" width="667" height="390" role="button" title="MattWho_0-1775826509536.png" alt="MattWho_0-1775826509536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure you have not checked the "retry" box on the "success" relationship.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Something you might want to try to see if same issue persists is to check the box for "retry"&amp;nbsp; on the retry relationship.&amp;nbsp; &amp;nbsp;This allows the original FlowFile to remain in the inbound connection up to the configured number of retry attempts (default 10) before being routed to retry relationship.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I'd be curious of your observations post the above configuration change.&lt;BR /&gt;&lt;BR /&gt;Would you be willing to download the your flow definition json for this dataflow and share it?&lt;BR /&gt;&lt;BR /&gt;This is your full "SQL Statement" set in your ptSQL processor?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UPDATE tbl SET status = 'proceed', startDate = GETDATE() WHERE messageId = ${messageId}&lt;/LI-CODE&gt;&lt;P&gt;Where are your utilizing those two attributes that go missing?&lt;BR /&gt;&lt;BR /&gt;can you share your UpdateAttribute processor configuration?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 14:09:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Loss-of-formatDateFrom-attribute-during-PutSQL-failure-retry/m-p/413858#M254253</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-04-10T14:09:41Z</dc:date>
    </item>
  </channel>
</rss>

