The last insert in this procedure not inserting, logic of flow is right?

Here is the code:
{ PROCEDURE prAddDATU (p_EXPCLLI            IN VARCHAR2,
p_EXPIP IN VARCHAR2,
p_EXPName IN VARCHAR2,
p_EXPAddress IN VARCHAR2,
p_EXPCity IN VARCHAR2,
p_EXPState IN VARCHAR2,
p_COPhoneNumber IN VARCHAR2,
p_WCCLLI IN VARCHAR2,
p_DialIn IN VARCHAR2,
p_DialOut IN VARCHAR2,
p_EXPRR IN VARCHAR2,
p_PowerFuse IN VARCHAR2,
p_HDFFrame IN VARCHAR2,
p_PGTCFrame IN VARCHAR2,
p_NTTFrame IN VARCHAR2,
p_ColanRR IN VARCHAR2,
p_ColanJack IN VARCHAR2,
p_PollInterval IN NUMBER,
p_LeadNPA IN NUMBER,
p_EXPComments IN VARCHAR2,
p_OwnerID IN NUMBER,
p_LRNNumbers IN VARCHAR2,
p_MaintBegin IN VARCHAR2,
p_MaintEnd IN VARCHAR2,
p_EXPPort IN NUMBER,
p_LRNChecked IN VARCHAR2,
p_LRNFacilityCode IN VARCHAR2,
p_IsPrimaryAddress IN VARCHAR2,
p_RTUTypeId IN NUMBER,
p_SiteName IN VARCHAR2,
p_HostExpIds IN VARCHAR2)
IS
v_DATUID NUMBER;
v_HostExpId NUMBER;
v_HostExpIds VARCHAR2 (200);
v_LRN VARCHAR2 (30);
v_LRNS VARCHAR2 (400);
v_LRNActive CHAR (1);
v_LRNSActive VARCHAR2 (20);
v_LRNFacilityCode CHAR (2);
v_LRNSFacilityCode VARCHAR2 (300);
v_pos1 NUMBER;
v_pos2 NUMBER;
v_pos3 NUMBER;
v_pos4 NUMBER;
BEGIN
SELECT DATU_EXP_UNIT_INFO_SEQ.NextVal INTO v_DATUID FROM DUAL;
INSERT INTO TT_DATU_EXP_UNIT_INFO VALUES (v_DATUID, p_OwnerID, p_EXPName, p_EXPAddress, p_EXPCity, p_EXPState, p_COPhoneNumber, p_WCCLLI, p_EXPCLLI, p_EXPIP, p_EXPPort, p_DialIn, p_DialOut, p_EXPRR, p_PowerFuse, p_HDFFrame, p_PGTCFrame, p_NTTFrame, p_ColanRR, p_ColanJack, p_PollInterval, p_LeadNPA, NULL, p_EXPComments, p_MaintBegin, p_MaintEnd, p_IsPrimaryAddress, p_RTUTypeId, p_SiteName, Sysdate);
-- Add New DATU in the TT_DATU_EXP_STAGING and TT_DATU_EXP_UNIT_INFO tables
INSERT INTO TT_DATU_EXP_STAGING VALUES (v_DATUID, p_EXPCLLI, SysDate);
-- Add New DATU in the TT_DATU_EXP_ALARM_INFO table with ALARM_TYPE = 'G0 - Staging'
INSERT INTO TT_DATU_EXP_ALARM_INFO VALUES (v_DATUID, SysDate, 'G0', SysDate);
-- Add RTU to Hosts
v_HostExpIds := p_HostExpIds;
v_pos1 := INSTR(v_HostExpIds, ',', 1);
WHILE v_pos1 > 0
LOOP
v_HostExpId := TRIM(SUBSTR(v_HostExpIds, 1, v_pos1 - 1));
IF v_HostExpId IS NOT NULL
THEN
INSERT INTO TT_HOST_SATELLITE VALUES (v_HostExpId, v_DATUID);
END IF;
v_HostExpIds := SUBSTR(v_HostExpIds, v_pos1 + 1, LENGTH(v_HostExpIds));
v_pos1 := INSTR(v_HostExpIds, ',', 1);
END LOOP;
-- if LRN maps are entered add records in DATU_LRN_MAP
v_LRNS := p_LRNNumbers;
v_LRNSActive := p_LRNChecked;
v_LRNSFacilityCode := p_LRNFacilityCode;
v_pos1 := INSTR(v_LRNS, ',', 1);
v_pos2 := INSTR(v_LRNSActive, ',', 1);
v_pos3 := INSTR(v_LRNSFacilityCode, ',', 1);
WHILE v_pos1 > 0
LOOP
v_LRN := TRIM(SUBSTR(v_LRNS, 1, v_pos1 - 1));
v_LRNActive := TRIM(SUBSTR(v_LRNSActive, 1, v_pos2 - 1));
v_LRNFacilityCode := TRIM(SUBSTR(v_LRNSFacilityCode, 1, v_pos3 - 1));
IF v_LRN IS NOT NULL
THEN
INSERT INTO TT_DATU_LRN_MAP VALUES (v_LRN, v_DATUID, v_LRNActive, v_LRNFacilityCode);
END IF;
v_LRNS := SUBSTR(v_LRNS, v_pos1 + 1, LENGTH(v_LRNS));
v_LRNSActive := SUBSTR(v_LRNSActive, v_pos2 + 1, LENGTH(v_LRNSActive));
v_LRNSFacilityCode := SUBSTR(v_LRNSFacilityCode, v_pos3 + 1, LENGTH(v_LRNSFacilityCode));
v_pos1 := INSTR(v_LRNS, ',', 1);
v_pos2 := INSTR(v_LRNSActive, ',', 1);
v_pos3 := INSTR(v_LRNSFacilityCode, ',', 1);
END LOOP;
COMMIT;
END prAddDATU;
The problem here is the last insert into TT_datu_lrn_map table shows no insert at all.
Any guru can help, please.
Thanks,

I used an error table like the other post a ton. If you take a few minutes to review Handling Exceptions in PL/SQL you will be happy you did.
You can add other columns to the table and add debug comments like 'Insert 1" in 'Insert 2' etc.
BEGIN
INSERT
EXCEPTION
WHEN ZERO_DIVIDE THEN
END;
There are several standard errors you can trap for example: (So you can trap for more than one at a time)
-- Only one of the WHEN blocks is executed.
WHEN CASE_NOT_FOUND -- ORA-06592
dbms_output.put_line('Missing the else clause ');
WHEN CURSOR_ALREADY_OPEN -- ORA-06511
dbms_output.put_line('Close cursor first before reopening. ');
WHEN DUP_VAL_ON_INDEX -- ORA-00001
dbms_output.put_line('Attempt to store a duplicate value or values in a database column.');
WHEN INVALID_CURSOR -- ORA-01001
dbms_output.put_line('You tried to reference a cursor that does not yet exist. ');
WHEN INVALID_NUMBER -- ORA-01722
dbms_output.put_line('An attempt is made to convert a character string into a number failed ');
WHEN LOGIN_DENIED -- ORA-01017
dbms_output.put_line('Username is not a recognised username or that the password is incorrect ');
WHEN NO_DATA_FOUND -- ORA-01403
dbms_output.put_line('All records have been returned from the SQL query. ');
WHEN ROWTYPE_MISMATCH -- ORA-06504
dbms_output.put_line('Number and/or types of columns in a query does not match declared return type of a result set ');
WHEN SYS_INVALID_ROWID -- ORA-01410
dbms_output.put_line('Query for table for which there is no such row ');
WHEN TOO_MANY_ROWS -- ORA-01422
dbms_output.put_line('SELECT INTO statement returns more than one row ');
WHEN VALUE_ERROR -- ORA-06502
dbms_output.put_line('Unable to convert value. ');
WHEN ZERO_DIVIDE THEN -- handles 'division by zero' error
dbms_output.put_line('Company must have had zero earnings.');
pe_ratio := null;
WHEN OTHERS THEN -- handles all other errors
dbms_output.put_line('Some other kind of error occurred.');
END; -- exception handlers and block end here
I hope this helps you.
MS

Similar Messages

  • IDVD working till I installed 2TB ED. Keep getting message"There was an internal iDVD error during the last action. This is not a movie." Any help is appreciated.

    iMovie message "There was an internal iDVD error during the last action. This is not a movie." comes up after trying to create a movie to burn to iDVD. Recently added a 2TB external drive to free up memory from HD. iDVD was working fine till the ED was added. Can't burn DVDs anymore. Any suggestions on how to fix the problem?

    What  folders did you move to the EHD? Any of the basic Home folders?  What format is the EHD?  It should be OS X Extended (journaled).  Do you have any files that iDVD uses on the EHS, i.e. project files, media files?
    OT

  • HT204053 The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert ano

    sir have this error so what can i do The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.

    It looks like the iPhone is locked to a carrier that is not the one you are trying to use.
    You need to determine which carrier it is locked to and then contact them to see if they are willing to authorise the unlocking of your iPhone.  As ManSinha mentioned, many carriers will only authorised the unlock if requested by the customer who had the contract with them for this iPhone.
    Remember that only the carrier who owns the lock on your Iphone can authorise Apple to unlock the iPhone in their servers.  You need to contact the carrier or have the previous owner of the iPhone request the unlocking.

  • My Time Capsule has stopped backing up.  I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message: "The backup was not performed because an error occurred while copying files to the backup disk.

    My Time Capsule has stopped backing up.
    I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message:
    "The backup was not performed because an error occurred while copying files to the backup disk."
    I have gone into Mac Help and followed this down to stage 4:
    under shared it lists my time capsule and my husband's iMac - both use the time machine but we have switched his off temporarily.  Clicking on my Time capsule I get "Connected" and "Sharepoint" - I didn't have to enter connect or password
    I don't understand stage 5: how and where do I select the disk or volume that contains Time Machine backups ?  How do I know which it is? My disk utility lists 160.04 TOSHIBA MK... with sub-heading Macintosh HD.  It also lists (with a "CD" icon) HL-DT-ST DVDRW GS22N
    Under stage 6, how and where do I Locate your backup ? I try dragging my Time capsule from Finder to the Disk Utility side panel but it won't go.  What is my computer's name?
    Please someone help!  I'm completely stumped.
    Thanks,
    Maggie
    Mac Help says:
    If you back up to a Time Capsule or network disk:
    Open the Time Machine pane of System Preferences, and slide the switch to Off.
    Open Time Machine preferences
    Open Disk Utility, which is in the Utilities folder in the Applications folder. 
    Open Disk Utility
    Make sure the Time Capsule or network disk is turned on and available. 
    Open a Finder window, select your Time Capsule or network disk in the Shared section of the sidebar, and click Connect. If necessary, enter your user name and password. 
    On the Time Capsule or network disk, select the disk or volume that contains Time Machine backups. Depending on how your Time Capsule is set up, there may be one or more disks or volumes. 
    Locate your backup, and drag it to the Disk Utility sidebar.You can identify your backup by looking for your computer’s name in the backup’s filename.

    Hello,
    Thanks to the great Pondini...
    http://pondini.org/TM/C3.html

  • Infospoke error +The last extraction for this InfoSpoke is not yet Complete

    Hello Experts,
                      I am receiving the error  "The last extraction for this InfoSpoke is not yet Complete " while starting the load for Infospoke.
    Please advice
    Thanks and Regards,
    Rezwan Asraf Ali

    Hi,
    This error RSBO320 is usually related to an inconsistency of infospoke internal tables which is will need to be reset manually by SAP developers. So you'll probably be best opening a ticket under BW-WHM-DBA-OHS.
    Rgds,
    Colum

  • TS3694 trying to restore iPhone 3G 4.2.1 in the same virgin but in the last i get iPhone could not restored .an unknown  error occurred (1015)

    hi every body
    trying to restore iPhone 3G 4.2.1 in the same virgin but in the last i get iPhone could not restored .an unknown  error occurred (1015)
    any body can help me
    thanks

    I would like to know if there is a better to fix this since this iphone has been jailbroken. Google search only shows stuff that talks about installing software that has to do with jailbreaking. I just need to restore back to normal.  Thank you!
    deggie wrote:
    Google "Error 1015 iPhone" and you will find a remedy.

  • HT204389 Since I updated my iPhone, with the last version , Siri it's not working at all.

    Since I updated my iPhone, with the last version , Siri it's not working at all.

    Have you changed location (e.g., in a different country)?
    See this article about countries that support Siri: http://www.apple.com/ios/feature-availability/
    Also, from the HT4992 article you attached: "* Siri is currently in Beta. Siri requires Internet access. Siri may not be available in all languages or in all areas, and features may vary by area. Cellular data charges may apply."

  • TS1814 Most of the songs on my iPod Classic no longer dshow up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Th

    Most of the songs on my iPod Classic no longer show up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Thanks you for any help.

    See Empty/corrupt iTunes library after upgrade/crash or
    Recover your iTunes library from your iPod or iOS device.
    tt2

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • TS3999 In the last week when changing text notes in outlook appointments or all day events, the changes appear on my pc screen, iphone & ipad but when I print the changes are not there, the old text prints that has been deleted

    In the last week when changing test notes in Outlook appointments or all day events, the changes appear on my PC,  Iphone & Ipad, but when I print my calendar they do not print.  I get the old text or deleted text from the printer copy of my calendar.  What is going on?

    Thanks Sig. The information is here: Anything useful stand out?
    Battery Information:
      Model Information:
      Serial Number:    9G1130CJVD3MA
      Manufacturer:    DP
      Device Name:    bq20z451
      Pack Lot Code:    0000
      PCB Lot Code:    0000
      Firmware Version:    0201
      Hardware Revision:    0002
      Cell Revision:    0158
      Charge Information:
      Charge Remaining (mAh):    5663
      Fully Charged:    Yes
      Charging:    No
      Full Charge Capacity (mAh):    5663
      Health Information:
      Cycle Count:    59
      Condition:    Normal
      Battery Installed:    Yes
      Amperage (mA):    261
      Voltage (mV):    12574
    System Power Settings:
      AC Power:
      System Sleep Timer (Minutes):    10
      Disk Sleep Timer (Minutes):    10
      Display Sleep Timer (Minutes):    10
      Wake on AC Change:    No
      Wake on Clamshell Open:    Yes
      Wake on LAN:    Yes
      Current Power Source:    Yes
      Display Sleep Uses Dim:    Yes
      Battery Power:
      System Sleep Timer (Minutes):    10
      Disk Sleep Timer (Minutes):    10
      Display Sleep Timer (Minutes):    2
      Wake on AC Change:    No
      Wake on Clamshell Open:    Yes
      Display Sleep Uses Dim:    Yes
      Reduce Brightness:    Yes
    Hardware Configuration:
      UPS Installed:    No
    AC Charger Information:
      Connected:    Yes
      ID:    0x0100
      Wattage (W):    60
      Revision:    0x0000
      Family:    0x00ba
      Serial Number:    0x00262704
      Charging:    No

  • I have website that on the Home page and the home only. When opened in Chrome or Safari the last 3 menu buttons do not work.

    I have website that on the Home page and the home only. When opened in Chrome or Safari the last 3 menu buttons do not work. But work fine in Explorer and Firefox.Its weird. The site is baystatewiring.com see if you have the same problem. Does anyone have a idea?

    Code errors could explain the problem.  You're missing a closing </div> tag for container.
    [Invalid] Markup Validation of http://baystatewiring.com/index.html - W3C Markup Validator
    Try changing your link CSS from display: inline to display: inline-block.
    Nancy O.

  • Where did this backup window come from on my desktop.  I have always used time machine to backup to an external disc and within the last 2 weeks, this backup window keeps appearing.  Where did it come from?  Thanks for any help

    where did this backup window come from on my desktop. It specifies personal data & settings and tells me when the next backup is scheduled [which I never set up].   I have always used time machine to backup to an external disc and within the last 2 weeks, this backup window keeps appearing.  Where did it come from?  Thanks for any help

    To check your S.M.A.R.T status open disk utility and click on your drive and then click on the info icon.

  • I Have Iphone 4... I had purchased from any store in second hand... and the third party whose this iphone not in contact with me and my phone goes to lose mode.. how can I activate my iphone

    I Have Iphone 4...
    I had purchased from any store in second hand...
    and the third party whose this iphone not in contact with me and my iphone in lose mode..
    how can I activate my iphone?????Plz help me...
    <Email Edited By Host>

    Digant Mevada wrote:
    can possible to contact apple server manager tu know my id or anythig do..??
    There is nothing you can do except return iPhone & get your money back.
    You will not be able to use the iPhone.
    Apple will not help you.
    -> Find My iPhone Activation Lock: Removing a device from a previous owner’s account

  • I can no longer copy multiple files by clicking on the first file and holding the shift key and clicking on the last file. This worked until recently. I must have hit the wrong button at some point

    I have been able to copy multiple photos on my Mac Book Pro by selecting the first picture and then holding the shift key while I select the last picture. This highlights all the pictures and then I can use the copy command. Recently that ability to select multiple photos (or files) has stopped working. I can only guess that I hit a combination of buttons that caused this feature to stop working. Any ideas on how to get this working again.
    Thanks - Mike

    Your Template code is incomplete / corrupted. 
    That's why you can't edit it.
    Try opening your .dwt file in a plain text editor like NotePad.  Remove the editable regions from code.  Save.  Open in DW.
    You will need to SaveAs Template (same name as the one used by your child pages).  Add editable regions to match the ones in your child pages.  Save.
    Nancy O.

  • HT201303 Why do I have to put my debit card information when I sign in to download a free app from the App Store? This was not required before. It started happening like 2 weeks ago.

    Why do I have to put my debit card information when I sign in to download a free app from the App Store? This was not required before. It started happening like 2 weeks ago.

    i had to format my laptop
    You can reinstall Lion (Mac OS X) by pressing Command + R while booting your Mac. No need to re download Lion again.
    Help here >  OS X: About OS X Recovery

Maybe you are looking for

  • Soap sender communication channel is not shown in RWB

    Dear Experts, We had a recent installation of Xi and after that i m attemting a Soap to rfc syn scenario and i have created both the soap and rfc communication channel on a abap business system. and now im not able to see the Soap communication chann

  • SSIS List Adaptors for SharePoint 2013

    Was wondering if anyone is using the SSIS SharePoint List Adapters with SharePoint 2013 ?  We are interested in using them, but wasn't able to get information on support for SharePoint 2013 and the api's used (ASMX vs WCF web services).  https://sqls

  • Installation:CSynEvent::~CSynEvent: an error occured;: Bad file descriptor

    Hi, CSynEvent::~CSynEvent: an error occured;: Bad file descriptor I am getting the above error when I try installing SAP Netweaver 2004s SR1 on RedHat Linux 5.00 1. started ./sapinst in putty 2. started ./startInsGui.sh in HummingBird Please help. th

  • Upgrade 8.1.7

    Hi all I have to upgarde from 8.1.7 to 11.2.x.x. Can you please provide me the upgrade path. Thanks and Regards in advance Team.

  • C7280 All - in - One. Missing Ink On Black

    Hello.  My c7280 is acting up.  There are blank spots (empty lines) when black is printed.  Tried clean printhead tool, alignment tool and changing cartridges.  Nothing worked.  Any thoughts?  Thanks!