<?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>topic [resolved] File Trigger: send attachment if file &amp;lt; # bytes, dont if not in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-Trigger-send-attachment-if-file-lt-bytes-dont-if/m-p/2286746#M60368</link>
    <description>&lt;B&gt;&lt;U&gt;&lt;FONT color="#FF0000"&gt;***NEVERMIND***&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt; 
&lt;U&gt;&lt;/U&gt; 
&lt;BR /&gt;So when I made a copy of tSendMail_1, I deleted the text that was in the Attachment list, but I didn't delete the entry. Hence the problem. 
&lt;BR /&gt;Sorry to bother. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I'm trying to set up a, very simple, job that runs when triggered by the specified file trigger in the WUI. (Right now I'm using the tFileList_1 just to pull the files for testing. I'll take it out when I get this working right and can run it through the WUI.) 
&lt;BR /&gt;I want it to send the triggering file as an attachment, as long as the file isn't too big to be attached (I'm using 9,500,000 bytes as my max). 
&lt;BR /&gt;If the file is too big to be attached, I want an email to be sent without it. 
&lt;BR /&gt;But I'm getting this error when I enable the 2nd tSendMail component, the one thats supposed to send the email without the attachment if the file is too big: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Starting job Email_FileTrigger at 11:32 01/08/2008.&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: &lt;BR /&gt; The method add(String) in the type List&amp;lt;String&amp;gt; is not applicable for the arguments ()&lt;BR /&gt; at generic.email_filetrigger_0_1.Email_FileTrigger.tFileList_1Process(Email_FileTrigger.java:1318)&lt;BR /&gt; at generic.email_filetrigger_0_1.Email_FileTrigger.runJobInTOS(Email_FileTrigger.java:2137)&lt;BR /&gt; at generic.email_filetrigger_0_1.Email_FileTrigger.main(Email_FileTrigger.java:2022)&lt;BR /&gt;Job Email_FileTrigger ended at 11:32 01/08/2008. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The job will run without errors if I have both tSendMails disabled (pic 1) or if I have only tSendMail_1 enabled (pics 2 &amp;amp; 3). But will not run if tSendMail_2 is enabled (pics 4 &amp;amp; 5). 
&lt;BR /&gt;The logic in tSendMail_1 is almost identical to whats in tSendMail_2 (pics 8 &amp;amp; 9), except that there is no attachment file listed in 2 and they each reference the rows that are feeding them. 
&lt;BR /&gt;I tried changing the conditions in tMap (pics 6 &amp;amp; 7), but that didn't make a difference. 
&lt;BR /&gt;Anyways, it looks like that logic is splitting the files like I want it to (see the red boxes in pics 1 &amp;amp; 2) - its sending the file thats &amp;lt; 9,500,000 bytes to tLogRow_1 and the file thats &amp;gt; to tLogRow_2 
&lt;BR /&gt; 
&lt;BR /&gt;tSendMail_1 Message: 
&lt;BR /&gt; 
&lt;PRE&gt;"***Triggering File Info***"+"\n"&lt;BR /&gt;+"File Name: "+context.fileName+"\n"&lt;BR /&gt;+"File Path: "+context.filePath+"\n"&lt;BR /&gt;+"Last Modified Date: "+row2.mtime_string+"\n"&lt;BR /&gt;+"Size: "+row2.size+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Trigger Settings***"+"\n"&lt;BR /&gt;+"Folder Path: "+context.folderPath+"\n"&lt;BR /&gt;+"File Mask: "+context.fileMask+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Job Information***"+"\n"&lt;BR /&gt;+"Project: "+projectName+"\n"&lt;BR /&gt;+"JobName: "+jobName+"\n"&lt;BR /&gt;+"tFileProperties Error Message: "&lt;BR /&gt;+((String)globalMap.get("tFileProperties_1_ERROR_MESSAGE"))&lt;/PRE&gt; 
&lt;BR /&gt;tSendMail_2 Message: 
&lt;BR /&gt; 
&lt;PRE&gt;"***Triggering File Info***"+"\n"&lt;BR /&gt;+"File Name: "+context.fileName+"\n"&lt;BR /&gt;+"File Path: "+context.filePath+"\n"&lt;BR /&gt;+"Last Modified Date: "+row3.mtime_string+"\n"&lt;BR /&gt;+"Size: "+row3.size+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Trigger Settings***"+"\n"&lt;BR /&gt;+"Folder Path: "+context.folderPath+"\n"&lt;BR /&gt;+"File Mask: "+context.fileMask+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Job Information***"+"\n"&lt;BR /&gt;+"Project: "+projectName+"\n"&lt;BR /&gt;+"JobName: "+jobName+"\n"&lt;BR /&gt;+"tFileProperties Error Message: "&lt;BR /&gt;+((String)globalMap.get("tFileProperties_1_ERROR_MESSAGE"))&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCna.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135551i0932E76E600F0AFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCna.jpg" alt="0683p000009MCna.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149171i74E1CDF19B021F9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnf.jpg" alt="0683p000009MCnf.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnk.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133366i1C52431ED836261A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnk.jpg" alt="0683p000009MCnk.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCRV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138801i032F1858B88BEA07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCRV.jpg" alt="0683p000009MCRV.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCas.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128514iF05AB3711AA7BE16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCas.jpg" alt="0683p000009MCas.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MChp.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141935i6BAB10137307F88F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MChp.jpg" alt="0683p000009MChp.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnp.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147572iD0D29E13DB7ED9DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnp.jpg" alt="0683p000009MCnp.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCek.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142423iB60D7BC1C383060C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCek.jpg" alt="0683p000009MCek.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCjA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130307i494D68F51695AB74/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCjA.jpg" alt="0683p000009MCjA.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnu.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131132i8C417CDB22555C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnu.jpg" alt="0683p000009MCnu.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 14:16:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:16:12Z</dc:date>
    <item>
      <title>[resolved] File Trigger: send attachment if file &lt; # bytes, dont if not</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-Trigger-send-attachment-if-file-lt-bytes-dont-if/m-p/2286746#M60368</link>
      <description>&lt;B&gt;&lt;U&gt;&lt;FONT color="#FF0000"&gt;***NEVERMIND***&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt; 
