Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.9K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.5K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 402 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
Importing a page from different App and Workspace - ORA-00001: unique constraint (APEX_050100.WWV_FL

Hi folks,
I'm trying to import a page from different App and Workspace but is raising an error:
- ORA-00001: unique constraint (APEX_050100.WWV_FLOW_PAGE_PLUGS_PK) violated
The command which I'm using is:
begin
apex_application_install.set_workspace('PRODUCTION');
apex_application_install.set_application_id(100);
-- apex_application_install.generate_offset;
apex_application_install.set_application_alias('APP_PRODUCTION');
end;
/
@/Users/UserX/Documents/Scripts/Apex/Pages/page_7777.sql
Could someone help me? I've been trying to find something in Google and Oracle Forum, but no success.
* Bonus: I would like to read your suggestions about manage Develop and Production environment, dev teams and submit the changes to Production environment.
Thanks.
Answers
-
This may be related, so try disable any JET regions and see if it replicates
https://storm-petrel.com/apex-error-code-apex-error-internal-request-plugin/
-
Unfortunately or not it's a different problem, because I'm trying to import a single page, with one region without anything special. But thank you!
-
Try to create a new Application with one Page and try to import it. Please confirm us if it works successfully
-
Hi Alli, thank you for your awnser.
I created a new application but didn't work...
The command:
begin
apex_application_install.set_workspace('PRODUCTION');
apex_application_install.set_application_id(999);
-- apex_application_install.generate_offset;
apex_application_install.set_application_alias('IMPORT_TEST');
end;
/
@/Users/igor_sala/Documents/Natcorp/Scripts/APEX_Apps/Natcorp/f290_page_7777.sql
And the result:
Error starting at line : 44 File @ /Users/UserX/Documents/Scripts/Apex/Pages/f290_page_7777.sql
In command -
begin
wwv_flow_api.create_page(
p_id=>7777
,p_user_interface_id=>wwv_flow_api.id(9577698375291278781)
,p_name=>'Teste'
,p_page_mode=>'NORMAL'
,p_step_title=>'Teste'
,p_step_sub_title_type=>'TEXT_WITH_SUBSTITUTIONS'
,p_first_item=>'NO_FIRST_ITEM'
,p_autocomplete_on_off=>'OFF'
,p_page_template_options=>'#DEFAULT#'
,p_dialog_chained=>'Y'
,p_overwrite_navigation_list=>'N'
,p_page_is_public_y_n=>'N'
,p_cache_mode=>'NOCACHE'
,p_last_updated_by=>'IGOR'
,p_last_upd_yyyymmddhh24miss=>'20181114141004'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(8440754902023618)
,p_plug_name=>'Block'
,p_region_template_options=>'#DEFAULT#:t-Region--scrollBody'
,p_plug_template=>wwv_flow_api.id(9577672378453278687)
,p_plug_display_sequence=>10
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_display_point=>'BODY'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
);
end;
Error report -
ORA-00001: unique constraint (APEX_050100.WWV_FLOW_PAGE_PLUGS_PK) violated
ORA-06512: at "APEX_050100.WWV_FLOW_API", line 12137
ORA-06512: at "APEX_050100.WWV_FLOW_API", line 12595
ORA-06512: at line 19
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.
-
choose (Reuse Application ID XXX From Export File) when you install your database application and click INSTALL APPLICATION
-
Facing the same issue, followed all the suggestions above. Its still not working.