<p>After the upgrade of one of our servers from Windows Server 2012 to 2019, I have received the following error message:</p>
<p><strong>We couldn&#8217;t install Windows Server 2019. We&#8217;ve set your PC back to the way it was right before you started installing Windows Server 2019.</strong><br />
<strong>0XC1900101 &#8211; 0X4000D</strong><br />
<strong>The installation failed in the SECOND_BOOT phase with an error during MIGRATE_DATA operation.</strong></p>
<p><img class="alignnone size-full wp-image-4942" src="https://www.wincert.net/wp-content/uploads/2023/03/second_boot_migrate_data-upgrade-error.png" alt="" width="714" height="562" /></p>
<p>This error pops out at the end of the upgrade process.</p>
<p>To check what went wrong with the upgrade process I&#8217;ve navigated to the following location to check for the upgrade log:</p>
<p><strong>C:\$Windows.~BT\Sources\Rollback</strong></p>
<p>There&#8217;s a file there named <strong>rollbackinfo</strong> which can be analyzed for errors during the upgrade process.</p>
<p><img class="alignnone size-full wp-image-4944" src="https://www.wincert.net/wp-content/uploads/2023/03/rollback-info.png" alt="" width="610" height="51" /></p>
<p>In the rollbackinfo file I have discovered an issue with migration of user profiles so I&#8217;ve checked the locally stored user profiles and found <strong>IIS APPPOOL</strong> profiles that could be the culprit of this issue.</p>
<p><img class="alignnone size-full wp-image-4946" src="https://www.wincert.net/wp-content/uploads/2023/03/profiles.png" alt="" width="394" height="277" /></p>
<p>After I have deleted this profiles and run the upgrade again, the upgrade process was successful.</p>
<p>Please have in mind that you might have a different issue, but you should definitely check the rollbackinfo file located at C:\$Windows.~BT\Sources\Rollback which could give you the clue to solve <strong>The installation failed in the SECOND_BOOT phase with an error during MIGRATE_DATA operation</strong> errors.</p>