Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Also, no mentions of "GroupSettings" in my code:
Find all "GroupSettings", Subfolders, Find Results 1, Entire Solution, "" Matching lines: 0 Matching files: 0 Total files searched: 1258
I've duplicated the affected page type, and no error is thrown for the duplicate. This leads me to believe that there are some corrupt values in the database. But where to look?
Using guids on all pagetypes?
Check tblContentType and see if you can find any duplicates there. Also check admin if you can see anything strange there with some pagetypes that lack code
Yes, I've tried to revert to default. All page types have a GUID, and there isn't any pagetypes lacking code. I didn't find any duplicates in tblContentType. Any other tables I should take a look at?
Do you know when an IMetadataExtender is executed? One idea I have is to create an empty IMetadataExtender just to look at what's in the ExtendedMetadata object.
As allways, the most obvious solution is usually correct. Some EditorDescriptor messed with the metadata. Worked in 8x, not in 9x.
Hi Torjus,
I'm encountering the same error, and I'm curious to know more details as to what you did to resolve the issue. My solution has several EditorDescriptors...
/Kristian
After some help from support, I managed to drill the problem down to this beeing used on the PageType with the problems:
[Display(GroupName = "EPiServerCMS_SettingsPanel")]
Once the GroupName was changed, the problem went away
Ok, probably wise to use the static I guess
GroupName = EPiServer.DataAbstraction.SystemTabNames.Settings
instead to avoid magic strings
On some versions this has also been known to happen when using the constant SystemTabNames.PageHeader, which essentially is "EPiServerCMS_SettingsPanel".
I get the following error, but I can't find any duplicate attributes in my classes (or base classes). Any idea?
ERROR EPiServer.Global: 1.2.5 Unhandled exception in ASP.NET System.InvalidOperationException: It's not allowed to add several GroupSettings attributes for properties within the same class with the same name. at EPiServer.Shell.UI.Rest.DefaultMetadataStoreModelCreator.GenerateInvalidOperationException(String baseMessage, ExtendedMetadata propertyMetadata) at EPiServer.Shell.UI.Rest.DefaultMetadataStoreModelCreator.ExtractMetadataFromProperties(ExtendedMetadata metadata, MetadataStoreModel MetadataStoreModel, LocalizationService localizationService, UIDescriptorRegistry uiDescriptorRegistry, ISelectionFactory[] selectionFactories) at EPiServer.Shell.UI.Rest.DefaultMetadataStoreModelCreator.CreateFromModelMetadata(ExtendedMetadata metadata, LocalizationService localizationService, UIDescriptorRegistry uiDescriptorRegistry, ISelectionFactory[] selectionFactories, Boolean alwaysCreateChildProperties) at EPiServer.Shell.UI.Rest.DefaultMetadataStoreModelCreator.Create(ModelMetadata metadata) at EPiServer.Shell.UI.Rest.MetadataStore.Get(String id, String modelAccessor) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.b__41()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.b__22(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)