Developer forum

Forum » Development » NullReferenceException when adding product

NullReferenceException when adding product

Dan Lundgren
Reply

Hello.

We are building a solution with a integration with NAV.
When we add new products and export them over from NAV, we get a strange exception in the productlist right after its been added to the database:

It shows the errormessage for a few hours, then the product appears.
If i recycle the appool the product/products get rendered aswell, and the errormessage doesnt show up again.
How do i get rid of this errormessage?

Best regards
Dan

Product_errormessage.PNG

Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Dan,

You probably need to reset the group cache. Try invoking

Dynamicweb.eCommerce.Products.Group.ClearCache();

once your import concludes.

- Jeppe

 

You must be logged in to post in the forum