47

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

 1 year ago
source link: https://answers.sap.com/questions/13869170/error-could-not-translate-value-expression-session.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
4 days ago

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

112 Views Last edit 4 days ago 3 rev

While a custom Cronjob runs, we are getting an error - Error: could not translate value expression 'session.catalogversions'
There are many active search restrictions in the application, whereas this issue is caused by a particular searchRestriction that has below details

Restricted type: DiscountRow
Applies on: CustomerGroup
Filter: ({item:product} IS NOT NULL OR{item:catalogVersion} IS NULL OR {item:catalogVersion} IN (?session.catalogversions))

We are migrating from 2011 to 2205, We have other environments with same code and the restriction in 2011 version, where we do not face this issue. It only occurs in 2205 version.

Session user is admin in RUN AS tab of my cronjob. So since this restriction is on customergroup, it should not be applicable to admin in my understanding.

Any thoughts how can I resolve this without disabling the searchrestriction?

Thanks in advance!

1 comment
1 minute ago

Please check your cronjob is not multi-threaded and you forgot to set the context to the thread.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK