[OutDoc] Error in GetDocumentation method from extension eSpaceMetaModel
Forge component by OutSystems R&D
Application Type
Traditional Web
Service Studio Version
11.11.2 (Build 42827)
Platform Version
11.10.0 (Build 22422)

I have tried reinstaling OutDoc(Version 3.0.10) multiple times, refresh all consumers as the previous posts about this suggested but i still get the following error in some eSpaces:

Object reference not set to an instance of an object.: System.NullReferenceException: Object reference not set to an instance of an object.    at ServiceStudio.CrashAPI.ExecutionExtensions.ExecuteWithSilentErrorHandling(ActionWrapper actionWrapper, String context, ExceptionType exceptionType, IExecutionContext executionContext)
at ServiceStudio.Model.AbstractObject.AssertValidReferers()
at ServiceStudio.Model.ModelExtensions.DoForSelfAndAllChildren(AbstractObject obj, Action`1 action)
at ServiceStudio.Model.AbstractObject.Delete()
at ServiceStudio.Model.AbstractEntity.DeleteEntityActionIfNeeded[ActionType]()
at ServiceStudio.Model.AbstractEntity.RefreshEntityActions()
at ServiceStudio.Model.AbstractEntity.RefreshState(RefreshReason reason, Func`2 wasSet, Func`2 additionalDataGetter)
at ServiceStudio.Model.ReferenceEntity.RefreshState(RefreshReason reason, Func`2 wasSet, Func`2 additionalDataGetter)
at ServiceStudio.Import.Importer.<>c__DisplayClass41_0.<FinalizeImportPart2>b__4(AbstractObject obj)
at ServiceStudio.Model.SSCollectionsExtensions.Apply[Type](ISSCollection`1 collection, Action`1 action)
at ServiceStudio.Import.Importer.FinalizeImportPart2(IImportTarget target, IImportAdditionalDataGetter importAdditionalDataGetter)
at ServiceStudio.Clone.ObjectCloner.RunPendingFinalizesAfterImportForSignatureGeneration(ESpace eSpace)
at ServiceStudio.Model.ESpace.SignatureManager.UpdateSignatures(IEnumerable`1 infos, Action`2 processSignature)
at ServiceStudio.Model.ESpace.SignatureManager.<>c__DisplayClass35_0.<UpdateSignatures>b__0()
at ServiceStudio.Common.Concurrency.ModelLockExtensions.<>c__DisplayClass2_0.<DoWriteOperation>b__0()
at ServiceStudio.Common.Concurrency.ModelLockExtensions.DoWriteOperation[T](IModelLock modelLock, Func`1 func)
at ServiceStudio.Model.ESpace.SignatureManager.UpdateSignatures(IEnumerable`1 keys)
at ServiceStudio.Model.ESpace.SignatureManager.<RegenerateAllSignatures>b__31_0()
at ServiceStudio.Common.Concurrency.ModelLockExtensions.<>c__DisplayClass2_0.<DoWriteOperation>b__0()
at ServiceStudio.Common.Concurrency.ModelLockExtensions.DoWriteOperation[T](IModelLock modelLock, Func`1 func)
at ServiceStudio.Model.ESpace.SignatureManager.RegenerateAllSignatures()
at ServiceStudio.Model.ESpace.Load(Stream stream, String initialLastSavePath, Boolean isUnregisteredESpace, Boolean readOnlyMode, Boolean recoverMode, ObjectKey newKeyForClone, String productKey, Nullable`1 forceModifiedFlag, IInformationForESpaceUpgrade informationForUpgrader, Predicate`1 isAvailable, Boolean skipUpgradesForForge, Nullable`1 isIsolated, Boolean needsDeterministicKeys)
at ServiceStudio.Model.ESpace.Load(Byte[] bytes, String initialLastSavePath, String productKey, Nullable`1 forceModifiedFlag, IInformationForESpaceUpgrade informationForUpgrader, Predicate`1 isAvailable, Boolean skipUpgradesForForge, Nullable`1 isIsolated)
at ServiceStudio.Model.ESpace.Load(Byte[] bytes, String productKey, IInformationForESpaceUpgrade informationForUpgrader, Predicate`1 isAvailable, Boolean skipUpgradesForForge)
at ServiceStudio.DocSaver.DocSaverWorker.GetDocumentation(Byte[] oml, String& xml, String& errorsXml)

at ssZIC_XML.RssExtensionEspaceMetaModel.MssGetDocumentation(HeContext heContext, Byte[] inParamOml, String& outParamXml)
at ssZIC_XML.Actions.ActionGetXML(HeContext heContext, Byte[] inParamFileContent, String& outParamXmlContent)
at ssZIC_XML.Actions.ActionGerarXMLPoreSpace(HeContext heContext, Int32 inParameSpaceVersionId, Int32 inParameSpaceId, String& outParamxml, String& outParamerror)

Hi Miguel Pereira

The below post can help you to get insights, but I have not found a solution for the error yet.

https://www.outsystems.com/forums/discussion/71028/object-reference-not-set-to-an-instance-of-an-object/

Regards

Ajay A

Hello Miguel,

I hope Ajay's suggestion works out for you. 

If you have tried everything and still encounter the issue, then you might want to consider going back to version 3.0.9 and see if it works for all modules.

Regards,

AJ

I've tried it, also tried the new version and the error persists in every case

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.