Error while deserializing a document of WorflowDefinition - MongoDB
I created an example application following the documentation, when switching from sqlite to mongodb I am getting the following error
An error occurred while deserializing the CreatedAt property of class Elsa.Models.WorkflowDefinition: Value class NodaTime.Instant cannot be deserialized.
When viewing documents, createdat and other timestamp related properties are empty
All packages in version 2.8.2.
me too :C @sfmskywalker
Any chance any of you can share your sample project with me so I can take a look?
Any chance any of you can share your sample project with me so I can take a look?
I made a small project available on my github
https://github.com/ManoDoddy/elsa-mongo-test
This is working for me.
Install-Package MongoDb.Bson.NodaTime -Version 3.0.0
Then add this line on startup:
NodaTimeSerializers.Register();
But works only for newly created workflows, export/import still broken for some reason.
This is working for me.
Install-Package MongoDb.Bson.NodaTime -Version 3.0.0Then add this line on startup:NodaTimeSerializers.Register();But works only for newly created workflows, export/import still broken for some reason.
Thank you @marufbd . It worked like a charm.
++ thank you @marufbd Bless you, you lifesaver