Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Feb 10, 2016 @ 02:38
    Nicholas Westby
    0

    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)
    

    I'm using Umbraco 7.3.4 and Polyglot 2.04.

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Feb 10, 2016 @ 02:51
    Nicholas Westby
    0

    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:

    SQL Query

    This reinforces my belief that Polyglot does not support compositions.

    Any chance of this being fixed soon?

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Feb 29, 2016 @ 19:25
    Nicholas Westby
    100

    This was addressed in another thread and now appears to be working.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies