<?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>article Error: Failure in setting a safeguard latch for task in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/ta-p/1879763</link>
    <description>&lt;P&gt;When using SQL Server Source Endpoint, and you encountered the following error:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:20:03 [SOURCE_CAPTURE ]E: RetCode: SQL_ERROR SqlState: HYT00 NativeError: 0 Message: [Microsoft][SQL Server Native Client 11.0]Query timeout expired [1022502] (ar_odbc_stmt.c:4895)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:20:03 [SOURCE_CAPTURE ]E: Failure in setting a safeguard latch for task '[ESJ0003]' / 'f0895f9f-c28f-cd42-bc06-b14dd1d5d7a7' / 'A' [1022506] (sqlserver_log_truncation_safeguard.c:212)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:20:03 [SOURCE_CAPTURE ]E: Failure in setting a safeguard latch 'A' for task '[ESJ0003]' [1022506] (sqlserver_log_truncation_safeguard.c:1111)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:24:03 [SOURCE_CAPTURE ]E: Failure in un-setting a safeguard latch for task '[ESJ0003]' [1022502] (sqlserver_log_truncation_safeguard.c:257)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Add the following two internal parameters into your source endpoint and increase the value respectively:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cdcTimeout&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;For information on how to set Internal Parameters, see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the TLOG backups are available for this source, a separate parameter can be used, however its use is not recommended without instruction by Qlik Support.&amp;nbsp;&lt;SPAN&gt;This parameter prevents Qlik Replicate from creating&amp;nbsp;a transaction on the source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;safeguardPolicyDesignator=None&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 08:12:44 GMT</pubDate>
    <dc:creator>lyka</dc:creator>
    <dc:date>2023-07-24T08:12:44Z</dc:date>
    <item>
      <title>Error: Failure in setting a safeguard latch for task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/ta-p/1879763</link>
      <description>&lt;P&gt;When using SQL Server Source Endpoint, and you encountered the following error:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:20:03 [SOURCE_CAPTURE ]E: RetCode: SQL_ERROR SqlState: HYT00 NativeError: 0 Message: [Microsoft][SQL Server Native Client 11.0]Query timeout expired [1022502] (ar_odbc_stmt.c:4895)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:20:03 [SOURCE_CAPTURE ]E: Failure in setting a safeguard latch for task '[ESJ0003]' / 'f0895f9f-c28f-cd42-bc06-b14dd1d5d7a7' / 'A' [1022506] (sqlserver_log_truncation_safeguard.c:212)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:20:03 [SOURCE_CAPTURE ]E: Failure in setting a safeguard latch 'A' for task '[ESJ0003]' [1022506] (sqlserver_log_truncation_safeguard.c:1111)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00003056: 2022-01-10T02:24:03 [SOURCE_CAPTURE ]E: Failure in un-setting a safeguard latch for task '[ESJ0003]' [1022502] (sqlserver_log_truncation_safeguard.c:257)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Add the following two internal parameters into your source endpoint and increase the value respectively:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cdcTimeout&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;For information on how to set Internal Parameters, see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the TLOG backups are available for this source, a separate parameter can be used, however its use is not recommended without instruction by Qlik Support.&amp;nbsp;&lt;SPAN&gt;This parameter prevents Qlik Replicate from creating&amp;nbsp;a transaction on the source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;safeguardPolicyDesignator=None&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 08:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/ta-p/1879763</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2023-07-24T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Failure in setting a safeguard latch for task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2096432#M9733</link>
      <description>&lt;P&gt;What the above parameter will do?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;safeguardPolicyDesignator=None&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2096432#M9733</guid>
      <dc:creator>dhina</dc:creator>
      <dc:date>2023-07-24T07:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Failure in setting a safeguard latch for task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2096454#M9734</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154483"&gt;@dhina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're reviewing this article and the parameter provided (I have also updated the article with more information until then). Will update you as soon as we've looked into this further.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 08:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2096454#M9734</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-07-24T08:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Failure in setting a safeguard latch for task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2097563#M9768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154483"&gt;@dhina&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;If you add the internal parameter&amp;nbsp;"safeguardPolicyDesignator set the values as None" then it will disable the safeguard table and there is a risk of truncating the LDF file. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Before adding this IP you have to make sure that the TLOG backups are available for Replicate and that they are in Native format so Replicate and start reading from the .trn file if the LSN does not exist in TLOG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Swathi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 17:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2097563#M9768</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2023-07-26T17:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Failure in setting a safeguard latch for task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2488493#M14803</link>
      <description>&lt;P&gt;Just found this article.&amp;nbsp; In my case, the DBA was running the MSSQL Kill Sleeping Sessions job every hour.&lt;/P&gt;
&lt;P&gt;My Qlik task was running with Prioritize Backup Log.&amp;nbsp; It appears it was idle for too long and was terminated by the Kill Sleeping Sessions job.&amp;nbsp; Resulting in the Error listed above.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 15:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Error-Failure-in-setting-a-safeguard-latch-for-task/tac-p/2488493#M14803</guid>
      <dc:creator>Reinie</dc:creator>
      <dc:date>2024-10-22T15:53:35Z</dc:date>
    </item>
  </channel>
</rss>

