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

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



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:


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?