Apex 5.0 install the script gives error: ORA-02291 constraint (APEX_050000.SYS_C0013507)

We used a script to install our applications in Apex 4.02. When you use this script with Apex 5.0, we get an error:

[6399] ORA-02091: transaction cancelled

[6400] ORA-02291: integrity constraint violation (APEX_050000.SYS_C0013507) - parent

ALTER SESSION SET CURRENT_SCHEMA = &2;

declare
   l_schema       varchar2(30) := upper('&1');
   l_workspace_id number;
   l_app_id       number;

begin
   -- Get workspace ID for schema
   begin
      select workspace_id
        into l_workspace_id
        from apex_workspaces
       where workspace = l_schema;
   exception
      when no_data_found then
  
         -- Create workspace for schema
         apex_instance_admin.add_workspace(p_workspace_id => null, p_workspace => l_schema, p_primary_schema => l_schema, p_additional_schemas => null);
  
         -- Get ID for created workspace
         select workspace_id
           into l_workspace_id
           from apex_workspaces
          where workspace = l_schema;
   end;

   -- Put ID in install package
   apex_application_install.set_workspace_id(l_workspace_id);

   -- Get application ID.
   begin
      select application_id
        into l_app_id
        from apex_applications
       where workspace = l_schema;

      -- Set application ID in package
      apex_application_install.set_application_id(l_app_id);

   exception
      when no_data_found then
         -- No applicication create a new one
         apex_application_install.generate_application_id;
   end;

   -- Generate offset
   apex_application_install.generate_offset;

   -- Set schema and alias.
   apex_application_install.set_schema(l_schema);
   apex_application_install.set_application_alias(l_schema);

   l_app_id := apex_application_install.get_application_id;
   dbms_output.put_line('Applicatie installed with ID :' || l_app_id);
end;
/

@..\apex\f127.sql

The script starts promising:

Applicatie installed with ID :100                                
APPLICATION 127 - NedGraphics NedBrowser
Set Credentials...
Check Compatibility...
API Last Extended:20130101
Your Current Version:20130101 This import is compatible with version: 20100513
COMPATIBLE (You should be able to run this import without issues.) Set Application ID...
...authorization schemes

But in the end:

.....scheme 39275367140332431
......scheme 47816685350333762
...plugins
commit
*
ERROR at line 1:
ORA-02091: transaction rolled back
ORA-02291: integrity constraint (APEX_050000.SYS_C0013507) violated - parent
key not found

F127. SQL is exported from 4.02 Apex.
Can manually import this application in the Apex 5.0 using the Apex development interface...

Hi René,.

the bug is not public. I already fixed it for 5.0.2.

Kind regards

Christian

Tags: Database

