<?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: Class 'ENCRYPTION_CLASS' failed to initialize. in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161326#M8867</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164264"&gt;@jyeragi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The error message indicates that the initialization of the ‘ENCRYPTION_CLASS’ failed.&lt;/P&gt;
&lt;P&gt;Thew issue could be related to the permissions of the Service account used to run the Task Scheduler. When you run the batch file and PowerShell script individually as an administrator, they execute successfully because the administrator account has the necessary permissions.&lt;/P&gt;
&lt;P&gt;The error log suggests that there’s a failurre to read the server password and open the file mk.dat. This could be due to the Service account not having the required permissions to access this file or read the server password.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;As a resolution, you might need to ensure that the command prompt is run as an administrator. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Right-click on the Command Prompt and click ‘Run as administrator’. This should provide the necessary permissions for the task to execute successfully.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If the issue persists, it would be beneficial to check the permissions of the Service account and ensure it has the necessary access rights.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you found our response useful, we kindly ask you to click on “Accept as Solution”. This will aid other users in finding the answer more effortlessly.&lt;/P&gt;
&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Deepak&lt;/P&gt;
&lt;P&gt;#&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149866"&gt;@avidary_qlik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jan 2024 13:38:35 GMT</pubDate>
    <dc:creator>deepaksahirwar</dc:creator>
    <dc:date>2024-01-13T13:38:35Z</dc:date>
    <item>
      <title>Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2159304#M8773</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am currently experiencing an issue while scheduling the Repctl command embedded in a batch file through Task Scheduler, as well as using the PowerShell script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;repctl -d "F:\Replicate\data" connect; gettaskstatus TSK_PROD_REPL ; disconnect;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;When running the batch file and PowerShell script individually as an administrator, they both execute successfully. However, when scheduling them through Task Scheduler with a Service account, I encounter the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;REPCTL initialization - failed to initialize environment (status 1000196)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 23:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2159304#M8773</guid>
      <dc:creator>jyeragi</dc:creator>
      <dc:date>2024-01-08T23:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2159876#M8814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164264"&gt;@jyeragi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please open a support case for the same&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Avidar&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 08:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2159876#M8814</guid>
      <dc:creator>avidary_qlik</dc:creator>
      <dc:date>2024-01-10T08:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2160030#M8822</link>
      <description>&lt;P&gt;This error is 99.9% sure to be cause by a security issue for the username (that service account) trying to acitvate repctl. That in turn is most likely caused by lack of access permission to mk.dat.&lt;/P&gt;
&lt;P&gt;I do not think a support case is needed. There is nothing wrong with Replicate. It tries to open a file and cannot due to the permission configuration on the server.&lt;/P&gt;
&lt;P&gt;Ask your server support team! Ask them whether that service user can currently access mk.dat and how to make that possible.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 12:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2160030#M8822</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-01-10T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2160046#M8823</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164264"&gt;@jyeragi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Totally agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;. Try to change the service "&lt;FONT face="courier new,courier"&gt;Qlik Replicate Server&lt;/FONT&gt;" property "&lt;FONT face="courier new,courier"&gt;Log On As&lt;/FONT&gt;" from "&lt;FONT face="courier new,courier"&gt;Local system account&lt;/FONT&gt;" to "&lt;FONT face="courier new,courier"&gt;Administrator&lt;/FONT&gt;" account and restart the service.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1704892383786.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126818i5BE6472833D08C57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1704892383786.png" alt="john_wang_0-1704892383786.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 13:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2160046#M8823</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-01-10T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161289#M8864</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes. I understand that it is a security issue but I did not find any documentation about what permission or security needs to be added.&lt;/P&gt;
&lt;P&gt;let me check if the service account can access the &lt;SPAN&gt;mk.dat file. I was able to resolve the issue with another service account but I don't want to give an elevated account to the account and hence, looking for specific permission to be granted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Jayesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 02:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161289#M8864</guid>
      <dc:creator>jyeragi</dc:creator>
      <dc:date>2024-01-13T02:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161290#M8865</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying to move away from system or administrator to a more specific&amp;nbsp; service account with specific permissions...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As specified by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;, let me check if granting access to the mk.dat file resolves the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Jayesh&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 02:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161290#M8865</guid>
      <dc:creator>jyeragi</dc:creator>
      <dc:date>2024-01-13T02:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Class 'ENCRYPTION_CLASS' failed to initialize.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161326#M8867</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164264"&gt;@jyeragi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The error message indicates that the initialization of the ‘ENCRYPTION_CLASS’ failed.&lt;/P&gt;
&lt;P&gt;Thew issue could be related to the permissions of the Service account used to run the Task Scheduler. When you run the batch file and PowerShell script individually as an administrator, they execute successfully because the administrator account has the necessary permissions.&lt;/P&gt;
&lt;P&gt;The error log suggests that there’s a failurre to read the server password and open the file mk.dat. This could be due to the Service account not having the required permissions to access this file or read the server password.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;As a resolution, you might need to ensure that the command prompt is run as an administrator. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Right-click on the Command Prompt and click ‘Run as administrator’. This should provide the necessary permissions for the task to execute successfully.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If the issue persists, it would be beneficial to check the permissions of the Service account and ensure it has the necessary access rights.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you found our response useful, we kindly ask you to click on “Accept as Solution”. This will aid other users in finding the answer more effortlessly.&lt;/P&gt;
&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Deepak&lt;/P&gt;
&lt;P&gt;#&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149866"&gt;@avidary_qlik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 13:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Class-ENCRYPTION-CLASS-failed-to-initialize/m-p/2161326#M8867</guid>
      <dc:creator>deepaksahirwar</dc:creator>
      <dc:date>2024-01-13T13:38:35Z</dc:date>
    </item>
  </channel>
</rss>

