How can I correct this error:  Error(24,7): PLS-00103:

I have the following Trigger
create or replace
TRIGGER "CODE_BARRAS"
before insert or update of CODIGO_BARRAS on PAGOS FOR EACH ROW
begin
IF INSERTING THEN
IF LENGTH(:NEW.CODIGO_BARRAS) = 66 THEN
:NEW.EAN := SUBSTR(:NEW.CODIGO_BARRAS, 4,13);
:NEW.CODIGO_CUENTA := SUBSTR(:NEW.CODIGO_BARRAS, 21,22);
:NEW.NRO_DOCUMENTO := 0;
:NEW.VALOR_PAGO := SUBSTR(:NEW.CODIGO_BARRAS, 47,10);
:NEW.FECHA_PAGO := TO_CHAR(SYSDATE,'YYYYMMDD');
:NEW.NUM_LOTE := NUM_LOTE();
ELSIF LENGTH(:NEW.CODIGO_BARRAS) = 62 THEN
:NEW.EAN := SUBSTR(:NEW.CODIGO_BARRAS, 4,13);
:NEW.CODIGO_CUENTA := SUBSTR(:NEW.CODIGO_BARRAS, 21,9);
:NEW.NRO_DOCUMENTO := SUBSTR(:NEW.CODIGO_BARRAS, 30,9);
:NEW.VALOR_PAGO := SUBSTR(:NEW.CODIGO_BARRAS, 43,10);
:NEW.FECHA_PAGO := TO_CHAR(SYSDATE,'YYYYMMDD');
:NEW.NUM_LOTE := NUM_LOTE();
END IF;
END IF;
END IF;
EXCEPTION
when no_data_found then
DBMS_OUTPUT.PUT_LINE(' NO HAY INFORMACION, CODIGO ERRADO');
end;
Which generates the following error me
Error(24,7): PLS-00103: Se ha encontrado el símbolo "IF" cuando se esperaba uno de los siguientes: ; <an identifier> <a double-quoted delimited-identifier>
how do I correct the tigger?_
I am grateful for your help..._

