Error: Litium.Application.Workflows.Data.TaskEntity -> Litium.Workflows.Workflow+Task

I know this is a pre-release but I just want to start a thread to see if this is somthing known.
I don’t get this error on a clean database, but on my updated production clone I get this error all over.

exceptionMessage: "Error mapping types.

Mapping types:
WorkflowEntity -> Workflow
Litium.Application.Workflows.Data.WorkflowEntity -> Litium.Workflows.Workflow

Type Map configuration:
WorkflowEntity -> Workflow
Litium.Application.Workflows.Data.WorkflowEntity -> Litium.Workflows.Workflow

Destination Member:
Tasks
"
exceptionType: "AutoMapper.AutoMapperMappingException"
innerException: {$type: "System.Web.Http.HttpError, System.Web.Http", message: "An error has occurred.",…}
$type: "System.Web.Http.HttpError, System.Web.Http"
exceptionMessage: "Error mapping types.

Mapping types:
TaskEntity -> Task
Litium.Application.Workflows.Data.TaskEntity -> Litium.Workflows.Workflow+Task

Type Map configuration:
TaskEntity -> Task
Litium.Application.Workflows.Data.TaskEntity -> Litium.Workflows.Workflow+Task

Destination Member:
Conditions
"
exceptionType: "AutoMapper.AutoMapperMappingException"
innerException: {$type: "System.Web.Http.HttpError, System.Web.Http", message: "An error has occurred.",…}
message: "An error has occurred."
stackTrace: "   at lambda_method(Closure , WorkflowEntity , Workflow , ResolutionContext )"
message: "An error has occurred."
stackTrace: "   at lambda_method(Closure , WorkflowEntity , Workflow , ResolutionContext )
   at lambda_method(Closure , Object , Object , ResolutionContext )
   at Litium.Application.Caching.CacheLoader.<>c__DisplayClass4_1`3.<LoadByPrimaryKey>b__1(TValueEntity x)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Litium.Application.Caching.CacheLoader.<>c__DisplayClass4_0`3.<LoadByPrimaryKey>b__0(LitiumDbContext db)
   at Litium.Application.Data.DbContextExtension.ExecuteInDbContext[T](IServiceProvider serviceProvider, Func`2 loaderFunc)
   at Litium.Application.Caching.CacheLoader.LoadByPrimaryKey[TKey,TValue,TValueEntity](KeyContext`2 keyContext, IEnumerable`1 keys)
   at Litium.Application.Caching.EntityCacheImpl`2.TryLoadItems(IEnumerable`1 keys)
   at Litium.Application.Caching.EntityCacheImpl`2.Get(IEnumerable`1 keys)
--- End of stack trace from previous location where exception was thrown ---
   at lambda_method(Closure , Exception )
   at Litium.Application.Runtime.ExceptionEnlightenment.PrepareForRethrow(Exception exception)
   at Litium.Application.Runtime.ExceptionHelpers.PrepareForRethrow(Exception exception)
   at Litium.Application.Caching.LoadableCacheItem.SetException(Exception exception)
   at Litium.Application.Caching.EntityCacheImpl`2.Get(IEnumerable`1 keys)
   at Litium.Application.Caching.FullCache`2.Get()
   at Litium.Application.Workflows.WorkflowServiceImpl.GetAll()
   at Litium.Web.Administration.WebApi.Products.Controllers.TasksController.Get()
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__17`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__17`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Tracing.Tracers.HttpControllerTracer.<ExecuteAsyncCore>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__17`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()"

Regarding to the stacktrace it pointing to errors when loading the tasks for all the different workflows.

What types of conditions is used for the tasks?

Is that the task that is failing?

It’s hard to say. The error doesn’t give us much :-/
But we do have a number of workflows with conditions like that set up.

Patrik, did that example give you any clue on what the issue might be?

FYI we didn’t see this error when upgrading to version 7, but first when upgrading to the 7.2 pre-release.

It’s hard to see only from one example what the problematic condition can be. Did you upgrade from 7.0.0 to 7.2.0 prerelease or exactly what version was it before the upgrade?

Can you provide with database that I can test on? You can send information to me in PM or as a support ticket where I can find a database in our hosting or if you want SFTP credentials to upload a database backup that have this problem to me.

We upgraded from version 7.0.2 to 7.2.0-patch-1903151914.

I’ll PM you the connection string to our test db in your hosting environment.
Thank you

We have now identified that the issue is conditions for workflow and smart product list that early was pointing to pulbished on filter that in Litium 5 and 6 was connected to the website and in Litium 7 was changed to channel.

This is tracked by bug 45347 and will be included in next release.