MarketingConnectorManager : Failed to get schema status

Found in

EPiServer.ConnectForMarketingAutomation 5.3.2

Fixed in

EPiServer.ConnectForMarketingAutomation 5.3.3

Created

Mar 14, 2019

Updated

Mar 26, 2019

State

Closed, Fixed and tested


Description

Environment Information

Zendesk Ticket Number 286122

Steps to Reproduce

Include detailed concise steps to reproduce the issue in a numerical format

  1. Install Alloy site
  2. Install Marketing package
  3. Set Database Read only to true in web.config
  4. Reinitialize site and get the exception in description.
Customer Impact Statement

Failover in DXC with this package does not work as the site does not initialize. This is something that is sold as an option.

Issue Description

2019-03-11T20:20:24 PID[8548] Warning Episerver.Marketing.Connector.Framework.MarketingConnectorManager : Failed to get schema status
System.NotSupportedException: Database writes are blocked since the application is set to ReadOnly mode. ReadOnly mode is set either by the 'databaseMode' attribute on the 'episerver.dataStore' section or by the 'episerver:DatabaseMode' setting under the 'appSettings' section.
at EPiServer.Data.Providers.Internal.ReadOnlySqlDatabaseExecutor.ExecuteTransaction[TResult](Func`1 action)
at Episerver.Marketing.Connector.Framework.SchemaUpdater.SchemaUpdaterBase.GetStatus(IEnumerable`1 connectionStringOptions)
2019-03-11T20:20:24 PID[8548] Error EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.Data.DataInitialization, EPiServer.Data, Version=11.9.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Data.SchemaUpdates.Internal.DatabaseSchemaManagerImplementation.<>c.<EnsureDatabaseSchema>b__6_4(DatabaseUpdater u)
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at EPiServer.Data.SchemaUpdates.Internal.DatabaseSchemaManagerImplementation.EnsureDatabaseSchema(DataAccessOptions dataAccessOptions)
at EPiServer.Data.DataInitialization.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()
2019-03-11T20:20:33 PID[13176] Warning Episerver.Marketing.Connector.Framework.MarketingConnectorManager : Failed to get schema status
System.NotSupportedException: Database writes are blocked since the application is set to ReadOnly mode. ReadOnly mode is set either by the 'databaseMode' attribute on the 'episerver.dataStore' section or by the 'episerver:DatabaseMode' setting under the 'appSettings' section.
at EPiServer.Data.Providers.Internal.ReadOnlySqlDatabaseExecutor.ExecuteTransaction[TResult](Func`1 action)
at Episerver.Marketing.Connector.Framework.SchemaUpdater.SchemaUpdaterBase.GetStatus(IEnumerable`1 connectionStringOptions)
2019-03-11T20:20:33 PID[13176] Error EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.Data.DataInitialization, EPiServer.Data, Version=11.9.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Data.SchemaUpdates.Internal.DatabaseSchemaManagerImplementation.<>c.<EnsureDatabaseSchema>b__6_4(DatabaseUpdater u)
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at EPiServer.Data.SchemaUpdates.Internal.DatabaseSchemaManagerImplementation.EnsureDatabaseSchema(DataAccessOptions dataAccessOptions)
at EPiServer.Data.DataInitialization.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()

Attachment List