Unable to publish LinkItemCollection Properties

Vote:
 

I have used dojo custom properties for key value items and LinkItemCollection in two different Block type.

Unable to publish Links(LinkItemCollection Property) and it throws "NetworkError: 500 Internal Server Error - http://xxx/EPiServer/cms/Stores/contentdata/33_99?dojo.preventCache=1447940258166"

Could you please help me to resolve the issue?

Episerver Version: 8.1.0.75

#141753
Nov 19, 2015 14:52
Vote:
 

Can you open the URLs that give you 500 from console in a new tab? That should give you a more detailed error message.

#141773
Nov 19, 2015 20:12
Vote:
 

I am getting the following error message:

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Cms.Shell.UI.ObjectEditing.InternalMetadata.LinkModel.ModifyIContentProperties(LinkItem serverModel, LinkModel clientModel) +274
   EPiServer.Cms.Shell.UI.ObjectEditing.InternalMetadata.LinkModel.ToClientModel(Object serverModel) +353
   EPiServer.Cms.Shell.Json.LinkItemCollectionConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer) +202
   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty) +506
   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) +911
   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDictionary(JsonWriter writer, IDictionary values, JsonDictionaryContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) +1436
   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) +1335
   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) +178
   Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) +936
   EPiServer.Shell.Services.Rest.RestResult.ExecuteResult(ControllerContext context) +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +109
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +97
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
   EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult) +175
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
#141791
Nov 20, 2015 10:41
Vote:
 

I have the exact same error. Did you ever work it out?

#196014
Aug 16, 2018 3:37
Vote:
 

Hi,

Could you send a content model class where the property is defined?

#196078
Aug 17, 2018 14:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.