Take the community feedback survey now.

LinkItemCollection Field Initialization Issue on App Startup After Episerver 11 Package Updates

Vote:
 

We encountered an issue with fields of type LinkItemCollection. If there are more than three LinkItem objects in the field, it is initialized as null at application startup instead of being populated with a list of LinkItem objects. However, after the block is re-published, the field is correctly set with the valid links.

We encountered that issue after the following packages were updated in our application:

from

  <package id="EPiServer.CMS.AspNet" version="11.21.3" targetFramework="net48" />
  <package id="EPiServer.CMS.Core" version="11.21.3" targetFramework="net48" />
  <package id="EPiServer.CMS.UI" version="11.37.4" targetFramework="net48" />
  <package id="EPiServer.CMS.UI.Core" version="11.37.4" targetFramework="net48" />
  <package id="EPiServer.Framework" version="11.21.3" targetFramework="net48" />
  <package id="EPiServer.Framework.AspNet" version="11.21.3" targetFramework="net48" />
  
to
  
  <package id="EPiServer.CMS.AspNet" version="11.21.4" targetFramework="net48" />
  <package id="EPiServer.CMS.Core" version="11.21.4" targetFramework="net48" />
  <package id="EPiServer.CMS.UI" version="11.37.5" targetFramework="net48" />
  <package id="EPiServer.CMS.UI.Core" version="11.37.5" targetFramework="net48" />
  <package id="EPiServer.Framework" version="11.21.4" targetFramework="net48" />
  <package id="EPiServer.Framework.AspNet" version="11.21.4" targetFramework="net48" />

#339617
Jul 09, 2025 9:26
Vote:
 

We found that issue was fixed for the EPiServer.CMS.Core 12.22.1 Bug - CMS-38033 but it probably was introduced in the EPiServer.CMS.Core 11.21.4.

Workaround: Set ContentOptions.PropertyLazyLoadThreshold = 0.
By default it set to 255 (The number of characters when lazy loading should be activated for propertiesusing the EPiServer.Core.PropertyDataType.LongString data type).

Those details were found in the following post: /forum/developer-forum/cms-12/thread-container/2024/11/object-caching-vs-linkitemcollection-/

#339619
Jul 10, 2025 9:11
* 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.