Duplicate scripted content fragment detected

Hi All,

Can anyone have some information how I can resolve below issue it is coming in multiple widgets.

Duplicate scripted content fragment detected: Bragger Badges - User Hover, defined in Core Widgets, uses the same identifier/theme as , defined in Core Widgets (212f71d69e37457887f33f32918f6ae2:). (An error was encountered with the site's configuration. Details of the issue were logged for review by the administrator.) ---> System.Exception: Exception of type 'System.Exception' was thrown.
   --- End of inner exception stack trace ---
   at Telligent.Evolution.ScriptedContentFragments.Implementations.FactoryDefaultScriptedContentFragmentService.<InternalGetFactoryDefaults>b__16_0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.FactoryDefaultScriptedContentFragmentService.InternalGetFactoryDefaults()
   at Telligent.Evolution.ScriptedContentFragments.Implementations.FactoryDefaultScriptedContentFragmentService.GetAll()
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentService.<GetCache>b__34_0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentService.GetCache()
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentService.GetAllUniqueInstances()
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOrchestrationService.GetAllUniqueInstances(Nullable`1 forceStaged)
   at Telligent.Evolution.ScriptedContentFragments.ScriptedContentFragment.GetAllInstances(Boolean enableStaged)
   at Telligent.Evolution.Components.ContentFragmentService.<GetInstalledContentFragmentsById>b__29_0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.Components.ContentFragmentService.GetInstalledContentFragmentsById()
   at Telligent.Evolution.Components.ContentFragmentService.GetContentFragmentInfo(String fragmentIdentifier, Boolean enableStaged)
   at Telligent.Evolution.Data.ContentFragmentPageSqlDataProvider.PopulateConfiguredContentFragment(ConfiguredContentFragment ccf, IDataReader reader, Guid themeId, Guid themeTypeId, Guid themeContextId)
   at Telligent.Evolution.Data.ContentFragmentPageSqlDataProvider.PopulateAndAddConfiguredContentFragment(IDataReader reader, IContentFragmentContainer container, Guid themeId)
   at Telligent.Evolution.Data.ContentFragmentPageSqlDataProvider.GetContentFragmentContainer(ContainerType containerType, Guid themeType, Guid themeContextID, Guid themeId)
   at Telligent.Evolution.Components.ContentFragmentPageDataService.<>c__DisplayClass20_0.<GetHeader>b__0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.Components.ContentFragmentPageDataService.GetHeader(Guid themeTypeID, Guid themeApplicationId, Guid themeId)
   at Telligent.Evolution.Components.ContentFragmentPageService.GetDefaultHeader(Guid themeType, Guid themeId, String contentFragmentId, Boolean enableStagedContentFragments, Boolean enableFactoryDefault)
   at Telligent.Evolution.Components.ContentFragmentPageService.InternalGetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Func`6 headerLoader, Func`3 themeLoader, Int32 inheritFromParentThemeDepth, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ContentFragmentPageService.<>c__DisplayClass65_0.<GetHeader>b__0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.Components.ContentFragmentPageService.GetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Func`6 headerLoader, Func`3 themeLoader, Int32 inheritFromParentThemeDepth, Boolean isCacheable, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ContentFragmentPageService.GetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Int32 inheritFromParentThemeDepth, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ContentFragmentPageService.ProcessRules(ContentFragmentHeader header, Guid themeTypeId, Guid themeApplicationId, Guid themeId, Func`6 headerLoader, Func`3 themeLoader, Int32 inheritFromParentThemeDepth, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ContentFragmentPageService.InternalGetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Func`6 headerLoader, Func`3 themeLoader, Int32 inheritFromParentThemeDepth, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ContentFragmentPageService.<>c__DisplayClass65_0.<GetHeader>b__0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.Components.ContentFragmentPageService.GetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Func`6 headerLoader, Func`3 themeLoader, Int32 inheritFromParentThemeDepth, Boolean isCacheable, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ContentFragmentPageService.GetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Int32 inheritFromParentThemeDepth, Boolean enableStagedContentFragments)
   at Telligent.Evolution.Components.ThemeOrchestrationService.GetHeader(Guid themeTypeId, Guid themeApplicationId, Guid themeId, Int32 inheritFromParentDepth)
   at Telligent.Evolution.Components.ThemeOrchestrationService.GetHeader(Guid themeTypeId, Guid themeApplicationId, ThemeTarget target, Int32 inheritFromParentDepth)
   at Telligent.Evolution.Platform.Theming.Model.ContentFragmentContainerState..ctor(Guid themeTypeId, Guid themeApplicationId, ContainerType containerType, ThemeConfiguration themeConfiguration, Int32 inheritContentFromParentDepth, IExecutionContext executionContext, String pageName, Boolean isCustom, Boolean ignoreContext, Boolean forceDefault, Int32 tabId, Boolean isInEditMode, Boolean showPageLayout)
   at Telligent.Evolution.Platform.Theming.VelocityExtensions.context_v2_themeBody.RenderHeader(IDictionary options)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
   at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
   at NVelocity.Runtime.Parser.Node.ASTReference.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Template.Merge(IContext context, TextWriter writer)
   at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.<>c__DisplayClass27_0.<ExecuteScriptByName>b__0()
   at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionOutputCachingService.Get(ScriptedExtension extension, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
   at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.ExecuteScriptByName(ScriptedExtension extension, String scriptName, ScriptExecutionExceptionHandling exceptionHandling)
   at Telligent.Evolution.Platform.Theming.Implementations.ThemeRenderingService.RenderBodyInternal(ThemeConfiguration themeConfiguration, TextWriter writer)
   at Telligent.Evolution.Platform.Theming.Implementations.PageHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
  • Hi . This sounds like it's related to a third party plugin that's defining the widget "Bragger Badges - User Hover". Generally, this error occurs when a plugin defines a factory default widget provider, but the provider is re-using the same ID as another pre-existing provider - in this case the built-in factory default widgets' provider. The plugin should be updated to use a unique ID. You could disable that plugin for now in Administration > Extensions.

  • If this is a local dev environment you could search in filestorage for "212f71d69e37457887f33f32918f6ae2" (the widget id) you will probably find multiple entries and be able to locate the invalid widget and remove/fix it

    As Michael mentioned this is normally caused when a core widget id is reused in a custom widget

  • Hey  I know this is an old thread but I'm having the same issue. Can you expand on how to go about determining which duplicates are likely to be invalid?

  • Hi  You would need access to the cfs storage on the community and search the widget xml files for duplicate ids, the error message should include the id you need to look for

    If you are unsure on any of the following I would suggest you raise this with verint support

    Start by making a backup of the cfs as you may need to edit/delete files

    I would normally use a text editor such as notepad++ which has the option to search files, but any tool which allows you to search files across folders could be used, you only need to search *.xml files and I would start by checking inside the default widgets folder (and its children)

    In the xml files you should  also see the widget names to help decide which is incorrect 

    If you are saas hosted you would need to request a backup so that you could check the files locally, once you have found the duplicates you will need to decide which is the newer/custom one and either change the id to be unique or delete it

    This is normally only the case if you have a plugin which installs widgets and it includes a widget which does not have a unique id, so once you have located the invalid entry you should also check any custom plugins to ensure that the widget isnit reinstalled via any future updates etc 

    As mentioned above, if you are unsure on this raise a ticket with the verint support team