This error popped up when I was attempting to install Update Rollup 3 for Microsoft Dynamics CRM.  I had manually downloaded KB3016464 and tried to manually install it, rather than watching it error out repeatedly in Windows Update.crm-Cannot-Load-Counter-Name-Data-Because-An-Invalid-Index-Was-Read-From-The-Registry

The answer was to:

  1. Click the START button
  2. Type CMD
  3. Right click CMD PROMPT and select RUN AS ADMIN
  4. Type LODCTR /r
  5. Wait a few seconds for it to throw ERROR: UNABLE TO REBUILD PERFORMANCE COUNTER SETTING FROM SYSTEM BACKUP STORE. ERROR CODE IS 2
  6. Type LODCTR /r (yes, do it again 🙂 )
  7. This time it will run successfully
  8. Run Windows Update and try the install patch that was causing you problems again or manually try to run the update again
  9. Have a nice day.

In case you are wondering LODCTR updates the performance counters which are stored in the registry and can be corrupted.  As you might have guessed, LODCTR /R causes a Rebuild of those counters.

For more details type LODCTR /? into a CMD prompt and press ENTER.


12 Comments

Kuimera · April 20, 2020 at 12:03 am

When I was typing the command I was “nah, this will not fix it for sure..” surprise, it worked. Thanks for your help 😉

daw39 · March 12, 2020 at 12:54 pm

I can not thank you enough! I only tried this because of all the positive comments. This is an area of my computer that I have no business because I don’t know what I’m doing. The directions were very clear and easy to follow. I liked the part where you said yes, type it again. It was so….much easier than the uninstall, restart, install that my software tech people had me doing that took so long and did not work.
If anyone else is getting this error message and read my comment, don’t be scared. Follow his directions and you will be happy.

Arasu · January 24, 2019 at 12:57 am

THANKS SO MUCH !! ITS SOLVED.. ARASU MUSCAT OMAN

Eddie · October 22, 2018 at 3:13 pm

Hey thank you so much Im done ! weeeeeeee!

Senthil · June 18, 2018 at 10:35 pm

Thank you so much.. It worked for me.

Duong · May 22, 2018 at 4:48 pm

Thank you very much. Seems like this fixes all kind of issue. It fixed mine.

Ghost · May 20, 2018 at 6:16 pm

Thank you for your help and save my time
I get this problem on my project on Visual Studio when i get Blue Dead screen. i get Blue Dead screen because other program

my project doesn’t start and When i edit my project main Form i get “(Cannot load Counter Name data because an invalid index ” was read from the registry.)”

After doing above steps everything is going well and my project come back to living.

yazy · March 16, 2018 at 3:27 am

dude god bless you

Aneesha · March 5, 2018 at 10:35 pm

Thank you for the post. It is fixed my issue.

Jayesh · December 12, 2017 at 7:40 am

The steps mentioned exactly worked as mentioned in the post and I was successfully able to resolve the error. Thanks a lot and God bless people like you!!!

Madmax71470 · June 8, 2017 at 11:11 am

Thanks for posting this up, I was not sure it was related as I was install a video management program that was barking this error. (Milestone Xprotect 2016)
The first time the command was run barked an error, ran the command again, and it completed successfully. The program now installs without error. Again Thanks for posting this!

Yuriy · March 7, 2017 at 11:03 am

THANK YOU!

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *