Export to Excel fails from child entities/screen sections in version 2024.6 with server error 500.
{
"ClassName": "System.InvalidCastException",
"Message": "Unable to cast object of type 'Origam.Schema.EntityModel.EntityRelationItem' to type 'Origam.Schema.EntityModel.IDataEntity'.",
"Data": {
"logged": true
},
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance[T](Guid id) in D:\\a\\1\\s\\backend\\Origam.DA.Service\\FilePersistenceProvider.cs:line 183\n at Origam.Rule.RuleEngine.IsExportAllowed(Guid entityId) in D:\\a\\1\\s\\backend\\Origam.Rule\\RuleEngine.cs:line 1933\n at Origam.Server.Controller.ExcelExportController.<>c__DisplayClass2_0.<GetFile>b__0() in D:\\a\\1\\s\\backend\\Origam.Server\\Controller\\ExcelExportController.cs:line 63\n at Origam.Server.Controller.AbstractController.RunWithErrorHandler(Func`1 func) in D:\\a\\1\\s\\backend\\Origam.Server\\Controller\\AbstractController.cs:line 120",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2147467262,
"Source": "System.Private.CoreLib",
"WatsonBuckets": null
}