LINQ Sequence Error When Attempting Translation with Polyglot
When I attempt to create a translation with Polyglot in the context menu that appears when right clicking content nodes, I get this error:
System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
at Umbraco.Core.Persistence.Database.SingleOrDefault[T](Sql sql)
at Dimi.Polyglot.DAL.ContentType.GetPropertyList(Int32 contentTypeId, List`1 rowList)
at Dimi.Polyglot.BLL.ContentType.GetPropertyList(Int32 contentTypeId)
at Dimi.Polyglot.BLL.DocumentTranslation.<>c__DisplayClass11_0.<CheckTranslationInfrastructure>b__1(PropertyType p)
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at Dimi.Polyglot.BLL.DocumentTranslation.CheckTranslationInfrastructure(Int32 nodeID)
LINQ Sequence Error When Attempting Translation with Polyglot
When I attempt to create a translation with Polyglot in the context menu that appears when right clicking content nodes, I get this error:
I'm using Umbraco 7.3.4 and Polyglot 2.04.
The problem seems to be this line:
https://github.com/dimitrikourk/Polyglot/blob/721f87476e4b41168f3041e718d9792447458327/Dimi.Polyglot/DAL/ContentType.cs#L30
It doesn't seem to be aware of compositions, so it's expecting exactly one "parent" doctype. Here are some SQL queries that clarify the issue:
This reinforces my belief that Polyglot does not support compositions.
Any chance of this being fixed soon?
This was addressed in another thread and now appears to be working.
is working on a reply...