cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

former_member224482
Active Contributor
0 Kudos

I don't know from which catalog this product code comes from.
Stocks are independent to catalog version.

Have you tried to read all catalogs and check if the product exists in each ?
Is there a master catalog containing all products ?

Accepted Solutions (0)

Answers (0)