Copied to clipboard

Flag this post as spam?

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


  • Bogdan 250 posts 427 karma points
    Jun 20, 2014 @ 14:51
    Bogdan
    0

    TC.RemoveAllOrderLines(storeId); error - Sequence contains no matching element

    Hello,

    I'm getting this error from TC.RemoveAllOrderLines(storeId):

        [InvalidOperationException: Sequence contains no matching element]
       System.Linq.Enumerable.Single(IEnumerable`1 source, Func`2 predicate) +2614017
       TeaCommerce.Umbraco.Configuration.Infrastructure.Ping.PingDataProvider.GetPingData() +106
       TeaCommerce.Api.Infrastructure.Ping.PingService.Ping() +164
       TeaCommerce.Api.Models.Order.Save() +157
       TeaCommerce.Api.Web.TeaCommerceHelper.GetCurrentOrder(Int64 storeId, Boolean autoCreate) +627
       TeaCommerce.Api.Web.TeaCommerceHelper.RemoveAllOrderLines(Int64 storeId) +32
       TeaCommerce.Umbraco.Web.TC.RemoveAllOrderLines(Int64 storeId) +13
    

    Locally it works fine, only on the beta site it occurs.

  • Anders Burla 2560 posts 8256 karma points
    Jun 23, 2014 @ 08:29
    Anders Burla
    0

    I think you found a bug. What Tea Commerce version do you run? And what Umbraco version?

    Kind regards
    Anders

  • Bogdan 250 posts 427 karma points
    Jun 23, 2014 @ 09:13
    Bogdan
    0

    Hi Anders,

    Umbraco version is 6.2.1 (upgraded from 6.2.0), Tea Commerce 2.3.0.

    Thanks!

  • Anders Burla 2560 posts 8256 karma points
    Jun 23, 2014 @ 09:16
    Anders Burla
    0

    Can you go to your application.config file and see what the Tea Commerce application name and alias is. Thanks :)

  • Bogdan 250 posts 427 karma points
    Jun 23, 2014 @ 09:20
    Bogdan
    0

    Both name and alias are "teacommerce".

  • Anders Burla 2560 posts 8256 karma points
    Jun 23, 2014 @ 09:34
    Anders Burla
    0

    Ahh that is why. I have fixed the bug. Could you try and change the name to "Tea Commerce". Then I think it should work :)

  • Bogdan 250 posts 427 karma points
    Jun 23, 2014 @ 09:48
    Bogdan
    0

    Unfortunately the error is the same :( I also touched the web.config before trying.

  • Anders Burla 2560 posts 8256 karma points
    Jun 23, 2014 @ 09:55
    Anders Burla
    100

    Ahh sorry - it should be the name in the App_Data/packages/installed packages file

  • Bogdan 250 posts 427 karma points
    Jun 23, 2014 @ 10:04
    Bogdan
    0

    This was it! The installedPackages.config file didn't have the node for Tea Commerce. It probably got lost during deployments or when upgraded Umbraco. Thanks!

  • kristian schneider 190 posts 351 karma points
    Jun 26, 2014 @ 12:52
    kristian schneider
    0

    We've just had the same problem in an installation as well.

    I don't know how common it is to include the App_Data/packages folder in deployments, but we tend to treat it as a location for temporaty stuff. Perhaps it would be better to store this kind of information elsewhere like for example /config/ ?

  • Anders Burla 2560 posts 8256 karma points
    Jun 26, 2014 @ 15:00
    Anders Burla
    0

    We do deploy those. But I will try and fix so you dont have to do that. But that is the only way we can find the right Tea Commerce version in Umbraco.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft