Error in the Package that contains the function

Hi, here is my package I get error - "PLS-00103: encountered the symbol"="when waiting for one of the following.

create or replace package pre_pkg
is

FUNCTION FUN_DATE (date a_date)
RETURN number;

end pre_pkg;

create or replace package body pre_pkg
is

function FUN_DATE (date a_date)
Return number
is

BEGIN

IF REGEXP_LIKE (a_date,'^ \d {1} | d {2} / {1} \d | d {2} / \d {4} \d{2}:\d{2}:\d{2}.\d{3}$ "")
AND (REGEXP_INSTR (a_date, "[AP] me, 1") = 0)
AND LENGTH (a_date) > 11
AND LENGTH (TRUNC (to_char (TO_TIMESTAMP (a_date, ' MM/DD/YYYY HH24: PUT. ")))) FF'), "YYYY"))) = 4)
THEN
back: = 0;

ELSIF REGEXP_LIKE(a_date,'^\d{1}|d{2}/\d{1}|d{2}/\d{4} \d{2}:\d{2}:\d{2} [AP]M$')
AND (REGEXP_INSTR(a_date,'[AP]M',1) > 0)
AND LENGTH (TRUNC (to_char (TO_DATE (a_date, ' MM/DD/YYYY HH: MIS AM' "),"YYYY"))) = 4)
THEN
back: = 0;

ELSIF REGEXP_LIKE(a_date,'^\d{1}|d{2}/\d{1}|d{2}/\d{4}$')
AND (REGEXP_INSTR (a_date, "[AP] me, 1") = 0)
AND LENGTH (TRIM (a_date)) < 11
AND LENGTH (TRUNC (to_char (TO_DATE(a_date,'MM/DD/YYYY'), 'YYYY'))) = 4)
THEN
back: = 0;
ON THE OTHER
back: = 1;

END IF;

EXCEPTION
WHILE OTHERS THEN
back: = 1;

END FUN_DATE;

END pre_pkg;
/

Can someone help me in this regard. I use oracle 10g.

All your RETURN statements should not have the: = sign. Just RETURN x;

Tags: Database

Similar Questions

  • That is producing this error: MuseJSAssert: error calling the function switch: Error: Invalid argument

    Website: http://lovehopemercy.org/

    In my navigation header by clicking on the option "VISIT US", that is to say generates this error: MuseJSAssert: error calling the function switch: error: invalid argument

    The other options do not work correctly. I get an error on export as HTML of MUSE, but the link works fine in other browsers. I download using Dreamweaver CC 2014. Reversal function works fine; it's the direct click of the menu item at the top that causes the problem.

    Did I miss a bad link or something that I can fix?

    Thanks in advance.

    Hello

    Could you please try some suggestions given here and see if it works for you.

    Error after update today: MuseJSAssert:Error call function argument: Error: Invalid selector

    Let me know if you have any question.

    Concerning

    Vivek

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not a function (assessment '$element .on this.')

    As usual I never update muse immediately incase of any question, however, a few days after the update (have not installed the update) I go on my site, this message appear out of no where "MuseJSAssert: error calling the function switch: TypeError: undefined is not a function (assessment ' this.)" ($element.sur ') ".

    So I decided to install the update and see, but the message would have still done appear then I wiped my server and download all my files to perhaps solve the problem of Javascript, and yet the message is still displayed.

    Note that this came from nowhere even tho I don't update my muse or uploaded to my FTP in days.

    My site entire is now totally useless after months in manufacturing.

    Can anyone help?

    The error on the sites is caused by having custom include the code that loads several different versions of jQuery. A single Web page should only have one.

    The redirect URL that fails intermittently. We actively work to diagnose and fix that, but which will not only cause these errors. Each Muse site contains a snippet of JavaScript that silently and automatically returns to use the version of jQuery that muse will be mailed to your host if the CA version is not available for some reason any.

    The problem is a number of customer sites have wrong incorporated several different versions of jQuery. When the CDN version is available, it is used. Unfortunately, when it is not available, an incompatible version loaded by the custom code or third-party widget is used and which translates these errors.

    Long term loading multiple versions of jQuery should be removed from the code or the third-party widgets on your site. In the short term, we will have solved CDN failure and these errors will disappear, but they return in the future if multiple copies of jQuery in the code no Adobe added to the page are not deleted.

  • Java Script alert: MuseJSAssert: error calling the function switch: security error?

    Hello

    I built a site of Muse and place a dashboard project animate the site. Here's the problem I have. When I saw in the browser through Muse all seem to work well. The problem is when I export to HTML. When I view the HTML file in Firefox, everything works fine. But when I discover the HTML in Chrome or Opera, I get the following error appears on the top of the browser: Java Script Alert: MuseJSAssert: error calling the function switch: security error: blocked a frame with original "null" access to a framework of cross-origin.

    Any ideas what is the cause? I noticed one thing, but if I click the button refresn the animation playback. The other thing I noticed, is that my full screen lide show is also affected by this error. He plays as the first image and the rest of the images are not displayed.

    Thank you for any suggestions to fix this.

    Hey all!

    I finally found how to solve this problem! At only took about 3 hours!

    Therefore, to do with the iframe code muse did for the lively edge file.

    If we take things from the outset, if everyone includes:

    1 publish a 'edge Animate Deployment Package (.oam)' dashboard animate

    2. in muse, file > Place > {exported .oem)

    3. put the file where you want

    4 muse export as HTML (file > export as HTML)

    5. your browser will open and display the error message, as shown above

    6 locate the HTML files and find "index.hml", or the page that your file hosted dashboard is on

    7. open it in Notepad, or editing program code. I use Adobe Edge Code CC

    8 remove the text: class = "animationContainer an_invi" (press ctrl + f and type to find the line)

    9 be sure to save and then reopen the Web page!

    10 smile for yourself and be raised

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not an object (evaluation of "a.rules")

    I have this error on my Web site every time that I go. It disappears when I refresh three times.

    "MuseJSAssert: error calling the function switch: TypeError: undefined is not an object (evaluation of"a.rules").

    I downloaded the site with Filezila.

    Please help, what's wrong here?

    Thank you

    Hi Barbara,

    The question began to happen after you downloaded using the latest version of Muse?

    If so, can you try to remove the old files of the web server and re-upload using Muse?

    Kind regards

    Akshay

  • JavaScript exception: error calling the function switch: TypeError: one is not defined

    Hello

    I received the following message: exception of JavaScript: error component the function switch: TypeError: one is not defined in the works of Firefox (Firefox only) IE and Chrome.

    I test a lot of things to ignore the error, but nothing work...

    DS why does not work which:

    1. <script type=' text/javascript '>
    2. ( function blockError()( ) { }
    3. return true ;
    4. }
    5. window. OnError = blockError
    6. < /script >


    the problem is not a problem of accommodation or other things, the problem is with prallax effect iframes, I know. (I had no sensible design)


    and I don't know if I had this problem before upgrading "responive muse..."


    Question: Chrome and IE maybe a car "ignore the function" to find errors javascrpit?


    So how can I delete this failure message ;)?

    A better approach would be to look for invalid code on the page. What is the URL? Each browser is a little different about how he reacts to different cases of invalid HTML. The error that you touch is a common result of having the incorrect HTML code inserted into your page via thearticle in the Page Properties or object > insert HTML code (or in rare cases, a third party widget).

  • JavaScript exception: error calling the function switch: TypeError: undefined is not an object (evaluation "jQuery.browser.msie") - HOW I ME get RID OF THIS

    Screen Shot 2015-12-12 at 16.54.47.pngScreen Shot 2015-12-12 at 17.01.45.png

    Hello

    I get these errors a lot lately on my sites of muse - it happens when I rename pages or change the navigation menu - I tried several times and this isn't to do with external plugins - this is a bug of muse - appears when my loading sites and also when you select a page in the navigation bar - in the past for a single page websites - I just copy the contents in memory - remove the rebonding and page - everything and it works again - of course, I don't want to do that with Web sites with multiple pages - in the past, anyone in the forum mentioned deleting a file of muse on the server to reset something - any who want to add to it or guide me to solve these problems, so I know what to do when they arrive

    Jay

    Don't know if it's the same thing, but share this discussion JavaScript exception: error calling the function of selection: [object error] after the last update of the software Adobe Muse.  I export the html files and load them on my server.  I replaced all the files.  Only happens in IE11 just in case it helps.

  • Get this error on pages MuseJSAssert: error calling the function switch: TypeError: $(...). museMenu is not a function. Have read and did what I could find to solve problems.

    Hi I keep getting the error MuseJSAssert: error calling the function switch: TypeError: $(...). museMenu is not a function on my Web site which is not published, but I am downloading in British Colombia through muse.

    I'm on a PC.

    I tried export to HTML and still have the same problems locally.

    I saw that someone had a problem with mailchimp forms in one of a previous post. I removed the a widget of external source? for reservation and it was always happening.

    I created a new project like this and downloaded BC site all the files again to see if she could make a difference but still have the error.

    It's my URL BCdraft - home

    I tried to look at the site in the section "console" (where you can see the code of pages) to see if I could see the error that people had already advised but I get nothing... maybe not completely published because?

    I have reloaded the site through the muse in British Colombia with "all files" and is always the same.

    Here are some pictures that can help...

    Once on the home page, it may come with the error immediately or not... If you choose to say the title of the FAQ

    choose faq.png

    You must then (or choose other titles until it is) have this error coming...

    error.png

    Note that the title you have previously chosen as 'FAQ' now as 'price '.

    Changes to old title pricing.png

    This title is for some time and seems strange appears again.

    Here is a picture of scripts/css in the admin of BC as I've seen that this can be a problem but I don't know if this is normal or not and how to fix...

    cpanel.png

    I had taken a break from building the site for about a month and I had added on changes, but not them uploaded to the server just left saved on my PC.

    In the hope of an easy solution; p

    See you soon,.

    Steve.

    I published BC... what I wanted to say is that I did not live.

    Export HTML was to check if the error occurred in the HTML files locally.

    It ended up being a code of the external widget that was causing the problem. With him removed the pages work fine. (I had removed what I thought of them while troubleshooting, but I forgot to a separate embedded image)

    Specifically, it is because it was a pop-up overlay widget made for reservations. When I put it to then start a new page in the tab it works now. Seems that muse has changed to something allowing overlays?

    My thanks to Neha in support

  • I exported a must of the site in HTML format and get the following error - MuseJSAssert: error calling the function switch: SecurityError: cannot read property 'documentLes' of 'HTMLIFrameElement': blocked a frame with original 'null '.

    I exported a must of the site in HTML format and get the following error - MuseJSAssert: error calling the function switch: SecurityError: cannot read property 'documentLes' of 'HTMLIFrameElement': blocked a frame with original 'null '.

    Does Anyon know what to do - how to fix this?

    Hello

    could you please take a look at this and see if that helps

    Java Script alert: MuseJSAssert: error calling the function switch: security error?

  • {Error: MuseJSAssert: error calling the function switch: SyntaxError: unexpected token}

    I built my site for the last days, and that 30 minutes, I click on the "Preview in browser" option to check my progress. {On one of these controls, as soon as the page loaded, I got the MuseJSAssert error message: error calling the function switch: SyntaxError: unexpected token} in a pop-up window and all my viewers stopped working. I tried to restart the browser, muse, my computer and even tried to save as a new website to use instead, and none of these options worked. Any ideas on how I can fix?

    Screen Shot 2014-11-10 at 2.12.21 PM.png

    If you have added a custom HTML/CSS/JS code using Page Properties > section Metadata or by using the function insert HTML code, try to remove and then preview.

    If the problem persists after removing all of the custom code, please send your .muse file (saved after removing all custom code) at [email protected]. Make sure that you mention the link to this topic in the subject of the e-mail.

    See you soon,.

    Vikas

  • MuseJSAssert: Error calling the function switch: ReferenceError: thiis is undefined

    I get this error once I have download my files on my hosting server. However, it exports very well in HTML and views very well when I publish.

    MuseJSAssert: Error calling the function switch: ReferenceError: thiis is undefined

    Hello

    I suggest you refer to the links below that has the solution for the similar problem.

    MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined.

    MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined

    Get ' museJSAssert: error by calling the selection function: reference error: Web Pro is not defined.

    Concerning

    Vivek

  • MuseJSAssert: Error calling the function switch: TypeError: $(...). toBrowserWidth is not a function

    Hey,.

    I made a site with Muse on April 2014 and now (September 2014) I got the latest version of Adobe Muse, updated the site, send to an external FTP client directly from Muse, and now my client told me that he cannot see the site of Mozilla Firefox from his PC. It is said that MuseJSAssert: error calling the function switch: TypeError: $(...). toBrowserWidth is not a function. He can see the site in Internet Explorer. And it works with my Firefox, Chrome and Safari browsers on mac.

    I have found some answers and tried: I added / of the museutils.js of the file so that it looks like this: {url:"/scripts/pie.js... and (" / MuseJSassert:... instead of: {url: "scripts/pie.js... and (' MuseJSassert:...") "}")}

    Done with the code in parentheses editor and send the files to a remote server with Filezilla.

    Now, it displays error on my browsers as well, he said: some of the files on the server may be missing or incorrect. After you click OK, the site seems normal.

    I also deleted the site distance and exported directly from Muse again. Now it looks fine on my browser again, but not customers.

    Any help?

    It's frustrating because I'm not a coder (I chose the Muse of reason) and now I don't know what to do...

    I checked out the site on my end, but can't reproduce the same error:

    http://take.Ms/dAPJ0

    Please try to delete browser cookies or try to reset the preferences.

    Thank you

    Sanjit

  • MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment '$('.browser_width').toBrowserWidth ()')

    Hello!!

    I m having this alert in my exploring when I try to open my site:

    MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment '$('.browser_width').toBrowserWidth ()')

    the site is www.tmed-mexico.com

    and opening belongs to another site that I designed too.

    What can I do? The peak of the shipment.

    screenshot.png

    I think you should contact your FTP/Web hosting provider and get more clarity on how your installation sites (they are both with the same hosting provider). You have two sites hosted on the same server - probably in two different files - that could be cause of all this confusion.

    In addition to the FTP server, username and password, you must also have a folder location to load your site content.

    See you soon,.

    Vikas

  • MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment ')

    Help, how do I fix this bug?

    MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment ' $('#u69').registerPositionScrollEffect ({"enterSpeedY": 1, "exitSpeedY": "offset" 0,:-0.04999 999999999005})')

    and I also have this error:

    MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment '$('.browser_width').toBrowserWidth ()')

    Help please help

    The most common cause of JavaScript errors on a page of Muse is missing from server or .js files or other files on the server, not all human beings of the backup of files .js version of Muse. If you use an external FTP client, you must re - download all the files and folders every time that a site is implemented using an updated version of Muse (since the code generated by changes of the Muse of liberation to free to improve page load performance, support new features, new versions of browsers or devices (, etc. of the address, etc.).

    The second most often the cause of errors JavaScript on a page Muse is bug embed code and/or include code that is in conflict with the JavaScript code used by Muse. Plan to temporarily remove your embed code to see if the problem goes away and so isolate the cause.

    And, of course, it is possible, a JavaScript error is caused by a bug in Muse or a bug in an update of the newly introduced browser, but frankly, given the level of tests that are placed in a statement of those who tend to be very rare and when they do occur, they are usually very quickly addressed by an update of Muse.

  • MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined.

    I started Muse today and he said there was an update available. I installed and then made a few small changes on my 5 page site. Then I exported the HTML code and uploaded to my server.

    But now when I try to navigate the site in Chrome, I get the following error message:

    MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined.

    The only changes I made were adding text to a few pages and adding metadata to each page information and displaying HTML exported locally (before transfer) everything behaves as it should... an error message.

    Any ideas why its doing this? or, more importantly, any suggestions on how to stop it from doing this? He did not have that yesterday before get me these small changes.

    Here's the URL: www.gardensbytheseaursery.com

    Thanks in advance.

    Jake

    This error occurs if all of the files for the site that we downloaded.

    The 2.0 update includes numerous improvements in the generated HTML, CSS and JavaScript, so while you can directly changing only some pages, if you are using an external FTP client all the exported files, and the files must be downloaded. (The new built-in FTP support automatically only generates and download the files that have changed since the previous download.)

  • MuseJSAssert: Error calling the function switch: TypeError: D.split is not a function

    I have this problem in my site:

    MuseJSAssert: Error calling the function switch: TypeError: D.split is not a function

    error-2.jpg

    and it's the loading error, please help!

    http://musecdn2.BusinessCatalyst.com/scripts/4.0/jQuery-1.8.3.min.js

    error-1.jpg

    I think it's solved now, please check the response of Zak here:

    https://forums.Adobe.com/thread/1879186

    Thank you

    Sanjit

Maybe you are looking for

  • The model that is hidden on the desktop computer. Cannot remove

    I've updated my Mac Mini this morning, and somehow I'm done with a model hidden on my home screen. I tried to restart and it won't go away. I have nothing open right now so it is not a program. Can someone tell me how to get rid of it. The screenshot

  • Freezing on several applications

    I get the spinning wheel of death every time I try to use Safari and save documents. This just started today.  I did the EtreCheck I saw on another thread recommended, and here are my results, just in case where it is useful. EtreCheck version: 2.9.1

  • LAN and WLan doesn't work on Satellite L40 - 18W

    Hi all I have TOSHIBA Satellite L40 - 18W and my 1 - wireless problem not knitting & wired lan does not work.I download driver and everything is ok, but it doesn't work (when I search by wireless I can't find any network.) My router works fine) Pleas

  • EliteBook 8760w: keys does not not on Elitebook8760w function

    Hello I just did a clean install on my HP Elitebook 8760w and I can't install the driver appropriate for the FN (function) keys. The download page is incredibly slow, so download the drivers from the Web site is a huge pain at first. However please p

  • ProBook 4530 s: WIFI adapters.

    My laptop 4530 s has an Atheros WIFI card installed. The maximum download speed is about 50 MB. Can it be replaced with an adapter Intel N-6230. The two adapters are listed in the service manual for this computer.