When trying to load an ECL list with an event handler the following error is displayed:
Unable to cast object of type 'Tridion.ContentManager.Data.CommunicationManagement.PublicationData' to type 'Tridion.ContentManager.Data.ContentManagement.FolderData'.
Component: Sdl.Tridion.ContentManager.OpenApi.Controllers.ListsController
Errorcode: 0
User: NT AUTHORITY\NETWORK SERVICE
StackTrace Information Details:
at Tridion.ContentManager.ContentManagement.Component.SetDefaultData()
at Tridion.ContentManager.IdentifiableObject.Load(LoadFlags flags, Boolean forceReload)
at Tridion.ContentManager.ContentManagement.VersionedItem.Load(LoadFlags flags, Boolean forceReload)
at Tridion.ContentManager.ContentManagement.Component.get_ApprovalStatus()
at WorkflowInfoDataEventHandlers.WorkflowInfoEventHandlers.GetWorkflowInfoLabel(Component component)
at WorkflowInfoDataEventHandlers.WorkflowInfoEventHandlers.OnGettingList(OrganizationalItem subject, GetListEventArgs`1 e, EventPhases phase)