Hi,
I am trying to get a product on IndexBuilderExtender using Dynamicweb.Ecommerce.Products.Product.GetProductById("PROD2546"), but it's always retrieving the following error:
Product index builder experienced a fatal error.. System.NullReferenceException: Object reference not set to an instance of an object. at Dynamicweb.Environment.ExecutingContext.IsBackEnd() at Dynamicweb.Ecommerce.Products.Product.GetProductById(String productId, String productVariantId, String productLanguageId) at Dna.IndexBuilderExtender.IndexBuilderExtender.ExtendDocument(IndexDocument doc) at Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder.WriteDocument(IndexDocument document, Int64 currentAutoId) at Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder.ProcessProducts() at Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder.Build(IIndexWriter writer, Tracker tracker)
I also tried to send the variant as an empty string, the default lang but got the same result. Any idea?
DW: 9.3.8
Thanks in advance!
BR, Mario