question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MongoDb Persistence provider issue

See original GitHub issue

Hi. I’m using MongoDb Persistence provider and run to an issue System.FormatException HResult=0x80131537 Message=An error occurred while deserializing the ExecutionPointers property of class WorkflowCore.Models.WorkflowInstance: An error occurred while deserializing the PersistenceData property of class WorkflowCore.Models.ExecutionPointer: Unknown discriminator value 'ControlPersistenceData'. Source=MongoDB.Driver StackTrace: at MongoDB.Driver.Linq.MongoQueryProviderImpl1.Execute(Expression expression) at MongoDB.Driver.Linq.MongoQueryableImpl2.GetEnumerator() at System.Collections.Generic.List1.AddEnumerable(IEnumerable1 enumerable) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at eve.workflow.Services.MongoPersistenceProvider.<GetWorkflowInstances>d__17.MoveNext() in D:\Projects\eve-dam\src\workflow\eve.workflow\Services\MongoPersistenceProvider.cs:line 137

Inner Exception 1: FormatException: An error occurred while deserializing the PersistenceData property of class WorkflowCore.Models.ExecutionPointer: Unknown discriminator value ‘ControlPersistenceData’.

Inner Exception 2: BsonSerializationException: Unknown discriminator value ‘ControlPersistenceData’.`

{MongoDB.Bson.BsonSerializationException: Unknown discriminator value 'ControlPersistenceData'. at MongoDB.Bson.Serialization.BsonSerializer.LookupActualType(Type nominalType, BsonValue discriminator) at MongoDB.Bson.Serialization.Conventions.ObjectDiscriminatorConvention.GetActualType(IBsonReader bsonReader, Type nominalType) at MongoDB.Bson.Serialization.Serializers.ObjectSerializer.DeserializeDiscriminatedValue(BsonDeserializationContext context, BsonDeserializationArgs args) at MongoDB.Bson.Serialization.Serializers.ObjectSerializer.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args) at MongoDB.Bson.Serialization.Serializers.SerializerBase1.MongoDB.Bson.Serialization.IBsonSerializer.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args) at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize(IBsonSerializer serializer, BsonDeserializationContext context) at MongoDB.Bson.Serialization.BsonClassMapSerializer1.DeserializeMemberValue(BsonDeserializationContext context, BsonMemberMap memberMap)}

On the moment when I try to get a workflow instance. Can you please check it? Thanks, Kolisto

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
danielgerlagcommented, Jun 6, 2018

I have deployed a new version of the mongo provider, could you upgrade and let me know if that fixes it?

0reactions
wladiohcommented, Jun 6, 2018

@danielgerlag the new version fixed this bug.

Thanks… You are making a big job. =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

MongoDb Persistence Provider Failing on 2.5.0 · Issue #2735
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity...
Read more >
Persistence unit for class issue - mongodb
I am using Kundera with mongodb on a windows 7 box. I am trying to use int data type. But I am getting...
Read more >
Connection with Eclipselink (JPA) to Atlas
I manage to connect to a local mongodb using this persistance.xml: ... List Connection Format can be detailed on the following topic reply....
Read more >
Persist and Retrieve Doc to mongoDB
Hi - I am trying to understand how does persistence and retrieval of a doc works - I am using MongoDB for long...
Read more >
hibernate-ogm-mongodb 5.4.0 connection issue
I am getting the below error when I try to connect to mongodb using ... HibernateOgmPersistence</provider> <properties> <property ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found