Mysterious UNO error

Good Morning,

I just go this UNO error

BASIC runtime error.
An exception occurred 
Type: com.sun.star.uno.RuntimeException
Message: [mscx_uno bridge error] UNO type of C++ exception unknown: "std.runtime_error", RTTI-name=".?AVruntime_error@std@@"!.

when attempting to save my base file. using

DataSource.DatabaseDocument.store()

where

DatabaseContext = createUnoService("com.sun.star.sdb.DatabaseContext")
DataSource = DatabaseContext.getByName(context)

What does this error represent and how can i avoid or workaround it?

It represents a caught generic C++ exception (std::runtime_error), where it was expected that the exception would be an UNO exception.

We throw std::runtime_error in a number of places; without a reasonable reproducer (which means a working code, not a couple of randomly selected lines, and some environment information like OS, LO version, file names and paths, etc.), it would be difficult to tell better.

Might be you first need to flush data to the database.

sub test
context = "Bibliography"
DatabaseContext = createUnoService("com.sun.star.sdb.DatabaseContext")
DataSource = DatabaseContext.getByName(context)
DataSource.DatabaseDocument.store()
end sub

biblio.odb in the user profile has a new modification time.

Will try that pretty soon

Unfortunately the mystery was solved by quitting LO, shutting down my workstation, and then restarting.