<?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 Re: Write error logs to file - after unarchive and load to database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375611#M138000</link>
    <description>&lt;P&gt;I will test it. Let you know &lt;/P&gt;</description>
    <pubDate>Sat, 27 Nov 2021 21:10:26 GMT</pubDate>
    <dc:creator>FSternberg</dc:creator>
    <dc:date>2021-11-27T21:10:26Z</dc:date>
    <item>
      <title>Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375605#M137994</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;please, could you help me with one better and simple solution?&lt;/P&gt;&lt;P&gt;I need include one log in two steps,  during the unzip some files in one directory and during the import of Csv files for one database.&lt;/P&gt;&lt;P&gt;My project basically is unzip Csv files and import them for database. &lt;/P&gt;&lt;P&gt;but I like to have logs and can to identify the files that could not be unzipped and imported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375605#M137994</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2024-11-15T23:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375606#M137995</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Take a look at tLogCatcher component, this component captures the error during the job execution. In your case, I think you need tFileList to iterate each file, please refer to the component documentation and learn these components. &lt;/P&gt;&lt;P&gt;Let me know if you have any other questions. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 04:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375606#M137995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T04:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375607#M137996</link>
      <description>&lt;P&gt;Hello, thanks by reply.&lt;/P&gt;&lt;P&gt;I am using tFileList and only with LogCatcher I will get  to save the logs about the process to one txt file?&lt;/P&gt;&lt;P&gt;One other question, if I enable the option of logs on the project level I need to use LogCatcher too?&lt;/P&gt;&lt;P&gt;could you give me one print with the example ? My project is unzip  some files, read the Csv files, Map the schema and load to sql server, same schema.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 11:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375607#M137996</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-25T11:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375608#M137997</link>
      <description>&lt;P&gt;If you enable the option of logs on the project level, you don't need to use tLogCatcher component in the job.  A simple  job looks like:&lt;/P&gt;&lt;P&gt;tFileList--iterate--tFileUnarchvie--oncomponentok--tFileInputDelimited--main--tMap--out1--tMSSQLOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 13:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375608#M137997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T13:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375609#M137998</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if it is correct... I  think that is better for you understand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STEP 1 (UNZIP ALL FILES)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileList to tFileUnarchive &amp;gt;&amp;gt; Iterate connection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STEP 2 (LOAD ALL CSV´S FILES TO DB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PARENT JOB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contexts:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename, type String&lt;/P&gt;&lt;P&gt;tablename, type String&lt;/P&gt;&lt;P&gt;directory, type Directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileList&amp;nbsp;&amp;nbsp;(Specify the directory the Value field of variable directory)&lt;/P&gt;&lt;P&gt;tIterateToFlow (Add column named filename and the Value field of the Mapping table with the CURRENT_FILE (variable generated by the tFileList))&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFixedFlowInput (Add two columns file_name and table_name and configure file-to-table mappings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMap&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-Drag the filename column of table row1 (from the tIterateToFlow), drop it onto file_name column of table row2 (from the tFixedFlowInput) to join the two tables for file name look-up.&lt;/P&gt;&lt;P&gt;2-Drag the filename column of table row1 and drop it onto the filename column of table out.&lt;/P&gt;&lt;P&gt;3-Drag the table_name column of table row2 and drop it onto the tablename of table out&lt;/P&gt;&lt;P&gt;4-Match Model to Unique match and Join Model to Inner Join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJavaRow (codes: context.tablename = out.tablename and context.filename = out.filename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tRunJob (select the child Job you want to call from the Repository)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CHILD JOB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contexts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename, type String&lt;/P&gt;&lt;P&gt;tablename, type String&lt;/P&gt;&lt;P&gt;directory, type String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TFileInputDelimited&amp;nbsp;&lt;/P&gt;&lt;P&gt;add column data and set type to Dynamic&lt;/P&gt;&lt;P&gt;File name/Stream - set variable to context.directory+context.filename&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tDBOutput&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connection details ( including the host name or IP address, the port number, and database name).&lt;/P&gt;&lt;P&gt;Fill Table field with context variable defined for the table name+context.tablename.&lt;/P&gt;&lt;P&gt;Action on table list, select Default.&lt;/P&gt;&lt;P&gt;Action on data list, select Insert.&lt;/P&gt;&lt;P&gt;Click Sync columns to ensure the schema is the same as input component: single column named data, type Dynamic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 21:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375609#M137998</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-25T21:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375610#M137999</link>
      <description>&lt;P&gt;I think the job design is OK, let me know if you have any further questions or error. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 07:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375610#M137999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-26T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Write error logs to file - after unarchive and load to database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375611#M138000</link>
      <description>&lt;P&gt;I will test it. Let you know &lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 21:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-error-logs-to-file-after-unarchive-and-load-to-database/m-p/2375611#M138000</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-27T21:10:26Z</dc:date>
    </item>
  </channel>
</rss>

