UiPath and MongoDB connection

Hey guys,

I am curretly struggling with connecting my MongoDB with UiPath. As already mentionend in this forum.

Uipath and MongoDB connectivity - #2 by TheRaga

It generally works until the part where I want to store a new object in the DB:

var document = new BsonDocument("x", 1);
collection.InsertOne(document);

When I want to insert it I get the following error:
Invoke code: Exception has been thrown by the target of an invocation.
Do you know, why I might get an exception?

Thanks for your help!
Best regards,
Louis

for your information:
I fixed it. The problem was, I used a wrong/old package. Be sure you install: MongoDB.Driver ver: 2.13.1 by MongoDB Inc.

Have a nice day!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.