Workflow fails when trace enabled

I enabled trace on Workflow.

When I run it in Architect or Client, I get always an error.

2025-08-25 22:06:49,983 [20] ERROR Origam.Workflow.WorkflowEngine - Could not find instance with id: 4e6594b7-0462-4c1f-bc36-8fa37016995aWorkflow stack traceSystem.Exception: Could not find instance with id: 4e6594b7-0462-4c1f-bc36-8fa37016995aat Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(Key primaryKey, Boolean useCache, Boolean throwNotFoundException)at Origam.Workflow.DataServiceAgent.LoadData(DataStructureQuery query, DataSet data)at Origam.Workflow.DataServiceAgent.LoadData(DataStructureQuery query)at Origam.Workflow.DataServiceAgent.Run()at Origam.Workbench.Services.TracingService.LoadWorkflowInstanceData(Guid workflowInstanceId)at Origam.Workbench.Services.TracingService.TraceWorkflow(Guid workflowInstanceId, Guid workflowId, String workflowName)at Origam.Workflow.WorkflowEngine.RunWorkflow()

When tracing is turned off, everything is working just fine.

I tested it in ORIGAM version 2025.2.5.3851 and 2025.5.3.3864

It looks like you don’t have updated root package. You’re most likely running version pre 2024.8, since the id is an id of the model element introduced in 2024.8, specifically with “workflow trace fails for nested workflow”.

OK. I downloaded origam_model.zip package from 2025.2.5.3851 on github and copied it into my model.

But then I get another error:

========================================

Error
One or more errors occurred.

One or more errors occurred.

An error has occured when processing file: C:\ORIGAM\models\ORIGAM_INF_HTML_test\Root\Transformation\RequestOrigamOnlineUserSessionClearance.origam

Error when processing file “C:\ORIGAM\models\ORIGAM_INF_HTML_test\Root\Transformation\RequestOrigamOnlineUserSessionClearance.origam”. The persisted object “Transformation” has a newer version of the class “C:\ORIGAM\models\ORIGAM_INF_HTML_test\Root\Transformation\RequestOrigamOnlineUserSessionClearance.origam” (version: 6.0.1) than is the current version of the class: 6.0.0. Are you trying to open a model with an older Architect/Server?

========================================

Stack trace

at Origam.DA.Service.MetaModelUpgrade.MetaModelAnalyzer.TryUpgrade(XElement classNode, DocumentContainer documentContainer) in D:\a\1\s\backend\Origam.DA.Service\MetaModelUpgrade\MetaModelAnalyzer.cs:line 125
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Origam.DA.Service.MetaModelUpgrade.MetaModelAnalyzer.TryUpgrade(XFileData xFileData) in D:\a\1\s\backend\Origam.DA.Service\MetaModelUpgrade\MetaModelAnalyzer.cs:line 56
at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgradeService.Upgrade(XmlFileData fileData, Int32 totalFileCount) in D:\a\1\s\backend\Origam.DA.Service\MetaModelUpgrade\MetaModelUpgradeService.cs:line 124 at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgradeService.Upgrade(XmlFileData fileData, Int32 totalFileCount) in D:\a\1\s\backend\Origam.DA.Service\MetaModelUpgrade\MetaModelUpgradeService.cs:line 129
at System.Linq.Parallel.SelectQueryOperator2.SelectQueryOperatorEnumerator1.MoveNext(TOutput& currentElement, TKey& currentKey)
at System.Linq.Parallel.WhereQueryOperator1.WhereQueryOperatorEnumerator1.MoveNext(TInputOutput& currentElement, TKey& currentKey)
at System.Linq.Parallel.StopAndGoSpoolingTask2.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.DefaultMergeHelper2.System.Linq.Parallel.IMergeHelper.Execute()
at System.Linq.Parallel.MergeExecutor1.Execute[TKey](PartitionedStream2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
at System.Linq.Parallel.PartitionedStreamMerger1.Receive[TKey](PartitionedStream2 partitionedStream)
at System.Linq.Parallel.WhereQueryOperator1.WrapPartitionedStream[TKey](PartitionedStream2 inputStream, IPartitionedStreamRecipient1 recipient, Boolean preferStriping, QuerySettings settings) at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream2 inputStream) at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream2 inputStream) at System.Linq.Parallel.WhereQueryOperator1.WrapPartitionedStream[TKey](PartitionedStream2 inputStream, IPartitionedStreamRecipient1 recipient, Boolean preferStriping, QuerySettings settings)
at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream2 inputStream)
at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient)
at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient)
at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient)
at System.Linq.Parallel.QueryOperator1.GetOpenedEnumerator(Nullable1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
at System.Linq.Parallel.QueryOpeningEnumerator1.OpenQuery() at System.Linq.Parallel.QueryOpeningEnumerator1.MoveNext()
at System.Linq.ParallelEnumerable.ToList[TSource](ParallelQuery1 source) at Origam.DA.Service.MetaModelUpgrade.MetaModelUpgradeService.Upgrade(List1 xmlFileData, MetaModelUpgradeMode mode) in D:\a\1\s\backend\Origam.DA.Service\MetaModelUpgrade\MetaModelUpgradeService.cs:line 91
at Origam.DA.Service.OrigamXmlLoader.LoadInto(ItemTracker itemTracker, MetaModelUpgradeMode mode) in D:\a\1\s\backend\Origam.DA.Service\OrigamFile\XmlLoading\OrigamXmlLoader.cs:line 58
at Origam.DA.Service.FilePersistenceIndex.<>c__DisplayClass31_0.b__0() in D:\a\1\s\backend\Origam.DA.Service\FilePersistenceIndex.cs:line 202
at Origam.Extensions.ReaderWriterLockSlimExtensions.RunWriter(ReaderWriterLockSlim rwLock, Action action) in D:\a\1\s\backend\Origam.Common\Extensions\ReaderWriterLockSlimExtensions.cs:line 34
at Origam.Workbench.Services.FilePersistenceService..ctor(IMetaModelUpgradeService metaModelUpgradeService, IList`1 defaultFolders, String pathToRuntimeModelConfig, String basePath, Boolean watchFileChanges, Boolean useBinFile, Boolean checkRules, MetaModelUpgradeMode mode) in D:\a\1\s\backend\Origam.Workbench.Services\FilePersistenceService.cs:line 103
at Origam.OrigamEngine.FilePersistenceBuilder.CreateNewPersistenceService(Boolean watchFileChanges, Boolean checkRules, Boolean useBinFile) in D:\a\1\s\backend\Origam.OrigamEngine\FilePersistenceBuilder.cs:line 68
at Origam.OrigamEngine.FilePersistenceBuilder.GetPersistenceService() in D:\a\1\s\backend\Origam.OrigamEngine\FilePersistenceBuilder.cs:line 40
at OrigamArchitect.frmMain.InitPersistenceService() in D:\a\1\s\backend\OrigamArchitect\ArchitectWorkbench.cs:line 1669
at OrigamArchitect.frmMain.Connect(String configurationName) in D:\a\1\s\backend\OrigamArchitect\ArchitectWorkbench.cs:line 1313
at OrigamArchitect.frmMain.frmMain_Load(Object sender, EventArgs e) in D:\a\1\s\backend\OrigamArchitect\ArchitectWorkbench.cs:line 1697

Both Architect and Server are 2025.2.5.3851 from the same github distribution. Do I do something wrong?

In the end I found out that there was mixture of two version of Architect libraries. I upgraded all to newer one, upgraded Root, RootModel and Security packages and everything works just fine.

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