Issue
- When invoking Liferay JSON Web Service to do the searching, you may encounter errors like the following:
com.liferay.portal.kernel.dao.orm.ORMException:
org.hibernate.exception.SQLGrammarException: could not execute query
user lacks privilege or object not found: JOURNALARTICLE.RESOURCEPRIMKEY
OR
The multi-part identifier "JournalArticle.resourcePrimKey" could not be bound
Environment
- Liferay DXP 7.1
Resolution
- Navigate to Control Panel > Configuration > System Settings > Security Tools > Inline Permission and untick SQL Check Enabled
Additional Information
- For previous Liferay versions, we can configure permissions.inline.sql.check.enabled property in portal-ext.properties.
- Please refer to Liferay's permissions.inline.sql.check.enabled property for more details about this setting.