When trying to index everything from scratch, i get a bunch of these errors, flooding the UmbracoTraceLog file:
ERROR Raven.Database.Indexing.AbstractIndexingExecuter - Failed to execute indexing System.InvalidOperationException: The JsonReader should not be on a token of type StartObject. ved Raven.Json.Linq.RavenJObject.Load(JsonReader reader) ved Raven.Json.Linq.RavenJObject.Load(JsonReader reader) ved Raven.Abstractions.Extensions.JsonExtensions.ToJObject(Stream self) ved Raven.Storage.Esent.StorageActions.DocumentStorageActions.ReadCurrentDocument() ved Raven.Storage.Esent.StorageActions.DocumentStorageActions.<GetDocumentsAfter>d__12.MoveNext() ved System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() ved System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) ved System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) ved Raven.Database.Prefetching.PrefetchingBehavior.<>c__DisplayClass3.<GetJsonDocsFromDisk>b__0(IStorageActionsAccessor actions) ved Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext) ved Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action) ved Raven.Database.Prefetching.PrefetchingBehavior.GetJsonDocsFromDisk(Etag etag, Etag untilEtag) ved Raven.Database.Prefetching.PrefetchingBehavior.LoadDocumentsFromDisk(Etag etag, Etag untilEtag) ved Raven.Database.Prefetching.PrefetchingBehavior.GetDocsFromBatchWithPossibleDuplicates(Etag etag) ved Raven.Database.Prefetching.PrefetchingBehavior.GetDocumentsBatchFrom(Etag etag) ved Raven.Database.Indexing.IndexingExecuter.ExecuteIndexingWork(IList`1 indexesToWorkOn, Etag startEtag) ved Raven.Database.Indexing.AbstractIndexingExecuter.ExecuteIndexing(Boolean isIdle, Boolean& onlyFoundIdleWork) ved Raven.Database.Indexing.AbstractIndexingExecuter.Execute()
We are creating the products programmatically, thereby skipping the input validation that the UI normally provides, so yes there are null or empty values in a lot of properties.
Yes, this also happens when saving a product, and when saving a category.
Thanks for the great support - the beta package you created for us resolved the issue, and we are looking forward to the fix in the stable release! :-)
Error when using "Index everything from scratch"
When trying to index everything from scratch, i get a bunch of these errors, flooding the UmbracoTraceLog file:
ERROR Raven.Database.Indexing.AbstractIndexingExecuter - Failed to execute indexing
System.InvalidOperationException: The JsonReader should not be on a token of type StartObject.
ved Raven.Json.Linq.RavenJObject.Load(JsonReader reader)
ved Raven.Json.Linq.RavenJObject.Load(JsonReader reader)
ved Raven.Abstractions.Extensions.JsonExtensions.ToJObject(Stream self)
ved Raven.Storage.Esent.StorageActions.DocumentStorageActions.ReadCurrentDocument()
ved Raven.Storage.Esent.StorageActions.DocumentStorageActions.<GetDocumentsAfter>d__12.MoveNext()
ved System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
ved System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
ved System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
ved Raven.Database.Prefetching.PrefetchingBehavior.<>c__DisplayClass3.<GetJsonDocsFromDisk>b__0(IStorageActionsAccessor actions)
ved Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
ved Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)
ved Raven.Database.Prefetching.PrefetchingBehavior.GetJsonDocsFromDisk(Etag etag, Etag untilEtag)
ved Raven.Database.Prefetching.PrefetchingBehavior.LoadDocumentsFromDisk(Etag etag, Etag untilEtag)
ved Raven.Database.Prefetching.PrefetchingBehavior.GetDocsFromBatchWithPossibleDuplicates(Etag etag)
ved Raven.Database.Prefetching.PrefetchingBehavior.GetDocumentsBatchFrom(Etag etag)
ved Raven.Database.Indexing.IndexingExecuter.ExecuteIndexingWork(IList`1 indexesToWorkOn, Etag startEtag)
ved Raven.Database.Indexing.AbstractIndexingExecuter.ExecuteIndexing(Boolean isIdle, Boolean& onlyFoundIdleWork)
ved Raven.Database.Indexing.AbstractIndexingExecuter.Execute()
I'm using Umbraco 6.1.6 and uCommerce 5.1.1.14007
Hello Mads,
A quick google search for the exception yields no specific information other than it might be corrupted JSON that's being parsed.
Do you have a null or empty value in one of your properties?
Looks like the exception is thrown here when there's an element that is null or empty:
https://github.com/ravendb/ravendb/blob/master/Raven.Abstractions/Json/Linq/RavenJObject.cs
Maybe we have a bug here :)
Does this also happen when you save a product?
Can you maybe send me your database at msk AT ucommerce DOT net
Best regards
Morten
We are creating the products programmatically, thereby skipping the input validation that the UI normally provides, so yes there are null or empty values in a lot of properties.
Yes, this also happens when saving a product, and when saving a category.
I have sent a copy of the database to you.
Thanks in advance!
This should be fixed in the next release! :-)
Kind regards,
Jesper
Thanks for the great support - the beta package you created for us resolved the issue, and we are looking forward to the fix in the stable release! :-)
is working on a reply...