<?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 Qlik Sense Repository Service fails with Error An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/ta-p/1908453</link>
    <description>&lt;P&gt;If your Qlik Sense Enterprise on Windows version is not compatible with the QSR database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may occur if:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;You have upgraded Qlik Sense (for example: from May 2023 to November 2023) and have started the services. This will have migrated your QSR database from the May 2023 schema to the November 2023 schema. &lt;BR /&gt;&lt;BR /&gt;You have then decided to &lt;EM style="font-family: inherit;"&gt;roll back &lt;/EM&gt;&lt;SPAN&gt;to May 2023 and are attempting to restore the November 2023 QSR. They are not compatible and the migration will fail.&lt;BR /&gt;&lt;BR /&gt;the&amp;nbsp;DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If an incorrect version was installed during an upgrade of a Qlik Sense Enterprise on Windows multi node environment, such as installing different versions on RIM nodes, the Qlik Sense Repository service will not start on any node (including the central node).&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;An incorrect version of Qlik Sense Enterprise on Windows in a multi node environment will trigger a database migration to this version. The result is that the Qlik Sense Repository service fails to start with the error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Fatal exception during startup Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.↵↓An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As database migration started which had caused database corruption, you need to revert back to the old database backup to resolve this issue or contact &lt;EM&gt;Qlik Support&amp;nbsp;&lt;/EM&gt;for assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;QB-8813&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 Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;all versions&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 07:52:07 GMT</pubDate>
    <dc:creator>Aaryan</dc:creator>
    <dc:date>2024-05-16T07:52:07Z</dc:date>
    <item>
      <title>Qlik Sense Repository Service fails with Error An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/ta-p/1908453</link>
      <description>&lt;P&gt;If your Qlik Sense Enterprise on Windows version is not compatible with the QSR database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may occur if:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;You have upgraded Qlik Sense (for example: from May 2023 to November 2023) and have started the services. This will have migrated your QSR database from the May 2023 schema to the November 2023 schema. &lt;BR /&gt;&lt;BR /&gt;You have then decided to &lt;EM style="font-family: inherit;"&gt;roll back &lt;/EM&gt;&lt;SPAN&gt;to May 2023 and are attempting to restore the November 2023 QSR. They are not compatible and the migration will fail.&lt;BR /&gt;&lt;BR /&gt;the&amp;nbsp;DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If an incorrect version was installed during an upgrade of a Qlik Sense Enterprise on Windows multi node environment, such as installing different versions on RIM nodes, the Qlik Sense Repository service will not start on any node (including the central node).&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;An incorrect version of Qlik Sense Enterprise on Windows in a multi node environment will trigger a database migration to this version. The result is that the Qlik Sense Repository service fails to start with the error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Fatal exception during startup Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.↵↓An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As database migration started which had caused database corruption, you need to revert back to the old database backup to resolve this issue or contact &lt;EM&gt;Qlik Support&amp;nbsp;&lt;/EM&gt;for assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;QB-8813&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 Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;all versions&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 07:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/ta-p/1908453</guid>
      <dc:creator>Aaryan</dc:creator>
      <dc:date>2024-05-16T07:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Repository Service fails with Error An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2038364#M8406</link>
      <description>&lt;P&gt;If we accidentally install a newer version (Nov22) on a rim node, while the central and other rim nodes are on an older (May22), do we have to reinstall everything?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 15:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2038364#M8406</guid>
      <dc:creator>allann</dc:creator>
      <dc:date>2023-02-15T15:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Repository Service fails with Error An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2038592#M8415</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/161190"&gt;@allann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are three options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If you have &lt;STRONG&gt;not started the rim node&lt;/STRONG&gt; after upgrading it (meaning it has not connected to your central database), then you can uninstall the rim node and re-install it on May 2022.&lt;/LI&gt;
&lt;LI&gt;If you&amp;nbsp;&lt;STRONG&gt;have started&amp;nbsp;&lt;/STRONG&gt;the rim node after the upgrade (meaning it has connected to your central database and made changes that cannot be reversed), then you will be unable to reconnect the rim node on May 2022. You will need to either:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Revert to a previous backup of your Qlik Sense deployment taken&amp;nbsp;&lt;EM&gt;before&amp;nbsp;&lt;/EM&gt;the rim node was upgraded (see &lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Backup-and-restore.htm" target="_blank" rel="noopener"&gt;Backup and restore Qlik Sense Enterprise on Windows&lt;/A&gt;&amp;nbsp;), as well as reinstall the rim on the old version.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Upgrade your entire deployment to November 2022 (&lt;FONT color="#339966"&gt;&lt;STRONG&gt;recommended&lt;/STRONG&gt;&lt;/FONT&gt;).&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 09:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2038592#M8415</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-02-16T09:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Repository Service fails with Error An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2508255#M15482</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;we ran into this issue recently on an upgrade to November 2024.&amp;nbsp; I see that you recently updated this post.&amp;nbsp; Can you clarify what was updated with it, as well as what the current status is of QB-8813?&amp;nbsp; Is there a Qlik approved way to avoid this error, since it essentially causes an upgrade to fail?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 15:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2508255#M15482</guid>
      <dc:creator>jeremyseipel</dc:creator>
      <dc:date>2025-03-04T15:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Repository Service fails with Error An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2511423#M15583</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45167"&gt;@jeremyseipel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The updates done were mostly cosmetic and to add clarity to the text. The Internal Investigation ID given is for reference, it is not indicative of a defect that is being worked on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally speaking the root causes and resolution to this are still accurate.&lt;/P&gt;
&lt;P&gt;To prevent this error, avoid the two possible root causes.&lt;/P&gt;
&lt;P&gt;If you see the same error with a different root cause, please contact Qlik Support.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 09:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-Service-fails-with-Error-An-exception-was/tac-p/2511423#M15583</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2025-03-25T09:33:03Z</dc:date>
    </item>
  </channel>
</rss>

