OneDrive is not compatible with Calibre and using it messes up your library. I'm speaking from personal experience. So the first thing to do is to move your library out of OneDrive.
About the only cloud service that can be used for an active Calibre library without major issues is Dropbox, but even then you must be very careful and always pause syncing while Calibre is open.
|