Questions tagged [ravendb5]
24 questions
4
votes
0 answers
How do I keep Particular ServiceControl Audit db (Raven5) from getting larger and larger in size?
We recently upgraded Particular.ServiceControl.Audit to v4.26 and recreated our Audit instance, since from v4.26 and up new audit instances will bump up RavenDB from 3.5 to 5.4.
We did this hoping to remedy a problem in 4.25.x where compacting the…

Frederik Struck-Schøning
- 12,981
- 8
- 59
- 68
4
votes
1 answer
RavenDB importing data to an existing database with C#
I need to chain some operations in order to migrate unencrypted data to an encrypted database:
backup a database (BackupOperation)
delete the database (DeleteDatabasesOperation)
create an encrypted database with the same name…

UmbrellaCorpAgent
- 548
- 1
- 5
- 17
4
votes
1 answer
RavenDB: How to index dictionary keys on a multi-map index?
I've got the below RavenDB MultiMap index that works and returns results. Now when I want to use the query and try to filter data I get the following message:
The field 'Stock_Key' is not indexed, cannot query/sort on fields that are not indexed.
I…

Tom Aalbers
- 4,574
- 5
- 29
- 51
4
votes
0 answers
Using RQL filter documents by condition on nested array in RavenDB 4.0+
In RavenDB 4.0+ for a given Sample Northwind database (which is also available at http://live-test.ravendb.net/), what RQL queries one may use to:
Get Orders in which at least one of the Lines has Discount == 0?
Get Orders in which all the Lines…

Deilan
- 4,740
- 3
- 39
- 52
4
votes
1 answer
RavenDB migration from 3.5 to 5.0.3 throws duplicate key error
I am moving a RavenDB instance from 3.5 (build #35295) to 5.0.3 (the latest at the time of writing). I start the migration through the Settings > Import Data > From RavenDB. I only include documents and indexes. The old database used revisions for a…

Ken Bonny
- 729
- 1
- 9
- 29
3
votes
1 answer
Query RavenDB 5 with complex logic
I have a collection of "business-process" documents and a separate collection of "business-process-events", each with a property business-process-id as a reference to the business-process of the event. Both documents are immutable to avoid…

Trygve
- 2,445
- 1
- 19
- 23
3
votes
2 answers
How to set unique-constraint index in RavenDB 5.4?
Their documentation doesn't clarify this and ChatGPT always give me incorrect code (probably from legacy versions of RavenDB)
I have been using the code below to set the unique constraint, but the unique constraint is not being set even though this…

Shyam
- 633
- 7
- 13
3
votes
1 answer
Counting a field with a specific value in a map/reduce index
I am new to using map/reduce indexes so my question might be obvious, but I want to count the number of documents where a specific field has a specific value using a map/reduce index.
Let's say that I have documents with a field called activated…

dbblackdiamond
- 41
- 5
3
votes
1 answer
Run RavenDB Embedded in Memory
I haven't found in the documentation on how to do this with the Embedded server code. It recommended to use a json settings file however the documentation is clear where to put the json file or if it will work with the embedded version.

bbqchickenrobot
- 3,592
- 3
- 45
- 67
3
votes
0 answers
Insertions throws "Document String has change vector B:44-FJLAj, but Put was called with expecting new document" from RavenDB using .NET6
Below error is thrown while inserting a new record in RavendBD using .NET6.
Is it because the same id already exists in the RavenDB or there is any other things that need to be taken care explicitly?
{
"message": "Document String has change vector…

Bijay Yadav
- 928
- 1
- 9
- 22
3
votes
2 answers
How to verify whether the update is success or not in the RavenDB in .NET6?
Below is the update code to update the existing entity in the RavenDB. The below code sometimes works and sometimes does not work.
using var session = GetDocumentStore().OpenAsyncSession();
var stored = await…

Bijay Yadav
- 928
- 1
- 9
- 22
3
votes
1 answer
Document disappears in destination after ETL in RavenDB
I have to migrate and transform some data between two RavenDB instances. Basically there are two versions of the same app and the client wants to move to the new version, but to keep the data from the old one. I defined the transformations scripts…

Ivan Angelinin
- 31
- 2
3
votes
1 answer
RavenDb changes to Property (nullable) on Entity that is a class doesn't save
I have a class like this:
public class Content {
public string Id {get; set;} = "content/"
public ContentJob? Job {get; set;}
}
public class ContentJob {
public string JobId {get; set;} = string.Empty;
}
I can create the content and if…

James Hancock
- 3,348
- 5
- 34
- 59
3
votes
2 answers
C# Connect to Ravendb keeps failing with error: This server requires client certificate for authentication, but none was provided by the client
No mather what i try, in an new .net 5 API project i cannot connect to RavenDB. It is given me an error:
This server requires client certificate for authentication, but none
was provided by the client.
The way I connect to the database:
byte[]…

C. Molendijk
- 2,614
- 3
- 26
- 35
3
votes
1 answer
How to use RavenDB.RavenTestDriver 5+ without .NET 5 in my unit tests project?
When running RavenDB Test driver 5.0+ i'm getting an exception that ASP.NET Core 5.0.0 is required.
Sstem.InvalidOperationException: Unable to start the RavenDB Server
It was not possible to find any compatible framework version
The framework…

Mariusz Jamro
- 30,615
- 24
- 120
- 162