Windows 10 Update problem (0x8007042B - 0x2000D) [StateRepository-Deployment.srd]

Dear All,

I have problems updating Windows 10 on my Packard Bell EasyNote TSX66HR with Windows 10 Home, version 1607, OS build 14393.2156.

I am trying to update to OS Build 16299.

I recieve the error code 0x8007042B - 0x2000D and the comment "the installation failed in the SAFE-OS phase with an error during MIGRATE_DATA operation".

The setuperr.log reports the following error:

2018-04-05 01:10:18, Error                 SP     Error READ, 0x00000017 while gathering/applying object: File, C:\ProgramData\Microsoft\Windows\AppRepository [StateRepository-Deployment.srd]. Will return 0[gle=0x00000017]
2018-04-05 01:10:18, Error                 MIG    Error 2147942423 while gathering object C:\ProgramData\Microsoft\Windows\AppRepository [StateRepository-Deployment.srd]. Shell application requested abort![gle=0x00000017]
2018-04-05 01:10:18, Error                        Gather failed. Last error: 0x00000000
2018-04-05 01:10:18, Error                 SP     SPDoOfflineGather: Gather operation failed. Error: 0x0000002C
2018-04-05 01:10:18, Error                 SP     CMigrateFramework: Offline gather failed. Status: 44
2018-04-05 01:10:18, Error                 SP     Operation failed: Migrate framework (Full). Error: 0x8007042B[gle=0x000000b7]
2018-04-05 01:13:37, Error                 SP     Cannot revert execution of operation 36 (Apply EAs for D:\$WINDOWS.~BT\NewOS). Execution queue is now compromised.
2018-04-05 01:13:37, Error                 SP     Operation execution failed: 13. hr = 0x8007042B
2018-04-05 01:13:37, Error                 SP     ExecuteOperations: Failed execution phase Safe OS. Error: 0x8007042B
2018-04-05 01:13:37, Error                 SP     CSetupPlatformPrivate::Execute: Execution of operations queue failed, abandoning. Error: 0x8007042B

It seems the problem is with StateRepository-Deployment.srd in the AppRepository folder?

Can anyone give me advice to solve this problem?

Can I change ownership of the AppRepository folder and delete the contents? Would that cause major problems?

Many thanks!

 

Question Info


Last updated March 10, 2020 Views 15,445 Applies to:
The file you mention appears to be part of the MS Store app database. Maybe the "3 step process" will be enough to fix it. If not, try the process in the techgenix link (at bottom of this reply). Change the "Fix-Sysprep.ps1" to be a null file. Just leave a 1 line comment in it to show it ran. The main script will rename/delete the current DB, forcing it to be regenerated later in the script.

**********************

Try working through the following process:
3 Step Windows Trouble Shooting Process: Chkdsk / sfc / DISM

https://windowsinstructed.com/run-chkdsk-windows/

http://www.thewindowsclub.com/command-line-chec... (and 8 and 10) – There are a number of “paramters” you can pass to ChkDsk to ontrol wht it does.-

There could be a small problem with your Window installation. The Check disk command cleans up small sections of the disk that may have been “orphaned” / corrupted when Windows is not shut down normally. The SFC command will check and repair Windows system files, then the DISM commands will repair any other minor problems with Windows.

In start menu type “PowerShell”

Right Click on the result and select “Run as Administrator”

run next command to schedule a check and fix the disk the next time the computer is restarted. At the end of the run it will display a status report.

Chkdsk c: /F

You will have to restart the computer for that check to work.

********************

After ChkDsk is done go back to the admin prompt and run following commands, one at a time to Repair The Installed Windows Image

this command checks whether the image has been flagged as corrupted by a failed process and whether the corruption can be repaired:

Dism /Online /Cleanup-Image /CheckHealth

this command scans the installed windows for component store corruption:

Dism /Online /Cleanup-Image /ScanHealth

this command performs Window repair operations automatically:

Dism /Online /Cleanup-Image /RestoreHealth

DISM creates a log file (%windir%/Logs/CBS/CBS.log) that captures any issues that the tool found or fixed. %windir% is the folder in which Windows is installed. For example, the %windir% folder is C:\Windows.

