I have an issues where I’m not able to sort children of a specific type.
I can easily sort other doctypes, except this one.
Any suggestions on how to debug this ?
When I try I get the following error:
Newtonsoft.Json.JsonReaderException: Error parsing undefined value. Path '', line 1, position 1.
at Newtonsoft.Json.JsonTextReader.ParseUndefined()
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Umbraco.Cms.Core.PropertyEditors.MultiUrlPickerValueEditor.GetReferences(Object value)+MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
at Umbraco.Cms.Core.PropertyEditors.DataValueReferenceFactoryCollection.GetReferencesEnumerable(IDataEditor dataEditor, IEnumerable`1 values)+MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Umbraco.Cms.Core.PropertyEditors.DataValueReferenceFactoryCollection.GetAllReferences(IPropertyCollection properties, PropertyEditorCollection propertyEditors)
at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ContentRepositoryBase`3.PersistRelations(TEntity entity)
at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.DocumentRepository.PersistUpdatedItem(IContent entity)
at Umbraco.Cms.Core.Cache.DefaultRepositoryCachePolicy`2.Update(TEntity entity, Action`1 persistUpdated)
at Umbraco.Cms.Core.Services.ContentService.Sort(ICoreScope scope, IContent[] itemsA, Int32 userId, EventMessages eventMessages)
at Umbraco.Cms.Core.Services.ContentService.Sort(IEnumerable`1 ids, Int32 userId)
at Umbraco.Cms.Web.BackOffice.Controllers.ContentController.PostSort(ContentSortOrder sorted)