Forum Discussion

PaulKlerkx's avatar
PaulKlerkx
Iron Contributor
Oct 22, 2020
Solved

Content Library Cleanup - System.NullReferenceException: Object reference not set to an instance of

Hi,

Short Story

we use a single server to host everything MECM.  

Our content library has a heap of entries that are greyed out and the majority of the entries appear to be from 5+ years ago for deployments we no longer have.

How do I clean out all the invalid entries from content library explorer

 

 

the Details

  I tried running the tool contentlibrarycleanup.exe in whatif mode, but after running for about an hour, it ends with this

 

Analyzing local files, 100.00% complete...
Loading package data from provider...
Loading local package data...
Loading distributed packages from provider...
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.ConfigurationManager.ContentLibraryCleanup.CLContentLibrary.LoadOrphanData(Boolean whatIfMode)
at Microsoft.ConfigurationManager.ContentLibraryCleanup.CLContentLibrary.Cleanup(Boolean whatIfMode, Boolean quietMode, String logDir)
at Microsoft.ConfigurationManager.ContentLibraryCleanup.Program.Main(String[] args)

 

our environment is server 2019, sql 2019, MECM 2002

 

I found this document - https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/content-library-cleanup-tool

 

it has this entry which is a bit vague, saying it will cleanup the DP but not if the DP is on a site server??

 

"The tool only affects the content on the distribution point that you specify when you run the tool. The tool can't remove content from the content library on the site server."

 

the way I read this is a little vague, but it suggests to me that maybe, if you have a single primary Site server that also contains your DP, this tool is not able to assist with cleaning up the DP of invalid content. Is that correct?

 

Is there another option for this scenario if the tool doesn't support a single DP on the site server?

How do I get rid of all the invalid entries in my content library explorer?

 

16 Replies

No RepliesBe the first to reply

Resources