&lt;U&gt;&lt;/U&gt; 
&lt;BR /&gt;So when I made a copy of tSendMail_1, I deleted the text that was in the Attachment list, but I didn't delete the entry. Hence the problem. 
&lt;BR /&gt;Sorry to bother. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I'm trying to set up a, very simple, job that runs when triggered by the specified file trigger in the WUI. (Right now I'm using the tFileList_1 just to pull the files for testing. I'll take it out when I get this working right and can run it through the WUI.) 
&lt;BR /&gt;I want it to send the triggering file as an attachment, as long as the file isn't too big to be attached (I'm using 9,500,000 bytes as my max). 
&lt;BR /&gt;If the file is too big to be attached, I want an email to be sent without it. 
&lt;BR /&gt;But I'm getting this error when I enable the 2nd tSendMail component, the one thats supposed to send the email without the attachment if the file is too big: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Starting job Email_FileTrigger at 11:32 01/08/2008.&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: &lt;BR /&gt; The method add(String) in the type List&amp;lt;String&amp;gt; is not applicable for the arguments ()&lt;BR /&gt; at generic.email_filetrigger_0_1.Email_FileTrigger.tFileList_1Process(Email_FileTrigger.java:1318)&lt;BR /&gt; at generic.email_filetrigger_0_1.Email_FileTrigger.runJobInTOS(Email_FileTrigger.java:2137)&lt;BR /&gt; at generic.email_filetrigger_0_1.Email_FileTrigger.main(Email_FileTrigger.java:2022)&lt;BR /&gt;Job Email_FileTrigger ended at 11:32 01/08/2008. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The job will run without errors if I have both tSendMails disabled (pic 1) or if I have only tSendMail_1 enabled (pics 2 &amp;amp; 3). But will not run if tSendMail_2 is enabled (pics 4 &amp;amp; 5). 
&lt;BR /&gt;The logic in tSendMail_1 is almost identical to whats in tSendMail_2 (pics 8 &amp;amp; 9), except that there is no attachment file listed in 2 and they each reference the rows that are feeding them. 
&lt;BR /&gt;I tried changing the conditions in tMap (pics 6 &amp;amp; 7), but that didn't make a difference. 
&lt;BR /&gt;Anyways, it looks like that logic is splitting the files like I want it to (see the red boxes in pics 1 &amp;amp; 2) - its sending the file thats &amp;lt; 9,500,000 bytes to tLogRow_1 and the file thats &amp;gt; to tLogRow_2 
&lt;BR /&gt; 
&lt;BR /&gt;tSendMail_1 Message: 
&lt;BR /&gt; 
&lt;PRE&gt;"***Triggering File Info***"+"\n"&lt;BR /&gt;+"File Name: "+context.fileName+"\n"&lt;BR /&gt;+"File Path: "+context.filePath+"\n"&lt;BR /&gt;+"Last Modified Date: "+row2.mtime_string+"\n"&lt;BR /&gt;+"Size: "+row2.size+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Trigger Settings***"+"\n"&lt;BR /&gt;+"Folder Path: "+context.folderPath+"\n"&lt;BR /&gt;+"File Mask: "+context.fileMask+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Job Information***"+"\n"&lt;BR /&gt;+"Project: "+projectName+"\n"&lt;BR /&gt;+"JobName: "+jobName+"\n"&lt;BR /&gt;+"tFileProperties Error Message: "&lt;BR /&gt;+((String)globalMap.get("tFileProperties_1_ERROR_MESSAGE"))&lt;/PRE&gt; 
&lt;BR /&gt;tSendMail_2 Message: 
&lt;BR /&gt; 
&lt;PRE&gt;"***Triggering File Info***"+"\n"&lt;BR /&gt;+"File Name: "+context.fileName+"\n"&lt;BR /&gt;+"File Path: "+context.filePath+"\n"&lt;BR /&gt;+"Last Modified Date: "+row3.mtime_string+"\n"&lt;BR /&gt;+"Size: "+row3.size+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Trigger Settings***"+"\n"&lt;BR /&gt;+"Folder Path: "+context.folderPath+"\n"&lt;BR /&gt;+"File Mask: "+context.fileMask+"\n"&lt;BR /&gt;+"\n"&lt;BR /&gt;+"***Job Information***"+"\n"&lt;BR /&gt;+"Project: "+projectName+"\n"&lt;BR /&gt;+"JobName: "+jobName+"\n"&lt;BR /&gt;+"tFileProperties Error Message: "&lt;BR /&gt;+((String)globalMap.get("tFileProperties_1_ERROR_MESSAGE"))&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCna.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135551i0932E76E600F0AFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCna.jpg" alt="0683p000009MCna.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149171i74E1CDF19B021F9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnf.jpg" alt="0683p000009MCnf.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnk.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133366i1C52431ED836261A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnk.jpg" alt="0683p000009MCnk.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCRV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138801i032F1858B88BEA07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCRV.jpg" alt="0683p000009MCRV.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCas.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128514iF05AB3711AA7BE16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCas.jpg" alt="0683p000009MCas.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MChp.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141935i6BAB10137307F88F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MChp.jpg" alt="0683p000009MChp.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnp.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147572iD0D29E13DB7ED9DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnp.jpg" alt="0683p000009MCnp.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCek.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142423iB60D7BC1C383060C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCek.jpg" alt="0683p000009MCek.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCjA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130307i494D68F51695AB74/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCjA.jpg" alt="0683p000009MCjA.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnu.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131132i8C417CDB22555C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnu.jpg" alt="0683p000009MCnu.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-Trigger-send-attachment-if-file-lt-bytes-dont-if/m-p/2286746#M60368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File Trigger: send attachment if file &lt; # bytes, dont if not</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-Trigger-send-attachment-if-file-lt-bytes-dont-if/m-p/2286747#M60369</link>
      <description>Hello strpdsnk 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: &lt;BR /&gt; The method add(String) in the type List&amp;lt;String&amp;gt; is not applicable for the arguments ()&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;On tSendMail_2 component, you have add a attachment file line, but you set nothing. You will see the wrong code in generated code 
&lt;BR /&gt; 
&lt;PRE&gt;attachments_tSendMail_2.add();  // The code is wrong.&lt;/PRE&gt; 
&lt;BR /&gt;So, please remove the empty line in attachment file filed. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 04 Aug 2008 03:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-Trigger-send-attachment-if-file-lt-bytes-dont-if/m-p/2286747#M60369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-08-04T03:14:02Z</dc:date>
    </item>
  </channel>
</rss>

