elsa-workflows / elsa-workflows/elsa-core
MongoDB Instances View Internal Server Error
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
### Discussed in https://github.com/elsa-workflows/elsa-core/discussions/5707
Originally posted by **gustavoaraujocardozo** July 4, 2024
I have setting the project to run with mongo db, like this...
elsa.UseMongoDb($"{mongoDbConnectionString}/{mongoDbName}");
elsa.UseWorkflowManagement(management =>
{
management.UseMongoDb();
});
elsa.UseWorkflowRuntime(runtime =>
{
runtime.UseMongoDb();
});
after execute my workflow while checking the instances, i got this error
System.FormatException: An error occurred while deserializing the Outputs property of class Elsa.Workflows.Runtime.Entities.ActivityExecutionRecord: An error occurred while deserializing the MemoryBlockReference property of class Elsa.Workflows.Models.Argument: Type is not supported.
---> System.FormatException: An error occurred while deserializing the MemoryBlockReference property of class Elsa.Workflows.Models.Argument: Type is not supported.
---> System.ArgumentException: Type is not supported.
at System.Runtime.CompilerServices.RuntimeHelpers.GetUninitializedObject(QCallTypeHandle type, ObjectHandleOnStack retObject)
at System.Runtime.CompilerServices.RuntimeHelpers.GetUninitializedObject(Type type)
at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.DeserializeClass(BsonDeserializationContext context)
at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
at MongoDB.Bson.Serialization.Serializers.SerializerBase`1.MongoDB.Bson.Serialization.IBsonSerializer.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.DeserializeMemberValue(BsonDeserializationContext context, BsonMemberMap memberMap)

I got the error at this point when call this endpoint (https://localhost:7268/elsa/api/activity-executions/report)

the same is not true while using sql lite, just with mongo db. The problem start when i click on executions tab.

Contributor guide
Assessment
This issue has not been assessed yet.