Similar Questions

  • Hello! I am trying to install Photoshop and gives error 1 help me please!

    Hello! I am trying to install Photoshop and gives error 1

    Help me please!

    Hello

    Please see the instructions at the link below:

    Error: "unable to install". Creative cloud office

    Error code: 1

    Let us know if that helps.

    Kind regards

    Bani

  • Impossible to install the Safari extensions; error message

    Impossible to install the Safari extensions; error message

    Hello

    Make sure that OS X and Safari are up-to-date.

    Open system preferences > App Store, then click on: check now

    Your profile says your Mac works v10.11.1. The v10.11.5 update is available. This is maybe the reason why you can not install the Safari extensions.

  • Cannot install the KB3104002 80071A2D error Code

    I'm going to get in trouble and cannot install the KB3104002 80071A2D error Code, Lenovo ThinkCentre Windows 7 Pro 64-bit hardware.

    I ran Windows update convenience store that did not help the results of execution:

    Windows Update error 0 x 80070057(2015-12-14-T-09_56_48A) NO FIXED

    Registration for the service is missing or damaged FIXED

    Problems to install the latest updates FIXED

    Problems to install the latest updates FIXED

    I downloaded and tried to run with the Windows Update Catalog, this did not help. I have set up the computer to run in a clean boot state and tried to install this did not help.

    Any thoughts suggestions help.

    Thank you

    Doug

    After masking the update sought KB3104002 updates and it found an another KB3100773 same as KB3104002 *. IE 11 updates and it failed. Ran SFC/scannow received the following Windows resource protection could not perform the requested operation. Run chkdsk/r, recovering orphaned files. Once finish if it corrects any mistakes, I'll try updates once more, otherwise I will update the PC.

    A ran SFC/scannow results: verification completed 100%. Windows resource protection could not perform the requested operation.  Run chkdsk /r to check the disk for errors and repair

    After performing the chkdsk/r install all updates especially the KB3100773 and the KB3104002 have to do with the Cumulative security for IE 11 updates

  • I downloaded the latest version of the DNG Converter Camera Raw version 9.1.1 for windows. However, I get error install the update saying "error opening file for writing. Also on my help menu updates is not active?

    I downloaded the latest version of the DNG Converter Camera Raw version 9.1.1 for windows. However, I get error install the update saying "error opening file for writing. Also on my help menu updates is not active?

    If the installation program itself fails to open and run. Download it again maybe your current download is corrupted. Also, what OS you are using and you are an administrator with permission to install.

  • Connection to the PROD database error: ORA-20

    Salvation of DBA

    When running custom reports, I get the following error.

    Connection to the PROD database error: ORA-20

    When I run the same report again, it works fine.

    Please tell me why it behaves like this? and advice me please how to fix this.

    Best regards

    Suresh,

    Follow the recommendations of the following note to set the initialization of the PROCESS parameter correctly.

    Note: 216205,1 - parameters to initialize database for Oracle Applications Release 11i
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=216205.1

    Another possible solution is to give your opinion on tune your custom code.

  • Save the attachment script gives error "Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000

    Hi all

    I'm completely ignorant when it comes to Apple Script and I'm trying to get this simple script to work. The purpose of the script is to save attachments in a folder named when I run on the Apple Mail messages via a rule.

    This is the code:

    Tell application "Mail".

    theMessages set of selection

    Repeat with thisMessage in theMessages

    the value of the theAttachments attached to a letter of thisMessage

    Repeat with thisAttachment in theAttachments

    the value theAttachmentFileName ((chemin d'accès àle texte riche de la règle de type dossier de départ) & ' treatment of the Documents record: Hazel ") & name of the thisAttachment

    Save thisAttachment in file theAttachmentFileName

    end repeat

    end repeat

    tell the end


    The folder does not exist, but I get a "error " Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000 "when I run.

    The code in the Script Editor editor also inserts "type of rule" in my code, so I guess that my syntax is faulty.

    Any help would be greatly appreciated.

    Kind regards

    Beem

    If ' folder of treatment of Hazel ' already exists in the Documents folder, the following script of GUI, which seems to work perfectly under OS X 10.11.3, should do what you ask for:

    Try

    game of theDestinationFolder to ((path to the documents folder) as text) & "Hazel treatment record" as alias

    on error - file does not exist

    return Beep 3

    end try

    say application "Mail".

    activate

    the value theMessages to the selection

    Repeat with thisMessage in theMessages

    thisMessage Open

    say application 'System events' to say process "Mail".

    click on menu item "Save attachments...". " of 1 of the 'file' menu bar item menu of the menu bar 1

    Repeat until sheet 1 window 1 is

    end Repeat

    key sequence "o" using { control down,shift down}

    key sequence "Nutty".

    click on button 'Save' of the sheet 1 of window 1

    Repeat while sheet 1 window 1 is

    end Repeat

    key sequence 'w', using {control down} - close this message

    end say

    end Repeat

    end say

  • ENVY 5530: Impossible to install the HP drivers: error 1722

    Hello

    I have a major problem with the HP Envy 5530. At first it just prints nothing but scanning was very good. Then one day I got I decided to fix it. I ran a few fixers print spooler and it looks like they just remove a bunch of files. Then I went and deleted the printer drivers in system32. Now when I want to install the HP x 64 base drivers, it gives me an error:

    Setup error

    Error 1722: Cannot add the Port Discovery HP Monitor (HP ENVY 5530 series) port monitor.

    I use 10 64-bit Windows.

    I want my printer to work again. I would like to avoid having to wipe my os.

    Weird things are also underway in the services menu. The "PrintNotify" service is offline with error code 2 and print spooler is running, but when I go to WordPad and try to print it says "Do you want to install a printer now?" and then I click Yes, "Windows can't open Add Printer" the local print spooler service is not running. Please restart the spooler or restart the machine "."

    I want real solutions, as I have tried several of those mentioned in article 'driver install errors' which does not even cover error code 1722.

    This problem has been resolved. I inserted the disc of Windows 10 and did an upgrade on site to keep all applications and settings, but reinstall windows. This has removed all the corrupted windows files and now I'm at square one (I'll create another problem for her, since it is not really related).

  • install deskjet 2542 gives error

    So I try to install the Deskjet 2542 on my 8.1 Windows, 64-bit, Intel 4 hearts 4 + GHz desktop computer. There the huge disk hard space and 16 GB of memory. First, I tried the installer from the DVD provided and it failed with the error message below.

    Then I downloaded the latest installer (DJ2540_145.exe) and received the same message.

    So I tried again, this time I deselected all optional programs according to the option - same error message.

    Finally, I downloaded the Basic Installer (DJ2540_Basicx64_145.exe) but same error.

    MBM I tried also to run the program in compatibility mode for Windows 8.0 and 7.0 with the same error.

    ERROR:

    ---------------------------
    Details...
    ---------------------------
    Setup error

    Call to DriverPackageInstall returned error 13 for package "C:\Program HP HP Deskjet 2540 series\DriverStore\Yeti\hpvyt11.inf"

    ---------------------------
    Ok
    ---------------------------

    PS. I found the file hpvy11.inf on the DVD and put it in the location mentioned in the error message and ran the installer without success. Then I performed the troubleshooting file that appeared on my desktop as instructed without success.

    I will return this for a different printer or HP has a solution for me?

    If anyone has had success install another printer on a Windows 8.1 machine, please tell me the model of the printer.

    Got a solution! No HP problem.

    OK, a little while back, my PC took trapped by a bad adware led when a free software testing.

    Bleeping Computer forum helped me get rid of this malware (needed deep cleaning) using a set of tools, they provided. Very complicated and time-consuming procedure.

    But even after complete removal, this * beep * malware had the chance to weave from my PC and he could no longer update Windows Defender and gave me the problem, try to install the HP all-in-one device. Here is the solution:

    Basically, please "Refresh" the Windows System. Restart the PC and on the login screen, select the option advanced at the bottom of the screen (Windows8/8.1). In the following screens keep options that does not start in any operating system, until you get the choice to update or recover Windows. Choose "Refresh" - you will be asked for a source (CD, DVD, or USB drive) installation media. Refreshing gets rid of all of your installed programs, but it is useful to have a nice clean system!

    If you have upgraded to Windows 8.1 online, refreshing with your Windows 8 original DVD won't work! Google how to download the iso file of Windows 8.1 (pretty complicated involving the interruption of the resettlement of 8.0, and then run Setup for 8.1, but it works). Once you have the iso 8.1, burn to dvd or USB drive-upgrade software will give you the option once the iso downloaded - but do not choose the optio reinstall Window. Now when you update, you can use this media that you created.

    Phew! You now have a clean system that installs the HP devices fortunately. Defender will also update the definition files fortunately. You will need to reinstall the programs that you want - but hey, it's a great way to clean the cludge.

    My take-away from this - avoid all downloads that are suspicious. Even big names like CNet and Sourceforge insert destructive malware in their downloads. Although with the biggest names, unchecking / careful verification at installation will prevent cr * pware in your system. Small developers can auto install malware without giving you the option not to do so. Once these villains are they put in a deep anchor in the system and the registry that prevent attempts to uninstall. This is what happened to me. Hope this helps someone.

  • Lightroom cc 2015 the trial gives error messages when opening

    Hey, I just installed the cc of Lightroom 2015 of the trial, but it does not open. It gives two error messages: 1) an internal error has occurred. (2) an error occurred when attempting to change modules. I went on various forums and support pages. Many of them say to rename the files or something like that, but I can't find these files on my mac. And there are so many suggestions that I don't know that one to listen to.

    Hi danwildmind,

    This problem normally occurs when the files of Adobe to launch Lightroom do not have read/write permissions.

    Please follow this article changing the error modules and grant permissions to required files

    Here's a double thread Lightroom: "an error occurred when attempting to change modules."

    Now that you have gone though the resolution of the problems already

    You must make sure that Adobe files have read/write khakis.

    Follow the steps below to: -.

    • Go to ~/library/Application Support/Adobe = User Library directory [ not to be missed ~ symbol ]
    • Also, go to the folder /library/ Application Support / Adobe = system library
    • When you open GetInfo option for Adobe folder.
    • Make sure you click on '+' symbol, it will open the list of user accounts. Add currently logged in user account and Director of user account, if it is not added.

    Both must have read and write access to prevent these issues in the future.

    Important:

    • Once you added as currently logged on user account and administrator user accounts and provided access for reading and writing.
    • Make sure you click on the gear icon and select apply to closed.
    • Lock dialog box and close the Get Info .
    • So that all files present in the Adobe folder will have read and write access.

    Let us know if this helps

    ~ Assani

  • Birth of the nation gives error that E:\IML32.dll is eithernot designed to run on windows or it contains an error

    Place of issue of the nation

    I just rise from the pack or nation. When I try to install the game, or run the autorun, I get an error message that says E:\IML32.dll if the other is not designed to run on windows or it contains an error. I have window vista and accorss problems with older games running on this system. I installed Rise of nations Rise of legends fine without any problem. If you can please help solve me this problem. Thank you

    Make sure that your Windows is fully updated.

    Also try running it in compatibility mode:

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-older-programs-run-in-this-version-of-Windows

    If possible, try to install in the other PC and see if you get the same error or not? If it has the same error in different PC, that could be the problem with the CD/DVD.

  • Cannot install the updates, receive error message: automatic updates has been disabled by the administrator, but I don't.

    Original title: How can I, as an administrator, turn on automatic updates, whenever I try, I get an error message saying that automatic updates has been disabled by the administrator.  I didn't do it, then?

    Question stands as is.

    Hello

     

    1. have you made any changes to the computer before the show?

    2. What antivirus application is installed on the computer?

    3. What are the different user accounts on the computer?

    This problem occurs if Windows Update has been disabled by one of the following settings:

    · Group Policy

    · System policy
    · Registry

    I suggest you follow these methods and check.

    Method 1: Perform the clean boot and try to install the updates.

    To do this, follow the steps in this link:

    http://support.Microsoft.com/kb/310353

    NOTE: Once you check the functionality, follow the suggestions under steps to configure Windows to use a Normal startup state.

     

    Method 2: Try to turn on the auto update by following the steps in the link below.

    How to configure automatic updates by using Group Policy or of registry settings

    http://support.Microsoft.com/kb/328010

    Registry warning: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756

    How to back up and restore the registry in Windows

     

    Method 3: Turn off the antivirus application and try to download the updates and check.

     

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

     

    Method 4: Perform a full scan of the computer using the following antivirus applications.

    Microsoft Safety Scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx

    Malicious software removal tool: http://www.microsoft.com/security/pc-security/malware-removal.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

     

    I hope this helps!

  • Cannot install the update code error 8024200d.

    OT: a certain windows update installation.

    When I download this some update, it downloads, but when it comes to installing it, it upward with the error code 8024200d, which is annoying, because each time I close the PC it wont turn off until she's trying to downoad and try to install only for his failure again.i know maybe it's an important update , but why my pc is not be compatible with when is with all other updates

    Error 0x8024200D code is:
    SUS_E_UH_NEEDANOTHERDOWNLOAD
    The Setup program requires more data to download

    Try manually install the update from Microsoft Download Center.
    a. visit the Microsoft Download Web site, type the number of "KB" of the update in the search box and press ENTER.
    b. in the list of search results, click on the (KB) Knowledge Base article link to go to the download page. If there is more than one list, look for a link that goes to the Microsoft Download Center.
    c. If there are several versions on the download page, find the appropriate for your computer. Click on the download button and save the update to your desktop.
    d. When you are prompted, click open to install the update.
    Microsoft Download Center
  • When you try to install the updates get - error message 80070490

    tried to download explorer 9 - it keeps coming back install updates - I install the updates, but it still fails install returns the error code: 80070490

    tried to download explorer 9 - it keeps coming back install updates - I install the updates, but it still fails install returns the error code: 80070490

    See if this Support Microsoft tutorial can help you:

    http://Windows.Microsoft.com/en-GB/Windows-Vista/Windows-Update-error-80070490

    If you have any other questions, please repost in the Windows Update forum:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update?tab=unanswered

  • Cannot install the updates, 800700c error code 1

    Cannot install updates get message failed and 800700c error code 1. required healp please.

    Hi Michael,

    You can try the steps in this thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_install/cannot-install-Windows-updates-receive-error/ced31940-101F-4312-BB2A-acf0c5eaa35a

Maybe you are looking for

  • Purpose of the folder "cinchonism.

    I never noticed this issue before. It is located in the library folder. What is its use?

  • Toshiba a50-106: CPU Upgrade possible?

    There is a possibility in the future to upgrade my toshiba a50-106 (celeron 1.5 GHz) up to 1.6 or 2.0 GHz centrino?

  • UMI 772 Digital Out

    Hello I was intending on using the UMI-7772 to provide control for pneumatic valves signals and also control some return values.  There are 16 digital i/o lines available on the UMI-7772.  The manual States the 3-27: «These signals is configurable as

  • misunderstanding.

    This update keeps shopwing, there always the same number of KB. Each update else has different numbers. This is the only exception. I installed it in less than 8 times. I installed it three times since the steeplechase. As soon as I install it, I go

  • Install Windows 7 on a new 3 TB hard drive

    I'm trying to install Windows 7 on a new 3 TB hard drive.  During the installation, I get a screen that says no hard drives have been found.  Windows installs the boot files on the X startup disk but nothing else.  The motherboard is an Intel DZ68BC