Skip to Content
0
Former Member
May 04, 2017 at 12:23 PM

Error: could not translate value expression 'session.catalogversions'

1696 Views

Hi,

I am implementing AfterSaveListener, where I perform some actions on StockLevelModel change. The problem occurs when I try to call ProductService method getProductForCode. Service call looks like this:

productService.getProductForCode(stockLevel.getProductCode());

Unfortunately service returns error: could not translate value expression 'session.catalogversions'

As I understand it can't find catalog version in the session. I can not set catalog version manually, because I don't know from which catalog this product code comes from.

Are there any thoughts how I can get product within AfterSaveListener?