Suddenly Media Pickers stopped working. Also, clicking on a root folder in Media section gives me this error: Failed to retrieve children for media item 7161.
I checked Data Integrity in Health Check and found out that Media is corrupted.
I pressed 'Fix' button and got this error: Failed to execute action with alias checkMediaXmlTable and healthCheckId + {guid}
In log files I found following:
2020-11-11 21:37:24,447 [P1480/D3/T22] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1
System.Exception: Error indexing queue items,System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
at Umbraco.Core.Services.EntityXmlSerializer.Serialize(IContentService contentService, IDataTypeService dataTypeService, IUserService userService, IContent content, Boolean deep)
at UmbracoExamine.UmbracoContentIndexer.<GetSerializedContent>d__f.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Examine.LuceneEngine.Providers.LuceneIndexer.ForceProcessQueueItems(Boolean block) in X:\Projects\Examine\Examine\Projects\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 1486, IndexSet: ExternalIndexSet
2020-11-11 21:37:28,026 [P1480/D3/T7] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1
System.Exception: Error indexing queue items,System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
at Umbraco.Core.Services.EntityXmlSerializer.Serialize(IMediaService mediaService, IDataTypeService dataTypeService, IUserService userService, IMedia media, Boolean deep)
at UmbracoExamine.UmbracoContentIndexer.<GetSerializedMedia>d__7.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Examine.LuceneEngine.Providers.LuceneIndexer.ForceProcessQueueItems(Boolean block) in X:\Projects\Examine\Examine\Projects\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 1486, IndexSet: ExternalIndexSet
2020-11-11 21:38:49,087 [P1480/D3/T22] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=InternalIndexer, NodeId=-1
System.Exception: Error indexing queue items,System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
at Umbraco.Core.Services.EntityXmlSerializer.Serialize(IContentService contentService, IDataTypeService dataTypeService, IUserService userService, IContent content, Boolean deep)
at UmbracoExamine.UmbracoContentIndexer.<GetSerializedContent>d__f.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Examine.LuceneEngine.Providers.LuceneIndexer.ForceProcessQueueItems(Boolean block) in X:\Projects\Examine\Examine\Projects\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 1486, IndexSet: InternalIndexSet
2020-11-11 21:39:25,719 [P1480/D3/T16] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=InternalIndexer, NodeId=-1
System.Exception: Error indexing queue items,System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
at Umbraco.Core.Services.EntityXmlSerializer.Serialize(IMediaService mediaService, IDataTypeService dataTypeService, IUserService userService, IMedia media, Boolean deep)
at UmbracoExamine.UmbracoContentIndexer.<GetSerializedMedia>d__7.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Examine.LuceneEngine.Providers.LuceneIndexer.ForceProcessQueueItems(Boolean block) in X:\Projects\Examine\Examine\Projects\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 1486, IndexSet: InternalIndexSet
I tried rebuilding indxes in Examine Management, didn't help.
Then I tried removing AppData\TEMP folder and AppData\umbraco.config but it didn't help.
Your error is relating to getting an Umbraco User:
at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
I can't say exactly what property it's getting the user for (i.e. Created By, Last Updated By, etc).
I'm guessing the user that has created the media item / last edited has been deleted (?) and now unable to find the user to set those values in the index set.
I would advise updating ~/config/ExaminIndex.config to no longer index that information. i.e. remove the following line from your internal/external index sets (although my example is from the InternalMemberIndexSet):
Error indexing queue items,System.NullReferenceException
Hi
Disclaimer: I'm not an expert in Umbraco.
Suddenly Media Pickers stopped working. Also, clicking on a root folder in Media section gives me this error: Failed to retrieve children for media item 7161.
I checked Data Integrity in Health Check and found out that Media is corrupted.
I pressed 'Fix' button and got this error: Failed to execute action with alias checkMediaXmlTable and healthCheckId + {guid}
In log files I found following:
I tried rebuilding indxes in Examine Management, didn't help. Then I tried removing AppData\TEMP folder and AppData\umbraco.config but it didn't help.
Any ideas? Thanks
Hi Vit,
Your error is relating to getting an Umbraco User:
at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
I can't say exactly what property it's getting the user for (i.e. Created By, Last Updated By, etc).
I'm guessing the user that has created the media item / last edited has been deleted (?) and now unable to find the user to set those values in the index set.
I would advise updating ~/config/ExaminIndex.config to no longer index that information. i.e. remove the following line from your internal/external index sets (although my example is from the InternalMemberIndexSet):
is working on a reply...