Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Jul 2022 07:29 AM by  Kamil Maciaszek
Storefront Scheduler
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages


New Member


Posts:47
New Member


--
25 Jul 2022 10:58 AM

    I have a website with DNN 9.10.2 + Revindex Storefront 18.2.0, hosted on Azure.

    When Storefront Scheduler is working I get the following exception:

    AbsoluteURL:

    DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

    ExceptionGUID:c5329f17-2618-430e-8c01-7e2581d846c0

    AssemblyVersion:

    PortalId:-1

    UserId:-1

    TabId:-1

    RawUrl:

    Referrer:

    UserAgent:

    ExceptionHash:dMCNBLO8rTKR05GgzXwiT5u7aUM=

    Message:Cannot add an entity with a key that is already in use.

    StackTrace:

    at System.Data.Linq.Table`1.Attach(TEntity entity, Boolean asModified) at System.Data.Linq.Table`1.Attach(TEntity entity) at Revindex.Data.Linq.ControllerBase`2.Update(T entity) at Revindex.Business.Revindex.Revindex.Storefront.BoughtProductController.Update(BoughtProduct boughtProduct) at Revindex.Business.Revindex.Revindex.Storefront.GeneralScheduler.DoWork()

     

    InnerMessage:

    InnerStackTrace:

     

    Source:System.Data.Linq

    FileName:

    FileLineNumber:0

    FileColumnNumber:0

    Method:

    Server Name: RD0003FF4C9AC7

    What should I do to solve these problem?

    0


    Veteran Member


    Posts:2951
    Veteran Member


    --
    25 Jul 2022 04:04 PM

    Hi Piotr

    It sounds like a race condition happened or you somehow have multiple schedulers running at the same time. The database prevented the insert to maintain integrity. If this doesn't happen again, i think it's safe to ignore it.

     

    0


    New Member


    Posts:47
    New Member


    --
    27 Jul 2022 07:29 AM
    Hi Steve

    I think you had good intuition. I've changed default settings for scheduler taks while ago. Now I've restored to default settings and it looks like it's working.
    0
    You are not authorized to post a reply.