Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback

Last updated on 23 February 2023

Admin
M-Files Hubshare

Overview

If you save files to M-Files via Hubshare, they may be corrupted in the vault database. For example, this may happen when user has added annotations to the file and saved it in Hubshare or user has made file uploads from Hubshare or user has uploaded simple PDF-file and tried to make it searchable. 

Details

Corruption errors have occurred with Hubshare in versions between 4.0.1.0 to 4.0.4.4 with M-Files 22.12, 23.1 and 23.2. Also, possible erroneous files can be found from time stamps of the file. Time stamps from 4.0.1 of Hubshare (29th October) to 4.0.4.5 (4th February) can help you to identify files too.

This file corruption can be checked by running Verify & Repair (Thorough) in M-Files Admin -> Vault context menu and choosing Maintenance. Verify & Repair execution requires M-Files system administrator rights and may take quite some time especially in large vaults.

This is an example of the error which shows the corruption in V&R tool.

Error 1:

The file size does not match the information in the database.

File ID 14, data file version 1. Object type 0, object ID 15, object versions 1.

In 5D vault Testing_Hubshare.rtf.pdf

m-files://show/5DA3C596-BEE7-4D22-A2C7-693A19F3F936/0-15-1?object=8E4EB23D-BBF6-4C5F-BD3C-A60D0F09F6B0

NOTE: M-Files cannot fix this error automatically.

Sometimes corruption can be predicted also from error messages shown by the system.

For example, in error message box or in Windows Event Logs these kinds of errors can be found: 

ProgressThread.cpp, 1236, Conversion to searchable PDF failed (document file: Recently Accessed by Me\Print and Download Prevention Data Sheet (ID 574).pdf). (0x80040852) ProgressThread.cpp, 1236, Downloading the file "764-1" failed. Unexpected number of bytes were received: "983040". Expected "210687" bytes. (0x80040120) SearchablePDFConverter.cpp, 489, Downloading the file "764-1" failed. Unexpected number of bytes were received: "983040". Expected "210687" bytes. (0x80040120)

OR

CoVaultObjectFileOperations.cpp, 1207, Unable to perform requested operation. (Invalid offset) (0x80030001)

ServerVaultObjectFileOperationsHelper.cpp, 685, Unable to perform requested operation. (Invalid offset) (0x80030001)

LatestRPC.generated.cpp, 15791, Unable to perform requested operation. (Invalid offset) (0x80030001)

RPCDocumentOperationsFileIO.cpp, 2171, Unable to perform requested operation. (Invalid offset) (0x80030001)

Solution

Issue that corrupted files has been fixed in Hubshare version 4.0.4.5. 

If you are a cloud customer this has already been updated and no action is needed from you.

For On-Premises installations, please upgrade to 4.0.4.5 version or newer to prevent the issue from happening again.

To fix already existing files with this issue, read onward.

For those erroneous files there is one workaround available. You need to execute Verify & Repair (Thorough) from M-Files Admin. If there are errors with the "The file size does not match the information in the database "message in the V&R results, go to the vault in M-Files Desktop and find the same file name which is written in the error message (you can also open the m-files:// link the message provides). Right click the document, choose Make Copy… and create a new copy of that document.

When the new copy is ready, find that old document, right click the document and choose Delete. Remember to click the checkbox for Destroy permanently as shown in the picture.

image.png

After deletions you can execute the Verify & Repair (Thorough) again to ensure that those errors are fixed. 

Still need help?