Architect Upgrade error - Could not find ancestor of UpgradeScriptContainer

There is an error after updating Architect from 2021.2.0.2091 to 2021.2.0.2131 (packages Root, Security updated as well) after selecting configuration. See attached error.

========================================
Repository Login Failed
Repository login failed. 
One or more errors occurred.
========================================
One or more errors occurred.
------------------------------------------
An error has occured when processing file: C:\OrigamModel\TEST2\cust_TTD\Chart\TTD\Delivery_Daily.origam
------------------------------------------
Could not find ancestor of UpgradeScriptContainer which upgrades type of "Origam.Schema.GuiModel.AbstractCartesianSeries"
------------------------------------------
========================================
 Stack trace
========================================
   at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgrader.RunUpgradeScripts(XElement classNode, DocumentContainer documentContainer, String className, Version persistedClassVersion, Version currentClassVersion)
   at Origam.DA.Service.MetaModelUpgrade.MetaModelAnalyzer.TryUpgrade(XElement classNode, DocumentContainer documentContainer)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Origam.DA.Service.MetaModelUpgrade.MetaModelAnalyzer.TryUpgrade(XFileData xFileData)
   at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgradeService.Upgrade(XmlFileData fileData, Int32 totalFileCount)   at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgradeService.Upgrade(XmlFileData fileData, Int32 totalFileCount)
   at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, TKey& currentKey)
   at System.Linq.Parallel.WhereQueryOperator`1.WhereQueryOperatorEnumerator`1.MoveNext(TInputOutput& currentElement, TKey& currentKey)
   at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Threading.Tasks.Task.Execute()   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.WhereQueryOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.WhereQueryOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.QueryOpeningEnumerator`1.OpenQuery()
   at System.Linq.Parallel.QueryOpeningEnumerator`1.MoveNext()
   at System.Linq.ParallelEnumerable.ToList[TSource](ParallelQuery`1 source)
   at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgradeService.Upgrade(List`1 xmlFileData, MetaModelUpgradeMode mode)
   at Origam.DA.Service.OrigamXmlLoader.LoadInto(ItemTracker itemTracker, MetaModelUpgradeMode mode)
   at Origam.DA.Service.FilePersistenceIndex.<>c__DisplayClass32_0.<InitItemTracker>b__0()
   at Origam.Extensions.ReaderWriterLockSlimExtensions.RunWriter(ReaderWriterLockSlim rwLock, Action action)
   at Origam.Workbench.Services.FilePersistenceService..ctor(IMetaModelUpgradeService metaModelUpgradeService, IList`1 defaultFolders, String pathToRuntimeModelConfig, String basePath, Boolean watchFileChanges, Boolean useBinFile, Boolean checkRules, MetaModelUpgradeMode mode)
   at Origam.OrigamEngine.FilePersistenceBuilder.CreateNewPersistenceService(Boolean watchFileChanges, Boolean checkRules, Boolean useBinFile)
   at Origam.OrigamEngine.FilePersistenceBuilder.GetPersistenceService()
   at OrigamArchitect.frmMain.LoadSchemaList()
   at OrigamArchitect.frmMain.Connect(String configurationName)
1 Like

IIS web is not working as well. The error from log is:

2021-07-01 17:11:48,817 [1] FATAL Microsoft.AspNetCore.Hosting.WebHost - Application startup exception
System.Exception: Error when loading objects from file: "C:\OrigamModel\Test2\Root\DataStructure\__system\Lookups\LookupOrigamParameters.origam"
 ---> System.Exception: The current meta version of type: "Origam.Schema.EntityModel.DataStructureColumn" is 6.0.0, but the xml file contains version 6.0.1
   at Origam.DA.Service.InstanceCreator.GetPropertyNamespace(PropertyToNamespaceMapping namespaceMapping, MemberAttributeInfo mi) in D:\a\1\s\origam-source\Origam.DA.Service\InstanceCreator.cs:line 258
   at Origam.DA.Service.InstanceCreator.SetXmlAttributes(IFilePersistent instance, IPersistenceProvider provider, PropertyToNamespaceMapping namespaceMapping) in D:\a\1\s\origam-source\Origam.DA.Service\InstanceCreator.cs:line 230
   at Origam.DA.Service.AbstractInstanceCreator.RetrieveInstance(Guid id, IPersistenceProvider provider, Guid parentId) in D:\a\1\s\origam-source\Origam.DA.Service\InstanceCreator.cs:line 52
   at Origam.DA.Service.OrigamXmlManager.LoadAllObjectsFromDisk(IPersistenceProvider provider, Boolean useCache)+MoveNext() in D:\a\1\s\origam-source\Origam.DA.Service\OrigamFile\OrigamXmlManager.cs:line 179
   at Origam.DA.Service.LocalizedObjectCache.AddRange(IEnumerable`1 newInstances) in D:\a\1\s\origam-source\Origam.DA.Service\LocalizedObjectCache.cs:line 94
   at Origam.DA.Service.OrigamXmlManager.GetCachedObject(Guid id, IPersistenceProvider provider, Boolean useCache) in D:\a\1\s\origam-source\Origam.DA.Service\OrigamFile\OrigamXmlManager.cs:line 107
   --- End of inner exception stack trace ---
   at Origam.DA.Service.OrigamXmlManager.GetCachedObject(Guid id, IPersistenceProvider provider, Boolean useCache) in D:\a\1\s\origam-source\Origam.DA.Service\OrigamFile\OrigamXmlManager.cs:line 127
   at Origam.DA.Service.OrigamXmlManager.LoadObject(Guid id, IPersistenceProvider provider, Boolean useCache) in D:\a\1\s\origam-source\Origam.DA.Service\OrigamFile\OrigamXmlManager.cs:line 65
   at Origam.DA.Service.OrigamFile.LoadObject(Guid id, IPersistenceProvider provider, Boolean useCache) in D:\a\1\s\origam-source\Origam.DA.Service\OrigamFile\OrigamFile.cs:line 122
   at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(PersistedObjectInfo persistedObjInfo, Boolean useCache) in D:\a\1\s\origam-source\Origam.DA.Service\FilePersistenceProvider.cs:line 145
   at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(Key primaryKey, Boolean useCache, Boolean throwNotFoundException) in D:\a\1\s\origam-source\Origam.DA.Service\FilePersistenceProvider.cs:line 198
   at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(Type type, Key primaryKey, Boolean useCache, Boolean throwNotFoundException) in D:\a\1\s\origam-source\Origam.DA.Service\FilePersistenceProvider.cs:line 184
   at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(Type type, Key primaryKey, Boolean useCache) in D:\a\1\s\origam-source\Origam.DA.Service\FilePersistenceProvider.cs:line 176
   at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(Type type, Key primaryKey) in D:\a\1\s\origam-source\Origam.DA.Service\FilePersistenceProvider.cs:line 172
   at Origam.Schema.LookupModel.AbstractDataLookup.get_ValueMethod() in D:\a\1\s\origam-source\Origam.Schema.LookupModel\SchemaItems\AbstractDataLookup.cs:line 471
   at Origam.Workbench.Services.DataLookupService.GetDisplayText(Guid lookupId, Object lookupValue, Boolean useCache, Boolean returnMessageIfNull, String transactionId) in D:\a\1\s\origam-source\Origam.Workbench.Services\DataLookupService.cs:line 210
   at Origam.Workbench.Services.ParameterService.GetCustomParameterValue(Guid id) in D:\a\1\s\origam-source\Origam.Workbench.Services\ParameterService.cs:line 296
   at Origam.Workbench.Services.ParameterService.GetCustomParameterValue(String parameterName) in D:\a\1\s\origam-source\Origam.Workbench.Services\ParameterService.cs:line 254
   at Origam.OrigamEngine.OrigamEngine.GetLastRestartRequestDate() in D:\a\1\s\origam-source\Origam.OrigamEngine\OrigamEngine.cs:line 216
   at Origam.OrigamEngine.OrigamEngine.ConnectRuntime(String configName, Boolean runRestartTimer, Boolean loadDeploymentScripts, IRuntimeServiceFactory customServiceFactory) in D:\a\1\s\origam-source\Origam.OrigamEngine\OrigamEngine.cs:line 160
   at Origam.ServerCore.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) in D:\a\1\s\origam-source\Origam.ServerCore\Startup.cs:line 263
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
   at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Server.IIS.Core.IISServerSetupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()

