How come the item value does not come thru via PL/SQL anonymous block?

Hi,
It's a Form with 3 tables -
1) ClinicianProfileTb (with about 40 columns, insert/update via DML),
2) PeopleTb (with about 7 columns, insert/update via PL/SQL anonymous block) and
3) ClinicianPracticeTb (with about 10 columns, insert/update via PL/SQL anonymous block) for after-submit-processes.
So I have several After-Submit-Processes. For some reason, it appears that PeopleId which is supposed to come thru via the 2nd After-Submit-Process (ie: Insert/Update PeopleTb) does not do the way it's supposed to. And when I press "Create" button at the bottom, I got the following error msg:
ORA-01400: cannot insert NULL into ("TEST_0712"."CLINICIANPRACTICETB"."PEOPLEID")
I tried the "debug" mode (via edit page link), but to no avail. (I'm newbie, trying to learn and deliver at the same time :)).
I uploaded the app to apex.oracle.com, if someone could kindly take a look and let me know what goes wrong, it'd be greatly appreciated.
workspace: test_0712
app: 43408 - TEST
user: demo
pswd: demoPswd
Page#21 -> look at the After-Submit-Processes -> in "Insert/Update PeopleTb" it appears that PeopeId does not come thru; thus it cannot be updated to ClinicianProfileTb.PeopleId (allows null) -> and thus cannot be inserted into ClincianPracticeTb.PeopleId (which does NOT allow null). Basically my logic is that in order to create ANY row in ClinicianPracticeTb, BOTH PracticeId AND PeopleId must be present.
Acutally I should have used the PeopeTb as DML (as the driving table) to enforce that PeopleId must be present in order to insert ClinicianProfileTb and ClinicianPracticeTb, but it'd be lots of codes to write to insert/update in ClinicianProfileTb (40 columns).
In addition, does ApEx consider EVERY SINGLE after-submit-process are in ONE transaction for commit/rollback? It appears that it treats all PL/SQL anonymous blocks are in ONE transaction, while Automatic Row Processing (DML) is commited/rolled back on its own?
Thanks much,
Helen

All blocks that do not commit in one of the ways I detailed (and which do not explicitly commit using a commit statement) are part of the transaction started with > the first DML statement issued in any of the page processes and continuing until a commit is issued.Say, there are the following processes in the After-Submit-Processes:
1. Process1 -> Automatic Row Processing (DML)
2. Process2 -> PL/SQL anonymous block
3. Process3 -> PL/SQL anonymous block
Based on what you describe, in the event that if there is no explicit "commit" issued in any of these processes, then an implicit "commit" will be issued at the end of Process3?
Thanks, Scott.
Doreen

Similar Messages

  • I am trying to delete some aps, but the delete "X" does not come up when the ap is pressed.  Anyone know how I can fix?.

    Hi, I am trying to delete some aps, but the delete "x" does not come up when the ap is pressed.  Anyone know how to fix.  Also, my ipod is turning off on its own and won't power back on unless I plug it in although it is fully charged.

    For the apps:
    - You can't delete the apps that came with the iPod
    - Go to Settings>General>Restrictions and see if there is the Restrictions set that prevents deleting apps

  • My iPod shuffle, which I prchased in 2009 only worked for a short time so I put it back in the box and just recently took it out. I will not charge and the power light does not come on. It was faulty from the start and thought I was out the money I paid.

    My iPod shuffle only worked for a short time. It will not charge  and the power light does not come on. Bought it in 2009. Put it back in the box and in my desk. Recently tried to get it to work again but no luck. Anyone else have this problem? Very disappointed with the product although my wifes work perfectly.

    Can't say I haven't done the same kind of thing...keep finding things I had every intention of...
    If you have the chance stop by an Apple Retail store and talk to them about it...they often work deals for replacement of out of warranty non-working items for prices around half price.  Won't hurt to stop by and see what they will do for you.

  • When i try to email photos the collage tempalte does not come into email

    when i try to email photos the collage template does not come into the email

    In the iPhoto preferences accounts tab delete the account that is not working and re-enter it
    Or better yet IMHO set apple mail as your email client
    LN

  • TS3048 My wireless mouse has stopped working after I recharged the batteries,the green light does not come on. I swapped the batteries from the mouse to my wireless keyboard and they work fine in the keyboard.

    My wireless mouse has stopped working after I recharged the batteries,the green light does not come on. I swapped the batteries from the mouse to my wireless keyboard and they work fine in the keyboard.What can I do?

    Hello:
    Try resetting the SMC and PRAM.
    Barry

  • My songs I add from my external harddrive do not play in itunes. They appear when I search them in the search bar but if I click on the album it does not come up. HELP!

    My songs I add from my external harddrive do not play in itunes. They appear when I search them in the search bar in Itunes but if I click on the album it does not come up instead an album from icloud plays.HELP!

    ErinGillaim wrote:
    The audio format or the codec may not be recognized by the iTunes
    It is else it would not have been able to be selected to import.
    The simple fact that it shows up in iTunes Search means it is in the iTune library.
    It is a bug where some imports do not show up in the iTunes library (but they usually show up in Recently Imported playlist) until a restart of iTunes, which usually fixes it.

  • Every time I unmute my iPad, the sound efx does not come back. I can hear my keypad and the on/off sounds but no app sounds.

    Every time I unmute my iPad, the sound efx does not come back. I can hear my keypad and the on/off sounds but I can't here the sounds from deleting photos, clicking on apps that are on my iPad. It does this every time I unmute my iPad. Please advise.

    Hello PearldiamondMD,
    I was thinking of a few recommendations for you. I recommend our iPhone Troubleshooting Assistant found here http://www.apple.com/support/iphone/assistant/phone/#section_1. Start at section 1, if that doesnt fix it, then section 3, and if all else does not work, section 5. At section 3 I recommend closing ALL the apps.
    Here is section 1 to get you started.
    Restart iPhone
    To restart iPhone, first turn iPhone off by pressing and holding the Sleep/Wake button until a red slider appears. Slide your finger across the slider and iPhone will turn off after a few moments.
    Next, turn iPhone on by pressing and holding the Sleep/Wake button until the Apple logo appears.
    Is iPhone not responding? To reset iPhone, press and hold the Sleep/Wake button and the Home button at the same time for at least 10 seconds, until the Apple logo appears.
    If your device does not turn on or displays a red battery icon, try recharging next.
    All the very best,
    Sterling

  • My macbook air 2010 will not power on, the charger light does not come on at all either. help!

    my macbook air 2010 will not power on, the charger light does not come on at all either. help!

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    If this does not help, contact Apple.
    Best.

  • Why does the iphone 5c come with a sim card taker outer and the iphone 5s does not come with one

    why does the iphone 5c come with a sim card taker outer and the iphone 5s does not come with one

    Good question... Lol, I've noticed that iPads do too... I just use a bent paperclip works like a charm.

  • I cannot connect my printer.  The nearby option does not come up on screen.

    I cannot connect my hp photsmart printer.  The "Nearby" option does not come up on the screen and it won't respond when I type in the name.  The computer's wireless is working as well as the wireless on the printer. 

    Hi Icullinan,
    Welcome to the Support Communities!
    The article below may be able to help you with this.  Click on the link below for more information:
    OS X: Printer and scanner software available for download
    http://support.apple.com/kb/HT3669
    Apple delivers third-party software for scanners and printers using Software Update. To set up your printer or scanner, just connect it to your Mac. If software is needed and available, OS X automatically downloads and installs it.
    This article is a comprehensive list of currently supported printer and scanner models and associated software provided by third-party vendors as of 23 January 2014.
    OS X Mavericks: Set up a printer
    http://support.apple.com/kb/PH14143
    OS X: Connecting a Wi-Fi printer to your Wi-Fi networkhttp://support.apple.com/kb/ht3500
    Cheers,
    - Judy

  • Error the entered value does not match the specified field type

    Hi,
    When I try to insert a null value to a field of the User Defined Table I am getting the error "The entered value does not match the specified field type" in SAP Business One version 2007 PL 42.
    Any help would be appreciated.
    Thanks in advance.
    Sudha.

    Hi Sudha,
    It probably have to do with how you defined the field.
    Is Null value allowed?
    What are the field definitions?
    Thanks,
    Jesper

  • Data type of the base attribute or the base value does not match...

    ...the assigned expression.
    Hello all,
    I always get the Error
    +<ERROR+
    TEXT="'DWH.CUB_REGISTRATIONS_AW.REGISTRATIONS': XOQ-02517: Der Datentyp des Basisattributs oder der Basisgröße stimmt nicht mit dem zugeordneten Ausdruck überein.
    XOQ-01400: Ungültige Metadatenobjekte"/>
    The English message must be something like this:
    The data type of the base attribute or the base value does not match the assigned expression.
    when I run my mapping. The attribute REGISTRATIONS is NUMERIC (12,2) in the Cube and I map a NUMERIC(12,2) constant in it.
    I use a simple OWB-Mapping for loading, but I don't understand why it doesn't function. Other mappings where the attributes are out of a
    table I put in a cube are running well.
    I tried different things, but nothing fixed my problem. Any idea ?
    Thanks a lot for help
    Michael

    Technically this is a 'warning' from the server, not an 'error'. This means that the change you made should have been submitted, but you get an warning message on the client. AWM would suppress this warning, but evidently OWB does not. Can you switch to use AWM?
    Here is the definition of the warning along with 'cause' and 'action' sections. (Unfortunately these sections are not translated into German for some reason.)
    >
    02517, 0, "The data type \"%(1)s\" of the base attribute or base measure is different from the mapped expression \"%(2)s\"."
    // *Cause: Either the base attribute or base measure with the mapped expression was set to an inconsistent data type, or it was mapped to an expression of a different data type from its fixed data type.
    // *Action: When changing a mapped expression for a base attribute or base measure, ensure that the expression has the same data type; otherwise, set the data type of the base attribute or base measure to NULL first. When a base attribute or a base measure has an existing mapped expression, do not set it to a different data type.
    >
    It is probably safe to ignore this warning, but if you can post the relevant XML for the cube, then will probably be able to spot the problem. I assume that REGISTRATIONS is a measure in the cube CUB_REGISTRATIONS_AW, so this is what you can look for in the XML:
    (1) The definition of the base measure along with the datatype. It should be something like this
    <Measure>
      <BaseMeasure
        SQLDataType="NUMBER(12,2)"
        ETMeasureColumnName="REGISTRATIONS"
        Name="REGISTRATIONS">(2) The mapping info for the measure, which should looks something like this:
    <MeasureMap
      Name="REGISTRATIONS"
      Expression="...">
      <Measure Name="REGISTRATIONS"/>
    </MeasureMap>I don't know if you can get the XML directly from OWB. If not, then DBMS_CUBE.EXPORT_XML should work (assuming you are in 11.2). You could also attach AWM and save the cube to an XML template.

  • HT5622 i changed my apple id in my computer but the new id does not come up on the i phone when i need to log in

    i changed my apple id   on my computer     on my i phone  my new id does not come up and i cannot log into i tuenes

    You can't without deleting those applications and downloading them from the new ID, which may require repurchasing paid applications.
    (85560)

  • After I add a cd to my library the cover art does not come up haw do I add it?

    After I import a CD into my music library the cover art does not appear, and when I try to add the cover art it says that it is not available, when look it up I can locate the cover art but it will not import. How do I get the album cover art?

    Have you tried Settings>Privacy>Location Services and see if you can turn it on in there?
    Obviously it has to be an app that works with location services so if it is and nothing else works, delete the app and download it again to make it ask again if you want to allow your location to be used with it.

  • My ipod touch is flashing white on and off, I hold the buttons down, and the screen goes black- but the apple logo does not come on. What do I do?

    So I have had this problem before, and know that you hold down the top Power button and the Home button, at the same time, for roughly 10 seconds, or until the apple logo comes on.
    The problem is, when I press the buttons and the screen goes black, like it's supposed to before the logo pops up, the apple logo isn't appearing.
    I was wondering if that's because my I pod touch was drained when I plugged it in to charge, and I tried to turn it on when it was still charging?
    What can I do?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

Maybe you are looking for