Error processing Import on item - a form

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

Error processing Import on item - a form

#1

Postby xren » Mon Jun 02, 2014 5:43 pm

Hi,

When I import a project from my dev server to production server, one of the form cannot be imported, all others are fine including scripts for this failed form. The error is:

Error inserting client callable function record ORA-00001: unique constraint (EBASE_UFS.CLIENT_CALLABLE_FUNCTIONS_PK) violated.

There is no such form in other projects.

How can this be fixed?

Thanks
Xiaoli
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#2

Postby Hovik » Tue Jun 03, 2014 8:45 am

Hello Xiaoli,

There is an error in the script which creates the repository from scratch.

The following 2 DDL commands will correct the error in your production system.

Code: Select all

drop index client_callable_functions_pk;
create unique index client_callable_functions_pk on client_callable_functions(FORM_ID, SCRIPT_LANGUAGE, SCRIPT_NAME, POSITION);
Please confirm once you can import your form.
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#3

Postby Hovik » Tue Jun 03, 2014 9:52 am

Correction to the previous post:

There is no need for a unique index any longer. In fact, any unique index may present the same issue, so the DDL you need to run is:

Code: Select all

drop index client_callable_functions_pk;
0 x


Who is online

Users browsing this forum: No registered users and 21 guests