Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Table Value Parameter @P1 Must be Declared as READONLY Error

Last updated on 16 July 2021

Admin
M-Files Admin

Overview

M-Files Online
Vault Name {F9B45161-8F40-4FF9-8080-DC671896482E}

Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000)
The table-valued parameter "@P1" must be declared with the READONLY option. (ERROR: 352, SQLSTATE: 42000)

StateChanger.cpp, 533, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
MCallInLoop.h, 652, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
StateChanger.cpp, 600, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
RPCDocumentOperationsHelper.cpp, 14847, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
ExternalRepositoryHelper.cpp, 3828, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
ExternalRepositoryHelper.cpp, 3738, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
CachedDBSession.cpp, 1121, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
MCommand.h, 647, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
MCommand.h, 831, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
MCommand.h, 646, Statement(s) could not be prepared. (ERROR: 8180, SQLSTATE: 42000) (0x80040E14)
MCommand.h, 646, The table-valued parameter "@P1" must be declared with the READONLY option. (ERROR: 352, SQLSTATE: 42000) (0x89790002)
(M-Files 19.12.8578.6)
.

 

Solution

Please install the sqlncli.msi from the M-Files installation directory then restart the M-Files application server computer. This requires a full server restart.
Path to the .msi file : C:\Program Files\M-Files\19.12.8578.6\Server
 

Still need help?

On this page