{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4098","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4098/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4098/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4098/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/4098","id":68218491,"number":4098,"title":"Create 2nd content with projectionPart results in unhandled exception","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-11-08T12:25:52Z","updated_at":"2015-04-13T23:32:16Z","closed_at":"2015-04-13T23:32:16Z","body":"__Znowman__ created:\r\nhttps://orchard.codeplex.com/workitem/20269\r\n\r\nIn 1.7.1 when I create a second content item of a contenttype which has a projectionPart it crashes and gives me the following exception:\r\n\nUpdate: Nevermind. The exception was that I had two contenttypes with the same name in the database :)\r\n\nAn unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back\r\nSequence contains more than one element\r\nSystem.InvalidOperationException: Sequence contains more than one element at NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable1 source) at Orchard.Data.Repository1.Get(Expression1 predicate) at Orchard.Data.Repository1.Orchard.Data.IRepository<T>.Get(Expression1 predicate) at Orchard.ContentManagement.DefaultContentManager.<>c__DisplayClass84.<AcquireContentTypeRecord>b__83(AcquireContext1 ctx) at Orchard.Caching.Cache2.CreateEntry(TKey k, Func2 acquire) at Orchard.Caching.Cache2.AddEntry(TKey k, Func2 acquire) at Orchard.Caching.Cache2.<>c__DisplayClass2.<Get>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary2.AddOrUpdate(TKey key, Func2 addValueFactory, Func3 updateValueFactory) at Orchard.Caching.Cache2.Get(TKey key, Func2 acquire) at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func2 acquire) at Orchard.ContentManagement.DefaultContentManager.AcquireContentTypeRecord(String contentType) at Orchard.ContentManagement.DefaultContentManager.Create(ContentItem contentItem, VersionOptions options) at Orchard.Localization.Controllers.AdminController.TranslatePOST(Int32 id, Action1 conditionallyPublish) at Orchard.Localization.Controllers.AdminController.TranslatePOST(Int32 id) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)\n"}}