https://docs.microsoft.com/en-us/windows-hardwa...

*********************

https://support.microsoft.com/en-us/help/929833... - Process shown with pictures

In start menu type “PowerShell”

Right Click on the result and select “Run as Administrator”

Type (or paste) the following command and press <enter> to Scan the integrity of all protected system files and replace incorrect versions with correct Microsoft versions.

sfc /SCANNOW

.
**************************************

.

Then try the update again. If that doesn't work, try doing a Windows System Restore to a checkpoint before the problem update started.

*************************************

*************************************
*************************************

.


If that doesn't help, try the tip in this process. It is somewhat more technical:
http://techgenix.com/sysprep-problems-app-x-pac...
To run better, run.
To paint better, paint.
To write better, write.
To build better, build.
— Sahil Lavingia
So, to do better, DO!
¯\_(ツ)_/¯

1 person was helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

On second thought, before using the techgenix article, use the following process to reset the Store:

2016 07 19- 5 TIPS TO FIX WINDOWS STORE AND APP ISSUES IN WINDOWS 10
https://www.makeuseof.com/tag/5-tips-fix-window...

Restart the computer
Win Store Trouble Shooter
Clear store Cache (WSReset.exe)
Reset Windows update (use the tool in the following link)
Reg hack for Connection errors
Re-Register the Store

Here are some additional instructions for the 5 tips defined in the article above

Remember to test the problem applet between each of the steps.

#0 RESTART THE COMPUTER
Simply restarting the computer is one of the simplest trouble fixes we have. But it is all too often forgotten or skipped. Too often programs get “confused”. While restarting the program may clear the confusion, sometimes they have an unseen compenent constantly running in the background. The easiest way to reset them is to restart the computer.

#1 MS DOWNLOADABLE WIN10 STORE APP TROUBLE SHOOTER
http://aka.ms/diag_apps10

https://support.microsoft.com/en-us/help/402749... shooter-for-windows-apps

Note: both of these links above should take you to download the same diagnosis “CAB” file.

Use the built in Trouble shooter

Go to Settings > Update & security > Troubleshoot
Scroll down to the bottom
Click Windows Store Apps

#2 WSRESET.EXE – CLEAR AND RESET STORE CACHE
http://www.intowindows.com/how-to-clear-reset-w...

Run as Admin.

Be sure to run the WSReset (Windows Store Reset) program AT LEAST 5 times. It appears to fix one problem per run, SLOWLY working thorough multiple problems in subsequent runs. Unfortunately the tool is poorly written so it gives the user no indication of what it is doing or if it was successful or not. All you can do is run it several times in the hope that you run it often enough for it to clear all of the problems.

#3 MANUAL RESET WINDOWS UPDATE SUBSYSTEM

If the problems remain, you have to revert to a manual process to reset Windows Update
Check that System Restore is turned on and configured

https://www.pcworld.com/article/2955023/windows...

https://www.tekrevue.com/how-to-enable-system-r...

