• Error importing repository: could not insert NodeProperty

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #21630  by Alexires
 
Alright, so I'm guessing I need to do the following:

I need to alter the default settings so that when an item is imported the default size for "TextArea" is 2048 instead of the standard 512. Each property group is inserted as its row in "OKM_NODE_PROPERTY" but I don't know what to enter in the database query. I'm pretty sure it is something like this:
Code: Select all
ALTER TABLE OKM_NODE_PROPERTY ALTER COLUMN NPG_VALUE [i]something[/i] 2048
I just don't know what I have to type in where something is. Please help?
 #21656  by jllort
 
The problem with derby is that you can not have a client connected to derby and openkm started. With tomcat stopped you can connect with derby with some databaseclient like datastudio ( it's a great database client ) and ensure you have changed the table.

For better perfomance, take only as a suggestion, you should consider migrate all data to repository with mysql ( you'll get more database control and performance ). I ignore the number of documents you got, but from 25-50k documents is good idea jump to mysql ( in your case is needed export repository from administration and import -> the major work you will have is migrate user -> you can use database scripts ( selects -> to create inserts )).

something like it ( really these are for migrating 5.x users table to 6.x:
Code: Select all
SELECT 'INSERT INTO OKM_USER (USR_ID, USR_NAME, USR_PASSWORD, USR_EMAIL, USR_ACTIVE) VALUES (''' + USR_ID + ''', ''' + USR_NAME + ''', ''' + USR_PASSWORD + ''', ''' + USR_EMAIL + ''', ''' + USR_ACTIVE + ''');' FROM OKM_USER;
SELECT 'INSERT INTO OKM_ROLE (ROL_ID, ROL_ACTIVE) VALUES (''' + ROL_ID + ''', ''' + ROL_ACTIVE + ''');' FROM OKM_ROLE;
SELECT 'INSERT INTO OKM_USER_ROLE (UR_USER, UR_ROLE) VALUES (''' + UR_USER + ''', ''' + UR_ROLE + ''');' FROM OKM_USER_ROLE;
About application crash depending the load of system ( number of users, what are doing, the extraction queue, which kind of files you're uploading etc... ) you need more or less memory and cpu resources. 2CPU and 2048MB for tomcat and 1MB for OS is good starting scenario. If your OpenKM shares the server with other applications that could be a problem too. And finally with Windows OS you'll get less performance and control of your applications ( that could be a problem too, but not necessary we have middle size repositories 100-200k docs in windows environments without problems ).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.