Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vit 1 post 71 karma points
    Nov 12, 2020 @ 00:26
    Vit
    0

    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. enter image description here

    I pressed 'Fix' button and got this error: Failed to execute action with alias checkMediaXmlTable and healthCheckId + {guid} enter image description here

    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.

    Any ideas? Thanks

  • Jcr 20 posts 130 karma points
    Dec 03, 2020 @ 14:20
    Jcr
    0

    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):

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft