Marketo error - Access token not specified

  • Updated

If you are on EPiServer.ConnectForMarketingAutomation 4.4.0 or earlier, in certain cases the following error can appear on every page on the site.

2018-05-09T16:07:28,Error,"EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.MarketingAutomationIntegration.InitializationModule, EPiServer.MarketingAutomationIntegration, Version=, Culture=neutral, PublicKeyToken=null'
System.Exception: Code EmptyAccessToken, Message: Access token not specified
   at EPiServer.MarketingAutomationIntegration.Marketo.Services.REST.RESTService.SendRequest[TRequest,TResult](TRequest request, String& nextPageToken)
   at EPiServer.MarketingAutomationIntegration.Marketo.Services.ListService.GetLists()

While the root cause is not a result of the Episerver product(the issue happens due to an invalid token), the below package can at least prevent the site from being unavailable. 

To prevent this error from bringing the site down update to EPiServer.ConnectForMarketingAutomation 4.4.1, which requires CMS 11.

In the short term you can delete the Marketo row from the tblBigTable. If you delete the row you would need to reenter the Marketo credentials after fixing the cause of the access token error.

FROM [dbo].[tblBigTable]
where StoreName like '%Marketo%'