Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Neil Hodges 338 posts 987 karma points
    Jul 07, 2014 @ 12:00
    Neil Hodges
    0

    Ucommerce - Currency not on a record YSOD when moved to staging

    Hi

    I have a Umbraco 7.1.1 install, running the latest Ucommerce and utilising the demo store. In my dev enviroment it works perfectly fine creating products, definitions and so on but once ive deployed it to the staging site i keep gettinga YSOD

    Currency not on a record

    The full trace is below:

    Currency not on a record

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Microsoft.Isam.Esent.Interop.EsentNoCurrentRecordException: Currency not on a record

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [EsentNoCurrentRecordException: Currency not on a record]
       Microsoft.Isam.Esent.Interop.Api.RetrieveColumnAsInt32(JET_SESID sesid, JET_TABLEID tableid, JET_COLUMNID columnid, RetrieveColumnGrbit grbit) +195
       Raven.Storage.Esent.StorageActions.DocumentStorageActions.GetIndexStats() +1009
       Raven.Storage.Esent.StorageActions.<GetIndexesStats>d__3a.MoveNext() +573
       System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +165
       System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +536
       System.Linq.Enumerable.ToList(IEnumerable`1 source) +80
       Raven.Database.Plugins.Builtins.<>c__DisplayClass2.<Execute>b__0(IStorageActionsAccessor actions) +219
       Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext) +303
       Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action) +750
       Raven.Database.DocumentDatabase.ExecuteStartupTasks() +355
       Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState transportState) +2131
       Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal() +449
       Raven.Client.Document.DocumentStore.Initialize() +797
       UCommerce.Search.RavenDB.RavenDbStoreProvider.SetupEmbeddedDocumentStore() +679
       UCommerce.Search.RavenDB.RavenDbStoreProvider.GetStore() +115
       UCommerce.Search.RavenDB.RavenDbRepository.Save(T document) +46
       UCommerce.Search.RavenDB.RavenDbRepository.SaveMany(IEnumerable`1 documents) +313
       UCommerce.Search.Indexers.RavenProductIndexer.Index(IEnumerable`1 subjects) +239
       UCommerce.Extensions.CollectionExtensions.ForEach(IEnumerable`1 source, Action`1 action) +136
       UCommerce.Pipelines.Search.SearchIndexerTask`1.Execute(T subject) +172
       UCommerce.Pipelines.Pipeline`1.Execute(T subject) +275
    
    [PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Catalog.ProductPipeline'. See inner exception for details.]
       UCommerce.Pipelines.Pipeline`1.Execute(T subject) +513
       UCommerce.Web.UI.Catalog.CreateCategoryOrProduct.CreateButton_Clicked(Object sender, EventArgs e) +981
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
    

    Any one have any ideas why this would be happening? Is there an easy fix?

  • Morten Skjoldager 440 posts 1499 karma points
    Jul 08, 2014 @ 09:41
    Morten Skjoldager
    100

    Looks like the raven database aren't updated properly. You should reindex the database when moving to a new environment (and not move the raven database under app_data). It will some times screw with the database when you move them from file system to file system.

    Try deleting the raven database folder and reindex under settings/search. 

    Hope that helps.

    Best regards

    Morten

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 12, 2014 @ 12:03
    Søren Spelling Lund
    0

    Did this fix the issue?

  • Neil Hodges 338 posts 987 karma points
    Aug 12, 2014 @ 12:21
    Neil Hodges
    0

    Hi

    I didnt try deleting the Raven DB as i was at a loss so created a blank version on the staging enviroment and added things manually, thankfully there wasnt much to add.

    However since then i have uploaded a different site to staging in the same manner and deleted the raven DB and that seemed to do the trick as i never saw any YSOD with this site. I'll bear this in mind going forward with any new sites i do :)

    Thanks for your help.

Please Sign in or register to post replies

Write your reply to:

Draft