Exception while getting access token

0
Hi Experts, I am getting the attached exception when a scheduled event is running. How do i fix this ? Please Advise.. Below is the stack trace 2021-10-09T11:12:57.495+0000 [APP/PROC/WEB/0] OUT {"msg":"Unable to fetch user XSUAA token through microflow SapAuthentication.ACT_GetUserToken since there is no currentUser logged in.","level":"WARNING","written_ts":2226428840453875,"logger":"Destination Service","written_at":"2021-10-09T11:12:57.495Z"} 2021-10-09T11:12:57.495+0000 [APP/PROC/WEB/0] OUT {"msg":"No current user found. XSUAA token will be fetched using VCAP client","level":"INFO","written_ts":2226428840473950,"logger":"Destination Service","written_at":"2021-10-09T11:12:57.495Z"} 2021-10-09T11:12:57.839+0000 [APP/PROC/WEB/0] OUT {"msg":"The Destination UAT_OrgData fetched with authentication type PrincipalPropagation and proxy type OnPremise.","level":"INFO","written_ts":2226429185062651,"logger":"Destination Service","written_at":"2021-10-09T11:12:57.839Z"} 2021-10-09T11:12:57.844+0000 [APP/PROC/WEB/0] ERR {"msg":"Exception calling MF to get XSUAA user token","stacktrace":["com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s): ntInternalXPathTextGetRequest (depth = 0, amount = 1): //SapAuthentication.AccessToken[SapAuthentication.AccessToken_Account = '[%CurrentUser%]']ntat SapAuthentication.ACT_GetUserToken (RetrieveByXPath : 'Retrieve AccessToken from database')ntat {"name":"SAPODataConnector.ConsumeConnectivyService","type":"JavaAction"}ntat SAPODataConnector.SUB_ExtractConnectivityInfo (JavaAction : 'ConsumeConnectivyService')ntat SAPODataConnector.GetDestinationInternal (SubMicroflow : 'SUB_ExtractConnectivityInfo')ntat {"name":"SAPODataConnector.GetDestination","type":"JavaAction"}ntat record.Get_Business_Owner_Basic_Data (JavaAction : 'Get Destination')nnAdvanced stacktrace:","tat com.mendix.core.Core.execute(Core.java:279)","Caused by: ","com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s): ntInternalXPathTextGetRequest (depth = 0, amount = 1): //SapAuthentication.AccessToken[SapAuthentication.AccessToken_Account = '[%CurrentUser%]']ntat SapAuthentication.ACT_GetUserToken (RetrieveByXPath : 'Retrieve AccessToken from database')ntat {"name":"SAPODataConnector.ConsumeConnectivyService","type":"JavaAction"}ntat SAPODataConnector.SUB_ExtractConnectivityInfo (JavaAction : 'ConsumeConnectivyService')ntat SAPODataConnector.GetDestinationInternal (SubMicroflow : 'SUB_ExtractConnectivityInfo')ntat {"name":"SAPODataConnector.GetDestination","type":"JavaAction"}ntat record.Get_Business_Owner_Basic_Data (JavaAction : 'Get Destination')nnAdvanced stacktrace:","tat com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85)","Caused by: ","com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s): ntInternalXPathTextGetRequest (depth = 0, amount = 1): //SapAuthentication.AccessToken[SapAuthentication.AccessToken_Account = '[%CurrentUser%]']","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)","Caused by: ","com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s): ntInternalXPathTextGetRequest (depth = 0, amount = 1): //SapAuthentication.AccessToken[SapAuthentication.AccessToken_Account = '[%CurrentUser%]']","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:30)","Caused by: ","com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s): ntInternalXPathTextGetRequest (depth = 0, amount = 1): //SapAuthentication.AccessToken[SapAuthentication.AccessToken_Account = '[%CurrentUser%]']","tat com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.java:63)","Caused by: ","com.mendix.systemwideinterfaces.MendixRuntimeException: [%CurrentUser%] token cannot be used in a system session.","tat com.mendix.basis.conf.Tokens.getCurrentUser(Tokens.java:297)","tat com.mendix.basis.conf.Tokens.resolveSingleToken(Tokens.java:118)","tat com.mendix.basis.conf.Tokens.resolve(Tokens.java:94)","tat com.mendix.basis.conf.Tokens.resolveTokens(Tokens.java:80)","tat com.mendix.basis.impl.MxRuntimeImplBase.lambda$initializeConnectionBus$3(MxRuntimeImplBase.java:499)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.resolveToken(WhereClauseMapper.java:1364)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.parseTokens(WhereClauseMapper.java:1303)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTermSideIdentifierValue(WhereClauseMapper.java:977)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTermSide(WhereClauseMapper.java:401)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTerm(WhereClauseMapper.java:168)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.map(WhereClauseMapper.java:141)","tat com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.mapWhereClauseWhereTerms(QueryMapper.java:745)","tat com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getMappedQueries(QueryMapper.java:248)","tat com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getQueryInstances(QueryMapper.java:148)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleSubQuery(WhereClauseMapper.java:1199)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleSelectColumn(WhereClauseMapper.java:1065)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTermSide(WhereClauseMapper.java:567)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTerm(WhereClauseMapper.java:168)","tat com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.map(WhereClauseMapper.java:141)","tat com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.mapWhereClauseWhereTerms(QueryMapper.java:745)","tat com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getMappedQueries(QueryMapper.java:248)","tat com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getQueryInstances(QueryMapper.java:148)","tat com.mendix.connectionbus.retrieve.OqlRequestHandler.doOldQueryHandling(OqlRequestHandler.scala:203)","tat com.mendix.connectionbus.retrieve.OqlRequestHandler.$anonfun$handleRequest$5(OqlRequestHandler.scala:104)","tat scala.util.Try$.apply(Try.scala:210)","tat com.mendix.connectionbus.retrieve.OqlRequestHandler.handleRequest(OqlRequestHandler.scala:104)","tat com.mendix.connectionbus.retrieve.DataStoreCaller.processOqlGetRequest(DataStoreCaller.scala:41)","tat com.mendix.connectionbus.retrieve.DataStoreCaller.$anonfun$getResult$1(DataStoreCaller.scala:35)","tat scala.collection.StrictOptimizedIterableOps.flatMap(StrictOptimizedIterableOps.scala:117)","tat scala.collection.StrictOptimizedIterableOps.flatMap$(StrictOptimizedIterableOps.scala:104)","tat scala.collection.immutable.ArraySeq.flatMap(ArraySeq.scala:35)","tat com.mendix.connectionbus.retrieve.DataStoreCaller.getResult(DataStoreCaller.scala:35)","tat com.mendix.connectionbus.retrieve.DataStoreCaller.getResult(DataStoreCaller.scala:33)","tat com.mendix.connectionbus.retrieve.GetRequestHandler.doRequest(GetRequestHandler.java:65)","tat com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.java:49)","tat com.mendix.connectionbus.ConnectionBusImpl.doRequest(ConnectionBusImpl.java:514)","tat com.mendix.basis.action.user.RetrieveXPathRawAction.retrieveXPathRaw(RetrieveXPathRawAction.java:132)","tat com.mendix.basis.action.user.RetrieveXPathRawAction.executeAction(RetrieveXPathRawAction.java:73)","tat com.mendix.basis.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.java:60)","tat com.mendix.basis.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.java:16)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.component.InternalCoreBase.retrieveXPathQuery(InternalCoreBase.java:883)","tat com.mendix.modules.microflowengine.actions.mxobject.RetrieveByXPathAction.execute(retrieveActions.scala:88)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40)","tat com.mendix.core.Core.execute(Core.java:277)","tat com.mendix.core.Core.execute(Core.java:251)","tat sapodataconnector.connectivity.SAPProxyInformationProvider.getUserXSUAAToken(SAPProxyInformationProvider.java:178)","tat sapodataconnector.connectivity.SAPProxyInformationProvider.getProxyInformation(SAPProxyInformationProvider.java:64)","tat sapodataconnector.connectivity.ProxyInformationFactory.getProxyInformation(ProxyInformationFactory.java:17)","tat sapodataconnector.actions.ConsumeConnectivyService.executeAction(ConsumeConnectivyService.java:32)","tat sapodataconnector.actions.ConsumeConnectivyService.executeAction(ConsumeConnectivyService.java:20)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:30)","tat com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:376)","tat com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:18)","tat com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:34)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40)","tat sapodataconnector.proxies.microflows.Microflows.getDestinationInternal(Microflows.java:22)","tat sapodataconnector.actions.GetDestination.executeAction(GetDestination.java:60)","tat sapodataconnector.actions.GetDestination.executeAction(GetDestination.java:22)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:30)","tat com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18)","tat com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)","tat com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)","tat com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22)","tat com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:60)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:47)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40)","tat com.mendix.core.Core.execute(Core.java:277)","tat queue.repositories.JobRepository.executeJob(JobRepository.java:20)","tat queue.usecases.QueueHandler.run(QueueHandler.java:94)","tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)","tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)","tat java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)","tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)","tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)","tat java.base/java.lang.Thread.run(Unknown Source)"],"level":"CRITICAL","written_ts":2226429186798482,"logger":"ODataConnector","written_at":"2021-10-09T11:12:57.841Z"} 2021-10-09T11:12:57.844+0000 [APP/PROC/WEB/0] OUT {"msg":"GetDestination action successfully completed","level":"INFO","written_ts":2226429189680505,"logger":"Destination Service","written_at":"2021-10-09T11:12:57.842Z"} 2021-10-09T11:12:57.885+0000 [APP/PROC/WEB/0] ERR {"msg":"Job 983: Error during execution of microflow record.Get_Business_Owner_Basic_Data.","stacktrace":["com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: Error calling REST servicentat record.GetList_Submicroflow_GetBusinessOwner_GetOrgData_GetUserData_DestinationRequestByUserId (CallRest : 'Call REST (GET)')ntat record.Get_Business_Owner_Basic_Data (SubMicroflow : 'GetList_Submicroflow_GetBusinessOwner_GetOrgData_GetUserData_DestinationRequestByUserId')nnAdvanced stacktrace:","tat com.mendix.core.Core.execute(Core.java:279)","Caused by: ","com.mendix.modules.microflowengine.MicroflowException: Error calling REST servicentat record.GetList_Submicroflow_GetBusinessOwner_GetOrgData_GetUserData_DestinationRequestByUserId (CallRest : 'Call REST (GET)')ntat record.Get_Business_Owner_Basic_Data (SubMicroflow : 'GetList_Submicroflow_GetBusinessOwner_GetOrgData_GetUserData_DestinationRequestByUserId')nnAdvanced stacktrace:","tat com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:65)","Caused by: ","com.mendix.modules.microflowengine.MicroflowException: 403: Forbiddenntat record.GetList_Submicroflow_GetBusinessOwner_GetOrgData_GetUserData_DestinationRequestByUserId (CallRest : 'Call REST (GET)')ntat record.Get_Business_Owner_Basic_Data (SubMicroflow : 'GetList_Submicroflow_GetBusinessOwner_GetOrgData_GetUserData_DestinationRequestByUserId')nnAdvanced stacktrace:","tat com.mendix.integration.actions.microflow.RestCallAction.checkStatusCode(RestCallAction.scala:103)","tat com.mendix.integration.actions.microflow.RestCallAction.handleResponse(RestCallAction.scala:85)","tat com.mendix.integration.actions.microflow.RestCallAction.$anonfun$execute$2(RestCallAction.scala:61)","tat com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10)","tat com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:60)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:376)","tat com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:18)","tat com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:34)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)","tat scala.Option.flatMap(Option.scala:283)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)","tat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)","tat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18)","tat com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)","tat com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)","tat com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22)","tat com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:60)","tat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:47)","tat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)","tat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)","tat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)","tat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)","tat com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40)","tat com.mendix.core.Core.execute(Core.java:277)","tat queue.repositories.JobRepository.executeJob(JobRepository.java:20)","tat queue.usecases.QueueHandler.run(QueueHandler.java:94)","tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)","tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)","tat java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)","tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)","tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)","tat java.base/java.lang.Thread.run(Unknown Source)"],"level":"ERROR","written_ts":2226429229575775,"logger":"JobQueue","written_at":"2021-10-09T11:12:57.884Z"}   Regards, Natasha
asked
1 answers
2

Scheduled events run in the system so don’t have a current user. This means that [%CurrentUser%] will be empty and the call to get the SAP access token will fail.

Hope this helps.

answered