Create a System restore point. (https://support.microsoft.com/en-us/help/402753... )

Use the following process to effectively delete the folders used by Windows Update:

Follow the instructions in this page: https://support.microsoft.com/en-us/help/971058... - How do I reset Windows Update components? (Win7-Win10)

The first paragraph in the above process includes a link to the Windows update troubleshooter. Make sure to run through it also.

https://www.youtube.com/watch?v=Y6eHDtylDYo
How to Fix Win Update Errors
This is a Video of manual process very similar process to the one described in the link to KB971058 (above)


After doing the process in the above link, including restarting the computer Check for outstanding updates:
. – in start menu search for Windows Update
. - click on “Check for Updates”
. – updates are often sequention, they require an earlier one to be present before being installed. So you should repeat checking for updates until you get no more updates

*********************
Simple, 1st Step in Windows Trouble Shooting – Chkdsk / sfc / Dism Code 8007007E

https://gallery.technet.microsoft.com/Reset-Win... Windows Update Reset batch tool made by MS for XP up to Win10 Creator. Altertnate Windows Update Reset tool to the process in KB 971058.

******************************************

Hidden text short version
#A: Start a command prompt in Administrator Mode:

. In start menu search for CMD
. Right click on it
. Select “Run as Administrator”


#B: Stop various update related Windows services

To do this, disconnect from the Internet. That means turning off Wi-Fi and disconnecting from a wired connection. If you don't, Windows 10 will indicate some files are in use and cannot be modified or the command will be non-responsive. Restart your computer after disconnecting from the Internet.

Then type the following commands at a command prompt. Press the “ENTER” key after you type each command.
. net stop wuauserv
. net stop cryptSvc
. net stop bits
. net stop msiserver


#C: Rename the folders used by Windows Update:

Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Ren C:\Windows\System32\catroot2 Catroot2.old

Reconnect to the internet


#D: Restart the services:

net start wuauserv
net start cryptSvc
net start bits
net start msiserver


#E: Restart the computer:

Reboot the computer
open Windows Update
click Check for updates.

****************************

RE-INSTALL ALL STORE APPS USING POWERSHELL

…* In the Start Menu, search for PowerShell
…* right click and select "Run as Administrator" option.
…* Enter the following commands one by one in the PowerShell window:

……… reg delete “HKCU\Software\Microsoft\Windows NT\CurrentVersion\TileDataModel\Migration\TileStore” /va /f

……… get-appxpackage -packageType bundle |% {add-appxpackage -register -disabledevelopmentmode ($_.installlocation + "\appxmetadata\appxbundlemanifest.xml")}

……… $bundlefamilies = (get-appxpackage -packagetype Bundle).packagefamilyname

……… get-appxpackage -packagetype main |? {-not ($bundlefamilies -contains $_.packagefamilyname)} |% {add-appxpackage -register -disabledevelopmentmode ($_.installlocation + "\appxmanifest.xml")}

RESET ALL STORE APPS / REREGISTER / APPS MISSING FROM WIN START MENU
Re-register all store apps, so they appear again in start menu. For that, open a PowerShell window as Administrator. Copy and paste the following line into the PowerShell window and press Enter:

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -Verbose }

Note: if you re-register all applications, all your apps are back, however all your pinned apps will be reset (the right panel will be empty) so you need to re-pin everything that you want. Personnaly I did a screen capture before, to remember what I pinned and where (use the “snipping tool” in startmenu/windows accessories, with a delay to be able to open the start menu before the capture)
To run better, run.
To paint better, paint.
To write better, write.
To build better, build.
— Sahil Lavingia
So, to do better, DO!
¯\_(ツ)_/¯

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hi,

Would like to look at Rollback logs.

Share Setuperr.log and Setupact.log named from
C:\$Windows.~BT\Sources\Rollback\

or

C:\$Windows.~BT\Sources\Panther
You can open the folder by typing in Run or showing hidden files and viewing through explorer.

You can use any file sharing website to send the files to me.
Sumit
Windows Insider MVP 2018-2021 and Volunteer Moderator

Dell Inspiron 5590 - i5 10210U/12GB DDR4/ 4GB Nvidia MX230/ 512GB nvme

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Please be advised some users are reporting issues with the Windows 10 1709 update. Make sure you backup before attempting to upgrade:

http://answers.microsoft.com/en-us/windows/wiki...

How to block it if you don't want to upgrade:
https://www.groovypost.com/howto/block-windows-...

What is the make and model of your computer?

Have you checked the manufacturers website to determine compatibility?
Check this List to Determine if Your Computer is Compatible with the Windows 10 Fall Creators Update 1709
https://answers.microsoft.com/en-us/windows/wik...

perform the following tasks:
12 Things You Should Do Before Installing Windows 10 Creators Update (Version 1709)
https://www.groovypost.com/howto/prepare-comput...


How to download official Windows 10 ISO files
http://answers.microsoft.com/en-us/windows/wiki...

How to Upgrade to Windows 10 Creators Update version 1709 using ISO File from Versions 1507, 1511, 1607 and 1703
https://answers.microsoft.com/en-us/windows/wik...
Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.