<?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 tFileUnarchive does not work in scheduled task in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336810#M105216</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a job where a ZIP file is downloaded to a folder and I use the component tFileUnarchive to extract files in the same folder where the ZIP file is located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've built my job and now it's running on a Windows Server as scheduled task. I've set up the task with my personal account on the server, but it is running with a service account and highest privileges. Obviously I've set the job to run whether the user is loggen on or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job starts correctly, it downloads the ZIP file correctly but it is unable to extract files from ZIP file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task scheduler returns the job is succesfully completed but it has 2147942401 as return code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked suggestions I've found here &lt;A href="https://stackoverflow.com/questions/65129072/batch-file-run-as-scheduled-job-returns-2147942659" target="_blank"&gt;https://stackoverflow.com/questions/65129072/batch-file-run-as-scheduled-job-returns-2147942659&lt;/A&gt; and here &lt;A href="https://stackoverflow.com/questions/48343993/batch-file-from-scheduled-task-returns-code-2147942401" target="_blank"&gt;https://stackoverflow.com/questions/48343993/batch-file-from-scheduled-task-returns-code-2147942401&lt;/A&gt; without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The weird thing is that if I run the job manually (right click --&amp;gt; run) or If I log on the server with my account and I schedule a job after a couple of minutes (always running with the service account) it works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:17:45 GMT</pubDate>
    <dc:creator>s_mil</dc:creator>
    <dc:date>2024-11-15T22:17:45Z</dc:date>
    <item>
      <title>tFileUnarchive does not work in scheduled task</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336810#M105216</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a job where a ZIP file is downloaded to a folder and I use the component tFileUnarchive to extract files in the same folder where the ZIP file is located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've built my job and now it's running on a Windows Server as scheduled task. I've set up the task with my personal account on the server, but it is running with a service account and highest privileges. Obviously I've set the job to run whether the user is loggen on or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job starts correctly, it downloads the ZIP file correctly but it is unable to extract files from ZIP file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task scheduler returns the job is succesfully completed but it has 2147942401 as return code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked suggestions I've found here &lt;A href="https://stackoverflow.com/questions/65129072/batch-file-run-as-scheduled-job-returns-2147942659" target="_blank"&gt;https://stackoverflow.com/questions/65129072/batch-file-run-as-scheduled-job-returns-2147942659&lt;/A&gt; and here &lt;A href="https://stackoverflow.com/questions/48343993/batch-file-from-scheduled-task-returns-code-2147942401" target="_blank"&gt;https://stackoverflow.com/questions/48343993/batch-file-from-scheduled-task-returns-code-2147942401&lt;/A&gt; without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The weird thing is that if I run the job manually (right click --&amp;gt; run) or If I log on the server with my account and I schedule a job after a couple of minutes (always running with the service account) it works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336810#M105216</guid>
      <dc:creator>s_mil</dc:creator>
      <dc:date>2024-11-15T22:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive does not work in scheduled task</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336811#M105217</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Generally it could depend from Your Job design.&lt;/P&gt;&lt;P&gt;Would you mind posting your job design screenshots here which will be helpful for us to address your issue quickly?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 07:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336811#M105217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-08T07:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive does not work in scheduled task</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336812#M105218</link>
      <description>&lt;P&gt;Sound strange but the SYSTEM account does not have all permissions to work with files from other users.&lt;/P&gt;&lt;P&gt;It has nothing to do with the job design, it has only to do with the file system permissions. Your normal job use do not have write permission to the desired target extraction folder, I guess. Try to run the job with a dedicated user (e.g. create a user talend) for running jobs and not with the SYSTEM user.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 10:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-does-not-work-in-scheduled-task/m-p/2336812#M105218</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2022-12-09T10:31:52Z</dc:date>
    </item>
  </channel>
</rss>