Hi Rey-user6318244!
You may delete the last END IF; to correct your trigger
create or replace
TRIGGER "CODE_BARRAS"
before insert or update of CODIGO_BARRAS on PAGOS FOR EACH ROW
begin
IF INSERTING THEN
IF LENGTH(:NEW.CODIGO_BARRAS) = 66 THEN
:NEW.EAN := SUBSTR(:NEW.CODIGO_BARRAS, 4,13);
:NEW.CODIGO_CUENTA := SUBSTR(:NEW.CODIGO_BARRAS, 21,22);
:NEW.NRO_DOCUMENTO := 0;
:NEW.VALOR_PAGO := SUBSTR(:NEW.CODIGO_BARRAS, 47,10);
:NEW.FECHA_PAGO := TO_CHAR(SYSDATE,'YYYYMMDD');
:NEW.NUM_LOTE := NUM_LOTE();
ELSIF LENGTH(:NEW.CODIGO_BARRAS) = 62 THEN
:NEW.EAN := SUBSTR(:NEW.CODIGO_BARRAS, 4,13);
:NEW.CODIGO_CUENTA := SUBSTR(:NEW.CODIGO_BARRAS, 21,9);
:NEW.NRO_DOCUMENTO := SUBSTR(:NEW.CODIGO_BARRAS, 30,9);
:NEW.VALOR_PAGO := SUBSTR(:NEW.CODIGO_BARRAS, 43,10);
:NEW.FECHA_PAGO := TO_CHAR(SYSDATE,'YYYYMMDD');
:NEW.NUM_LOTE := NUM_LOTE();
END IF;
END IF;
EXCEPTION
when no_data_found then
DBMS_OUTPUT.PUT_LINE(' NO HAY INFORMACION, CODIGO ERRADO');
end;yours sincerely
Florian W.
P.S. Please enclose your code into to get formated output. Thanks a lot!
Edited by: Florian W. on 23.02.2009 16:02                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • When attempting to sync my ipod I get an error OxE8004002 how can I correct this error

    When attempting to sync my ipod to my pc, I get an error OxE8004002; how can I correct this error?
    It is just since I uploaded the 6.1.5.

    iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting

  • I am trying to update itunes and keep getting error code 2324 how can i correct this

    I am trying to update itunes on my laptop and keep getting error message 2324. How can I correct this.
    I have tried to reinstall but with no luck

    Let's try the fixit from the following Microsoft document with that one:
    Fix problems with programs that can't be installed or uninstalled

  • When I try to connect to iCloud, it says there is a server error and does not log me in. This happens every time. How can I circumvent this server error?

    When I try to connect to iCloud, it says there is a server error and does not log me in. This happens every time. How can I circumvent this server error?

    Try restarting your computer and your router.
    If there is a specific error code, take a look at this article.
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694

  • HT1539 I entered the download code for"THE HOST"but instead I got a copy of"Spring Breakers".How can I correct this?  I called a friend that has"Spring Breakers"and the codes are not even remotely alike!!! I did not want to download what I received!!What'

    I entered the correct download code for "THE HOST" but instead got a copy of "SPRING BREAKERS"! All of the prompts identified it as "The Host" but the final product was "Spring Breakers"! I called a friend who has a copy of that movie and the download codes are not even remotely alike!! How can I correct this error? I 'd rather have SyFy that a bubblegum teenager flick!! HELP ME, PLEASE?!

    Hello Old Dogg new tricks,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best of luck,
    Mario

  • When I send e-mails from my iPad the wrong last name appears, even though I have updated my Apple details. How can I correct this ?

    When I send e mails from my iPad my previous last name still appears, even though I have changed it on my Apple a/c.
    How can I correct this, please ?

    Try this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
     Cheers, Tom

  • My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    If you are sure that you have sound in other apps - and if you can still hear keyboard clicks and get notifications, then system sounds are not muted. Try this and see if it works.
    Close all apps completely and reboot the iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • When I download a CD to iTunes, some CD's appear as separate albums. How can I correct this?

    When I download a CD to iTunes, some CD's appear as separate albums. How can I correct this?
    for some reason iTunes appears to believe some tracts are from a separate album. For instance, one recently released Rod Stewart CD HAS 8 tracts on one album and the remaining two tracts on two separate albums, all albums are called the correct album name?

    If your CD has tracks with different artists, or if there are differences in how the artist field is filled in for the different tracks, then you can fix this by identifying the disc as a 'compilation' CD.
    Select all of the tracks in the CD, then 'get info' (control-I), and go to 'Options'. Select 'yes' for 'Part of a compilation'. That should fix the problem.

  • My husband and I both have an i phone. When I send him a message it sends the message to myself as well - the same happens when he sends to me. How can we correct this?

    My husband and I both have an i phone. When I send him a message it also sends it back to my phone. The same happens when he messages me. His messages are also picked up on my i pad.How can we correct this?

    Are you both using the same Apple ID?
    Also check Settings > Messages > Send & Receive > make sure it only contains your unique phone number and e-mail address de-select those entries belonging to your husband.
    Do the same on his phone (de-select yours)

  • My gps is not working.  I cannot use turn-by-turn navigation in google maps.  I downloaded a GPS test app and it showed my phone is not locking on any satellites.  How can I correct this?

    My gps is not working.  I cannot use turn-by-turn navigation in google maps.  I downloaded a GPS test app and it showed my phone is not locking on any satellites.  How can I correct this?

    We certainly want to make sure you get the most out of the GPS, wplaxico! Was this tested primarily outdoors? When did this begin? Any other recent apps of updates installed when this started?
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • My iPhone 4s will not back-up because it is over capacity due to a lg. amt. of "other" data.  I don't have a lot of other data however.  How can I correct this?

    My iPhone 4S will not do a back-up because it is over it's capacity due to an excessive amount of "other" data.  However I actually have very little other data.  How can I correct this.  As it is now I can't even take a picture!  Thanks!

    Create a manual backup in iTunes, then restore it, restoring to your iTunes backup at the end.  This will usually correct this.  If it doesn't, then the problem is contained in the backup and you'll have to save as much of your data as you can, then restore it as new without using your backupo.

  • When I click on a picture or map in i.e. Kijiji real estate pages, Firefox opens it all crunched to the right side of the page. How can I correct this?

    When I click on a picture or map in i.e. Kijiji real estate pages, Firefox opens it all crunched to the right side of the page. How can I correct this?
    For instance I view an apartment ad which has various pictures attached. It says click on the pictures to see an enlarged version. FF opens the page however most of the page is blank and the picture appears to be pushed to the right side of the page and shows as if it has been scrunched agains the right side not showing the whole picture.
    What Can I do to correct this?

    I see that you have increased some font sizes considerably.
    * font.size.fixed.x-western: 20
    * font.size.variable.x-western: 22
    This can effect margins when the website specifies these as em values and cause content to shift.
    If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow pages to choose their own fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but to use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    You can use the NoSquint extension to set font size (text/page zoom) and text color on web pages.
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
    Note that your System Details List shows multiple Flash plugins.
    * Shockwave Flash 16.0 r0
    *Shockwave Flash 12.0 r0
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
    Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You can delete this user.js and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • I've recently installed IOS 7.0.3. With the latest automatic upgrade of First Class yesterday the textfields for loggning in disappears upworth. How can I correct this.

    I've recently installed IOS 7.0.3. on my Ipad4. With the latest automatic upgrade of First Class yesterday the textfields for loggning in disappears upworth. How can I correct this.

    HALF-SOLUTION!!!! (Restoring only, basically.)
    Restore the phone via iCloud.com
    1. Go to iCloud.com , and log in.
    2. If you want a back up, make sure you back it up to itunes now!
    3. Now back to iCloud.com - select the device you want. Press "Erase iPhone" (or iPad, iPod whatever).
    You will go through a few steps. Skip the phone number and leave a message, as it isn't lost. Your phone will be restored. No need for plugging in!
    4. IMPORTANT: Just set it up as usual. Language, country blah. But then you'll get to a step where it says something like "This iPhone was erased with iCloud. Log in with the Apple ID you used to erase it". In this case, my Dad's. So please do that. Later on, the phone will ask for an Apple ID to be used for the phone. I put my own one as I didn't want my dads!!!! Lol....
    5. Plug into iTunes and back-up.
    As for updating, I'm still on 7.0.2,,, it ain't working on my phone or itunes!! :(

  • Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Images appear fine in Photoshop cs6 and cc, but print too dark, and also show too dark in Windows picture viewer. How can I correct this? Is this a Photoshop setting issue or what?

    Images appear fine in Photoshop cs6 and cc, but print too dark, and also show too dark in Windows picture viewer. How can I correct this? Is this a Photoshop setting issue or what?

    Ok, look at your files in Photoshop. What is the profile assigned to them? You can find this out by going to the Status bar at the bottom, clicking on the right-pointing triangle and choosing document Profile from the list.
    Then in Windows, go to your Control Panel > Color Management and add sRGB (if it isn't there) and select it as your default profile.
    I hope that will work.

  • When i try to play music on itunes it says the original file cant be found. I have music on exyernal dive and it is working . How can i correct this

    When i try to play music on itunes it says the original file cant be found. I have music on exyernal dive and it is working . How can i correct this?

    See if you have most of the songs with 'Exclamation' symbol precede the name under your music library.
    If so, double click a song with ! mark on side, you will be given an option to locate the file where the song is held. Select "locate" and direct it to your External Drive folder / file where the song is and open it.
    iTunes then will give you the option to use this process to update all of your library.  OK that as this will fix all automatically instead of doing them one by one.

Maybe you are looking for

  • Onclick and doubleclick event not working in CC

    hi..  onclick and doubleclick event not working in CC..  how to get these events to work? Please advise anyone. Thanks alot!

  • Need some pointers getting video from iPhone 4S to iMovie09

    Based on my research in this forum either of these methods should work, but they're not working for me.  If you have any advice on debugging the problem it would be greatly appreciated! I took video with the 4S and see that it's in the Camera Roll. F

  • ME_READ_PO_FOR_PRINTING - Deleted Items

    Hi, I am using the FM ME_READ_PO_FOR_PRINTING . If i pass 1 to cx_druvo , I am getting all the items displayed in my Form. But if an item is deleted, that item does not get read with cx_druvo = 1. For that I need to pass cx_druvo = 2. But with cx_dru

  • Oracle Forms Developer 6i Release 2 for NT

    Hello, I have a couple of questions. I just downloaded the Oracle9iAS Forms Services and Oracle Forms Developer 6i Release 2 for NT. Is it a trial version? Does it expire after a certain time. Or is it a limited feature version. I couldn't find any i

  • Why does iTunes become unresponsive?

    Once I start iTunes,it freezes up and becomes unresponsive. I have uninstalled and reinstalled several times with the same unresponsive result. What can I do? I can't sync my iPod touch. I am using Windows XP.