error when have a input type as entity

Jan 6, 2016 at 8:58 AM
Hi

I have installed the latest 2sxc 811 on a clean 742 install

The minute I add a field that is an entity i get the following error


..../2sxc/api/eav/EntityPicker/getavailableentities?appId=4&contentTypeName=School

{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an
object.","ExceptionType":"System.NullReferenceException","StackTrace":" at ToSic.SexyContent.DataSources
.ModuleDataSource.GetContent()\r\n at ToSic.Eav.DataSources.DataStream.get_List()"}

The weird thing is that if I use the add new from the entity dropdown i can add new items and they are also saved but no entity list shows up in the entity dropdown

any ideas?
Coordinator
Jan 11, 2016 at 5:21 PM
my guess is a problem with adding / removing fields on the target content type. Basically if 2sxc tries to create a dropdown of "school" items and the title-field is missing (because it was deleted) or it's missing (because the title created later and some items don't have it) then this can cause issues