Deeplink Error

0
ERROR - DeepLink: Error while serving deeplink:  ERROR - DeepLink: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//DeepLink.PendingLink[DeepLink.PendingLink_DeepLink=$mxId and User=$username]","amount":-1,"variables":{"mxId":"[MendixIdentifier:: id=44473046320283650 objectType=DeepLink.DeepLink entityID=158]","username":"z001pxpn"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//DeepLink.PendingLink[DeepLink.PendingLink_DeepLink=$mxId and User=$username]","amount":-1,"variables":{"mxId":"[MendixIdentifier:: id=44473046320283650 objectType=DeepLink.DeepLink entityID=158]","username":"z001pxpn"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:30) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//DeepLink.PendingLink[DeepLink.PendingLink_DeepLink=$mxId and User=$username]","amount":-1,"variables":{"mxId":"[MendixIdentifier:: id=44473046320283650 objectType=DeepLink.DeepLink entityID=158]","username":"z001pxpn"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:151) Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s):      InternalXPathTextGetRequest (depth = 0): //DeepLink.PendingLink[DeepLink.PendingLink_DeepLink=$mxId and User=$username]     at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.java:63) Caused by: com.mendix.core.objectmanagement.SecurityRuntimeException: No access rights for subquery [SELECT x1DeepLink.PendingLink.ID FROM deeplink$pendinglink AS x1DeepLink.PendingLink WHERE (c1deeplink$pendinglink_deeplink.deeplink$deeplinkid = ? AND x1DeepLink.PendingLink.user = ?)]     at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleSubQuery(WhereClauseMapper.java:1231)     at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleSelectColumn(WhereClauseMapper.java:1093)     at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTermSide(WhereClauseMapper.java:568)     at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTerm(WhereClauseMapper.java:169)     at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.map(WhereClauseMapper.java:142)     at com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.mapWhereClauseWhereTerms(QueryMapper.java:756)     at com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getMappedQueries(QueryMapper.java:248)
asked
1 answers
0

Hi Sidheshwari,

 

Based on:

Caused by: com.mendix.core.objectmanagement.SecurityRuntimeException: No access rights for subquery 

 

I would say your issue is on the security settings of your app. 

Did you add the module role User in the deeplink module to the user role that is trying to use the deeplink? 

answered