I just tested a new install of Documents module v 5.0.0 in a DNN 6.2.3 install and was not able to duplicate this issue. Typically the error that is logged results from a mis-match of versions of the module's assembly (DotNetNuke.Modules.Documents.dll) and the module's MS SQL Server database stored proceedures. In this case the mis-match is in the UpdateDocument stored procedure.
Please check the following:
1. Version of bin\DotNetNuke.Modules.Documents.dll assembly. It should be version 4.1.2.0.
2. Definition of the UpdateDocument stored procedure in the site's database using a tool such as MS SQL Server Management Studio Express. The stored procedure should have 9 parameters as follows:
CREATE PROCEDURE {databaseOwner}{objectQualifier}UpdateDocument
@ModuleId INT,
@ItemId INT,
@Title nvarchar(150),
@URL nvarchar(250),
@UserId INT,
@Category nvarchar(50),
@OwnedByUserID INT,
@SortOrderIndex INT,
@Description nvarchar(255)
If it has only 5 parameters, the appropriate database SqlDataProvider script for v 5.00.00 did not successfully run during installation. We can then try to re-run this one stored procedure creation script after manually deleting the existing UpdateDocument stored procedure.
Another possibility if this installation was an upgrade from an earlier version is that the bin\DotNetNuke.Modules.Documents.SqlDataProvider.dll assembly file used in the 3.x versions of the module did not get automatically deleted during the upgrade. If so, delete it and re-try to update an existing document item.