Can you post the whole namespace element (<x:file xmlns:x... >) from the file C:\OrigamModel\TEST2\cust_TTD\Chart\TTD\Delivery_Daily.origam? Thanks

namespace element from file Delivery_Daily.origam:

<x:file xmlns:ac="http://schemas.origam.com/Origam.Schema.GuiModel.AbstractChart/6.0.0" xmlns:as="http://schemas.origam.com/Origam.Schema.GuiModel.AbstractSeries/6.0.0" xmlns:asi="http://schemas.origam.com/Origam.Schema.AbstractSchemaItem/6.0.0" xmlns:cc="http://schemas.origam.com/Origam.Schema.GuiModel.CartesianChart/6.0.0" xmlns:ccha="http://schemas.origam.com/Origam.Schema.GuiModel.CartesianChartHorizontalAxis/6.0.0" xmlns:ccva="http://schemas.origam.com/Origam.Schema.GuiModel.CartesianChartVerticalAxis/6.0.0" xmlns:cfm="http://schemas.origam.com/Origam.Schema.GuiModel.ChartFormMapping/6.0.0" xmlns:cs="http://schemas.origam.com/Origam.Schema.GuiModel.ColumnSeries/6.0.0" xmlns:x="http://schemas.origam.com/model-persistence/1.0.0">

Please, do you have any update on this issue? I tried new Architect version 2021.2.0.2144 and the error is the same.
Thank you.

Sorry about the late response. The pull request above should fix it.

Thank you! This fix helped.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.