PropertyList collection in editor not rendering when model includes CategoryList property

  • Updated

The article describes an issue when the editor for the CategoryList property does not render at all.

The Chrome network panel when rendering shows an http 500 error when viewing the All properties view for the content with the CategoryList property in the CMS editor.

GET http://localhost:57262/EPiServer/shell/Stores/metadata/<custom site path>?dojo.preventCache=1495807805787

There is also an error in the site logs to coincide with the error above.

System.InvalidCastException: Unable to cast object of type 'EPiServer.Shell.ObjectEditing.ExtendedMetadata' to type 'EPiServer.Cms.Shell.UI.ObjectEditing.ContentDataMetadata'.

This issue was identified in escalation AFORM-1373 and resolved in Episerver Forms 4.6.1. Updating the forms package will resolve this issue.