Skip to main content

Posts

Showing posts from January, 2025

How to fix "System.InvalidOperationException: Sequence contains no matching element" error after upgrading your v7/v8 project to v13+

 As part of my job, I get involved in quite a few Umbraco upgrade projects, and recently, after upgrading an Umbraco v8 project to the latest LTS version of Umbraco (v13), I saw a new error which blocked a piece of content from being rendered correctly.  Problem The problem was happening with one Special CTA content block and all other blocks were looking good.  System.InvalidOperationException: Sequence contains no matching element    at System.Linq.ThrowHelper.ThrowNoMatchException()    at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)    at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValue(String id, String contentTypeAlias, String dataJson)    at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.RenderDocTypeGridEditorItem(IViewComponentHelper helper, IHtmlHelper htmlHelper, Object model)    at AspNetCore.App_Plugins_DocTypeGridEdito r_Render_DocTypeGr...