elsa-workflows / elsa-workflows/elsa-core

Mongo DB Deserialization Issue In WorkflowInstance Collection

Open
#3,266 0 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

Hi @sfmskywalker,

We are getting below error while fetching the workflow instance collection:

**An error occurred while deserializing the Fault property of class Elsa.Models.WorkflowInstance: An error occurred while deserializing the Exception property of class Elsa.Models.WorkflowFault: An error occurred while deserializing the Type property of class Elsa.Models.SimpleException: Can't compile a NewExpression with a constructor declared on an abstract class.**

Please find the below sample code example

{
"_id": "73a7f08071324bfc8b31cf0191b098eb",
"_t": [
"Entity",
"WorkflowInstance"
],
"Variables": "{\"Data\":{}}",
"DefinitionId": "bc7f4279b6564307b655a8647a262981",
"DefinitionVersionId": "e76eea816d1244db93f160c10040fded",
"TenantId": null,
"Version": 5,
"WorkflowStatus": 4,
"CorrelationId": "ebd39071099d4a329b89ba725ac490af",
"ContextType": null,
"ContextId": null,
"Name": null,
"CreatedAt": {
"$date": {
"$numberLong": "1661239154074"
}
},
"LastExecutedAt": {
"$date": {
"$numberLong": "1661239155222"
}
},
"FinishedAt": null,
"CancelledAt": null,
"FaultedAt": {
"$date": {
"$numberLong": "1661239155228"
}
},
"Input": null,
"Output": null,
"ActivityData": {
"a9ffc012-dfac-44ff-b886-9a03fc23c7fb": {
"Timeout": {
"_t": "NodaTime.Duration, NodaTime, Version=3.0.9.0, Culture=neutral, PublicKeyToken=4226afe0d9b296d1",
"_v": "0:00:10:00"
},
"_Lifecycle": {
"_t": "ActivityLifecycle",
"Executing": true,
"Executed": true
}
},
"34fa876e-b799-433f-914e-8d92d25ad9c4": {
"ExecutionStartedAt": {
"$date": {
"$numberLong": "1661239154087"
}
},
"FileEncryption": null,
"FileExtension": "csv",
"CustomVar1": null,
"CustomVar2": null,
"CustomVar3": null,
"CustomVar4": null,
"CustomVar5": null,
"NonFileWorkflow": false,
"TIQAuth": null,
"TIQAccountID": null
},
"OutputActivityInfo": null,
"_Lifecycle": {
"_t": "ActivityLifecycle",
"Executing": true,
"Executed": true
}
},
"81cbc043-2d41-455a-8359-63d512d0daa9": {
"WorkflowContext": null,
"OutputActivityInfo": null,
"_Lifecycle": {
"_t": "ActivityLifecycle",
"Executing": true,
"Executed": true
}
},
"6831364c-490a-4f38-9f7d-9827803a0f04": {
"OrgCode": "Guid",
"OutputActivityInfo": null,
"_Lifecycle": {
"_t": "ActivityLifecycle",
"Executing": true,
"Executed": true
}
}
},
"Metadata": {},
"BlockingActivities": [],
"Fault": {
"Exception": {
"Type": {
"_t": "RuntimeType"
},
"Message": "Object reference not set to an instance of an object.",
"StackTrace": " at SBT.FileProcessing.Web.Activities.Unsubscribe.OnExecuteAsync(ActivityExecutionContext context) in /src/SBT.FileProcessing.Web/Activities/Unsubscribe.cs:line 123\n at Elsa.Services.Workflows.WorkflowRunner.TryExecuteActivityAsync(ActivityOperation activityOperation, ActivityExecutionContext activityExecutionContext, IActivity activity, CancellationToken cancellationToken)",
"InnerException": null,
"Data": {}
},
"Message": "Object reference not set to an instance of an object.",
"FaultedActivityId": "f88e4bd0-ecd0-4a0b-be8f-bdd8bacff76c",
"ActivityInput": null,
"Resuming": false
},
"ScheduledActivities": [],
"Scopes": [],
"CurrentActivity": null,
"LastExecutedActivityId": "6831364c-490a-4f38-9f7d-9827803a0f04"
}

Please do needful.

Thanks,
Vaibhav

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.