<?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 putemail single notification alert for multiple files in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319881#M228010</link>
    <description>&lt;P&gt;Hey sagar , yes nifi handles the transfer of files but is there any way to check the count of files transferred to a folder successfully and to raise a failure alert if it fails in any way using nifi?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 14:54:05 GMT</pubDate>
    <dc:creator>Ash1</dc:creator>
    <dc:date>2021-07-05T14:54:05Z</dc:date>
    <item>
      <title>Nifi putemail single notification alert for multiple files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319714#M227936</link>
      <description>&lt;P&gt;I have a requirement to check the count of files in a directory (say 10) everyday after it is transferred and to send Just one email alert if it is not satisfied. I have to check this condition every day whether these 10 files have been transferred without any fail . Also my previous files Would not be deleted from the directory as well.&amp;nbsp;&lt;BR /&gt;I am really new to nifi hence has a doubt the n how to proceed .&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Could you please help with this somehow&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 05:34:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319714#M227936</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2021-07-02T05:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi putemail single notification alert for multiple files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319856#M227994</link>
      <description>&lt;P&gt;Hi...For a single email alert, use MergeContent processor (on some condition)&amp;nbsp;before PutEmail. If you have a definite number of files then in MergeContent you can add&amp;nbsp;&lt;SPAN&gt;Minimum Number of Entries as 10. If not, then only way is time bound.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For transfer check, you will have to provide more info here. Where is it transferred? Does nifi handle the transfer?&lt;/P&gt;&lt;P&gt;If nifi handles the transfer, you will have files in Failure relationship so that should tell you if the transfer for all files was successful or not.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you find the answer helpful please accept this as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 11:52:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319856#M227994</guid>
      <dc:creator>SagarKanani</dc:creator>
      <dc:date>2021-07-05T11:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi putemail single notification alert for multiple files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319881#M228010</link>
      <description>&lt;P&gt;Hey sagar , yes nifi handles the transfer of files but is there any way to check the count of files transferred to a folder successfully and to raise a failure alert if it fails in any way using nifi?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 14:54:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319881#M228010</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2021-07-05T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi putemail single notification alert for multiple files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319907#M228028</link>
      <description>&lt;P&gt;Hi..,if you know the exact number of files to be transferred then yes….but if the count is variable then since nifi is a flow tool there is no concept as the last file….&lt;/P&gt;&lt;P&gt;You can send an email if you find any files in the failure relationship… this way you will know if the transfer went well or not..,&lt;/P&gt;&lt;P&gt;If this seems obvious please share a sketch of what you wish to inplement for a better solution…&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 06:13:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/319907#M228028</guid>
      <dc:creator>SagarKanani</dc:creator>
      <dc:date>2021-07-06T06:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi putemail single notification alert for multiple files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/320878#M228203</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89468"&gt;@Ash1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not clear from yoru query how files are getting into or out of your NiFi.&lt;BR /&gt;&lt;BR /&gt;Assuming you have already received a set fo FlowFiles for the day in to your NiFi dataflow, the best approach may be to notify if any fails to be written out /transferred at the end of your dataflow.&amp;nbsp; In this manor not only would you know that not all Files transferred, but would know exact what file failed to transfer.&lt;BR /&gt;&lt;BR /&gt;There are numerous processors that handle writing out FlowFile content (transfer) to another source or local file system.&amp;nbsp; Those processing components typically have relationships for handling various types of failures.&amp;nbsp; These relationships could be sent through a retry loop via the RetryFlowFile [1] processor back to the same transfer processor that failed.&amp;nbsp; You define in the RetryFlowFile processor how many times you want a FlowFile to traverse this loop.&amp;nbsp; After X number of loop it would get routed out of the loop to your PutEmail [2] processor where you could dynamically set the email content to include attributes from that FlowFile like filename, hostname of NiFi that failed to transfer it, etc...&lt;BR /&gt;From the PutEmail processor you could send that FlowFile to somewhere else for holding until manual intervention was taken in response to that email.&lt;BR /&gt;&lt;BR /&gt;[`1]&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.RetryFlowFile/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.RetryFlowFile/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.PutEmail/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.PutEmail/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found any of the response given here assisted with your query, please take a moment to login and click "Accept" on each of those solutions.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 19:38:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-putemail-single-notification-alert-for-multiple-files/m-p/320878#M228203</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-07-13T19:38:21Z</dc:date>
    </item>
  </channel>
</rss>

