Hi All,

I am getting this error while trying to publish any update / Or on creating new app.

Internal Error
An error occurred in task 'Update meta database model':
Object reference not set to an instance of an object.
Details : System.NullReferenceException: Object reference not set to an instance of an object.
   at OutSystems.HubEdition.DeploymentController.Database.DBScriptsExecutor.UpdateDb(String eSpaceName, HEMessageArrayList warnings, ObjectKey eSpaceKey, ObjectKey applicationKey, Int32 eSpaceVersionId, DeployPhase phase, String uniqueId, IDatabaseAccessService databaseAccessService, IIsolatedDbConfigurationService isolatedDbConfigurationService, IApplicationDbConfigurationService applicationDbConfiguration)
   at cs#erqolxha.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
Exception Details:
[1] Internal Error: An error occurred in task 'Update meta database model':
Object reference not set to an instance of an object.
Details : System.NullReferenceException: Object reference not set to an instance of an object.
   at OutSystems.HubEdition.DeploymentController.Database.DBScriptsExecutor.UpdateDb(String eSpaceName, HEMessageArrayList warnings, ObjectKey eSpaceKey, ObjectKey applicationKey, Int32 eSpaceVersionId, DeployPhase phase, String uniqueId, IDatabaseAccessService databaseAccessService, IIsolatedDbConfigurationService isolatedDbConfigurationService, IApplicationDbConfigurationService applicationDbConfiguration)
   at cs#erqolxha.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at cs#erqolxfs.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at OutSystems.HubEdition.ServerCommon.Tasks.SequentialTaskRunner.Run()
   at OutSystems.HubEdition.DeploymentController.Tasks.OneClickPublish.OneClickPublishTask.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at OutSystems.HubEdition.DeploymentController.Compiler.cs#bhihcgjm.cs#rweuvvwj()
   at OutSystems.HubEdition.DeploymentController.Compiler.cs#pwerbjhy(Object fi)
   at OutSystems.HubEdition.ServerCommon.SandboxAwareThreadPool.sc#hjrysmqz.sc#vqskwbxc(Object gd)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[2] System.NullReferenceException: Object reference not set to an instance of an object.
   at OutSystems.HubEdition.DeploymentController.Database.DBScriptsExecutor.UpdateDb(String eSpaceName, HEMessageArrayList warnings, ObjectKey eSpaceKey, ObjectKey applicationKey, Int32 eSpaceVersionId, DeployPhase phase, String uniqueId, IDatabaseAccessService databaseAccessService, IIsolatedDbConfigurationService isolatedDbConfigurationService, IApplicationDbConfigurationService applicationDbConfiguration)
   at cs#erqolxha.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()


Please find the screenshot attached.


Thanks 

Solution

Hi there,

In the thread Diana has shared, you will find two ways people have solved this error.

Either follow these instructions from Froilan Gimang, or these ones from Pedro Borges.

Let us know if it worked for you.

Regards,

Nordin

Thank you very much Diana Milheiro and Nordin Ahdi for the help 

Diana Milheiro, I went through your thread and followed the below steps and it resolved my problem.

Go to Service Center -> Administration -> Environment Configuration. Toggle "Debug Mode". Click "Save". Toggle it back and press "Save" again.