What's wrong with my script?

Can someone please look to see what's wrong with my
navigation bar here:
http://www.simple-it.us/index2.html.
The links don't work.
At the top of the page you can download my files.
If you figure it out, please tell me in laymen's terms. Flash
is NOT my forte!
Thanks!
Michelle

Click on the top frame and open the actions window:
btn_home.onRelease = function() {
btn_home.getURL("");
The getURL needs a url inside of the quotes - something like
index.html

Similar Messages

  • What's Wrong With This Script

    A couple of years ago I was using an AppleScript file (thanks to someone else's assistance) but it no longer works.
    I have an extra internal drive, that is partitioned, and used for sequential daily backups. When the computer starts up, of course all the drives mount - but I prefer that they are off the desktop until neded.
    Rather than selecting the volumes and then dragging to the Trash, I found it easier to have a script run at startup which then asks if the drives should be unmounted.
    Things were great - until I upgraded to Tiger.
    I am hoping that someone can tell me what's wrong with the script so that I can start using it again. As you can probably tell, I don't have any experience in AppleScript. At the moment the script runs - it presents the dialogue box - and then just ends after a response, but the drives do not unmount.
    The partitions on the drive are called Monday Tuesday Wednesday Thursday Saturday
    The existing script is as follows:
    on run
    display dialog "Unmount All Backup Drives?" buttons {"Yes", "No"} default button 1
    set x to button returned of result
    if x is "Yes" then tell application "Finder" to eject "Monday"
    end run

    This relates to another (current) thread in AppleScript discussions.
    Your script works with Panther as that operating system allows INTERNAL drives to be "ejected" (and, if you eject one volume on a partitioned drive, all the volumes on that drive are ejected -- this explains why ejecting "Monday" actually ejected Monday through Friday).
    With Tiger, you would find that your script works exactly as expected with EXTERNAL drives, but INTERNAL drives need a different approach.
    To get behavior exactly as you had before, try this script:
    --BEGINNING
    display dialog "Unmount All Backup Drives?" buttons {"Yes", "No"} default button 1
    set x to button returned of result
    if x is "Yes" then set driveName to "Monday"
    set driveInfo to do shell script "diskutil list | grep \"" & driveName & "\""
    set driveID to last word of driveInfo
    do shell script "diskutil unmountDisk " & driveID & ""
    --END
    For reasons that aren't entirely clear to me, this approach, while it works reliably, is very slow -- on my fast machine, the unmount process takes nearly 20 seconds. (Using UNIX directly in Terminal, with the same command, is very quick.) (In the AS, the delay occurs in second "do shell script.")
    Another puzzle that has cropped up is described in the related thread "Applescript to Mount/Unmount a Disk . . ." (current). While the above approach works for Justin Surpless, it often prompts for a password -- unacceptable in his application. I've not seen this on my PPC (and I tried 10.4.7, which he's using); his may be an Intel Mac, if that could be the difference.

  • What is Wrong With This Script!?

    I've been trying to write a script to calculate the odds of getting a particular number when rolling a pair of 10-sided dice and adding them together.  The ruby script I've been trying to write simply does not work.  I don't know if I'm overlooking something or stumbled into a bug with the ruby interpreter.  Could someone take a look at it and tell me if anything's wrong?
    Here's the offending section of the script:
    $ary = Array.new(20, 0)
    $x, $y, $z = 0, 0, 0
    10.times do
    $x += 1
    10.times do
    $y += 1
    $z = $x + $y
    $ary[$z] += 1 #This is the line causing problems
    end
    end
    And here's the error message I'm getting:
    Dice.rb:9: undefined method `+' for nil:NilClass (NoMethodError)
    from Dice.rb:6:in `times'
    from Dice.rb:6
    from Dice.rb:4:in `times'
    from Dice.rb:4

    dtw wrote:You're also "wasting" 2 elements in your array as you will never get z = 0 or 1.  If these is an academic exercise i.e. you are doing it for practice not for purpose, you might consider creating a hash instead of an array with keys 2 through 20 to refer to each result.
    I was doing it for a purpose, but wasted elements are not a concern for me since this was just a script I would be using only once.  I'm in the process of designing a tabletop RPG.  One of the mechanics in the game is the use of 2d10, which are rolled for resolving actions.  I needed to know the odds, as they would affect the game mechanics.

  • What is wrong with this script (zlogin)

    I took this script directly from the Trusted Extensions Developers Guide and it's not working. The problem is in the syntax for the if() inside the nawk program, but the correct syntax is eluding me. I verified that both $4 and $zonepath are set properly, but for some reason they never compare to be equal even when they are so zlogin is never called. If I put an else and have it also print $2 then as you might guess zlogin is executed for every zone. Thanks for any tips!!
    #!/sbin/sh
    # Run the specified command in the zone that matches the specified label
    # Usage:
    # runwlabel "my-label" my-program
    [ ! -x /usr/sbin/zoneadm ] && exit 0 # SUNWzoneu not installed
    PATH=/usr/sbin:/usr/bin; export PATH
    # Get the zone path associated with the "my-label" zone
    # Remove the trailing "/root"
    zonepath=`getzonepath "$1" | sed -e 's/\/root$//'`
    # echo zonepath is ${zonepath}
    progname="$2"
    # echo progname is ${progname}
    # Find the zone name that is associated with this zone path
       for zone in `zoneadm list -pi | nawk -F: -v zonepath=${zonepath} '{
        # The problem is in this if()
        if ("$4" == "${zonepath}")
            print $2
       }'`; do
            # Run the specified command in the matching zone
            zlogin ${zone} ${progname}
        done
    exit

    if ("$4" == "${zonepath}")
    this if statement is inside nawk, therefore it may be referenceing nawks $4 variable instead of the shell scripts, its all about scope. Maybe try to assign $test = $4, and then use $test in the if statement.

  • What is wrong with my script.

    Im creatin' a script for nagios. It needs to warn me when the file is older then 24hr and show critical if the file does not exsist.
    $age="1440"
    $file=’c:\temp\’
    $filename='CGO.csv'
    $time = (get-childitem $file\$filename).LastWriteTime
    if(Test-Path $file\$filename)
    echo “OK status – file is OK”
    exit 0 #Return OK status
    ElseIf ($time -lt (get-date).AddMinutes(-$age))
    echo "WARNING status - $filename is older than 24 hours. Last write was $time"
    exit 1 #returns warning status
    else
    echo “CRITICAL status – file $filename doesn’t exist”
    exit 2 #returns critical status
    It is not working. Can anyone help me out.

    Try{   $MaxAgeMinutes =[int]$args[2]
    Catch{
         Write-Error $_
         exit
    # Process Limit
    $Limit = (Get-Date).AddMinutes(-$MaxAgeMinutes)
    ¯\_(ツ)_/¯

  • Anyone from ORACLE knows what's wrong with oidspadi.sh

    Hi,
    I downloaded the Cygwin and am trying to run oidspadi.sh it keeps giving the following error.
    $ ./oidspadi.sh
    : command not found 28:
    : command not found 38:
    : command not found 43:
    : command not found 47:
    : command not found 51:
    : command not found 58:
    : command not found 59:
    : command not found 60: clear
      OID Active Directory Plug-in Configuration
    Please make sure Database and OID are up and running.
    : command not found 67:
    : command not found 70:
    ./oidspadi.sh: line 103: syntax error near unexpected token `fi'
    '/oidspadi.sh: line 103: `      fi
    [//code]
    I did set my ORACLE_HOME and also am able to connect to OID but don't what's wrong with the script. I am using 10.1.2.0.2 on windows.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I found out the resolution please see Note:403469.1.
    Thanks

  • TA21328 every time I use Safari I receive a message that says Safari is no longer responding because of a script problem with the website and I must press "continue" for the page to continue. This happens with every website I go to.  What is wrong with my

    When using Safari I have begun to notice this box appearing as I try to reach any website:  "Safari is no longer responding because of a script on the webpage and then it lists what ever web page I have tried to reach.  It then asks me if I want to "stop" the script or allow it to continue.  I must "continue" it in order to reach my web page/  If I press "stop" it just keeps coming back and back and I can't continue.  What is wrong with my computer or Sarari or both?

    chick --
    Does it mention "Slow Script?

  • Script debug - what's wrong with this picture?

    I wrote a script a while back which shrinks and saves out images in png format. Nothing fancy. It works fine. I am happy. However yesterday, I discovered that it baulked at a certain file. Initally I thought it was a problem with the script (and that may be the case - i'm still new to scripting) but it worked with every other image I've thrown at it. Ergo it must be something wrong with the image.
    Now here's the thing: I also noticed that adding a new layer underneath the existing single layer and then merging down allowed the script to work fine. So what is wrong with the inital image before it's had a new layer added and merged? Or what does adding and merging do to an image do to fix as I can't see any visual difference?
    Here is the bare bones of the script:
    // Set filePath and fileName to source path
    filePath = "C:\\temp" + "/" + 'debugme' + '.png';
    // save out the image
    var pngFile = new File(filePath);
    pngSaveOptions = new PNGSaveOptions();
    pngSaveOptions.embedColorProfile = true;
    pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    pngSaveOptions.matte = MatteType.NONE;
    pngSaveOptions.quality = 1;
    pngSaveOptions.PNG8 = false;
    pngSaveOptions.transparency = true;
    activeDocument.saveAs(pngFile, pngSaveOptions, false, Extension.LOWERCASE);
    I would include the two psds (one that works and the one that doesn't) only this forum doesn''t seem to allow .psd files - and saving them out in another format is the whole problem.

    A quick test and this resolved the issue for me…
    #target photoshop
    filePath = '~/Desktop/Testing.png';
    // save out the image
    var pngFile = new File(filePath);
    pngSaveOptions = new PNGSaveOptions();
    pngSaveOptions.embedColorProfile = true;
    pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    pngSaveOptions.matte = MatteType.NONE;
    pngSaveOptions.quality = 1;
    pngSaveOptions.PNG8 = false;
    pngSaveOptions.transparency = true;
    clearLayerStyle();
    activeDocument.saveAs(pngFile, pngSaveOptions, false, Extension.LOWERCASE);
    function clearLayerStyle() {
         function cTID(s) { return app.charIDToTypeID(s); };
         function sTID(s) { return app.stringIDToTypeID(s); };
              var desc01 = new ActionDescriptor();
              var ref01 = new ActionReference();
              ref01.putEnumerated( cTID('Lyr '), cTID('Ordn'), cTID('Trgt') );
              desc01.putReference( cTID('null'), ref01 );
         executeAction( sTID('disableLayerStyle'), desc01, DialogModes.NO );

  • Help! What's wrong with my "stop" script?

    Hello,
    I was trying to use the following stop script to stop the wls8.1 server:
    echo "Stopping WebLogic for Domain"
    rm -f $PIDFILE
    java weblogic.Admin -url localhost:7003 FORCESHUTDOWN
    But got the following error:
    $ ./stop.sh
    Stopping WebLogic for Domain
    Cannot shutdown a server when using a BootIdentify file AND running in Production
    mode
    What's wrong with it? How should I modify my stop script and have it work?
    Thanks a lot
    Qi

    Qi wrote:
    Hello,
    I was trying to use the following stop script to stop the wls8.1 server:
    echo "Stopping WebLogic for Domain"
    rm -f $PIDFILE
    java weblogic.Admin -url localhost:7003 FORCESHUTDOWN
    But got the following error:
    $ ./stop.sh
    Stopping WebLogic for Domain
    Cannot shutdown a server when using a BootIdentify file AND running in Production
    mode
    What's wrong with it? How should I modify my stop script and have it work?
    Thanks a lot
    Qi
    Qi,
    You can try passing in -username and -password arguments. If you don't
    like the idea of storing username and password in plain text in a
    script, as well you shouldn't ;), you can create a user config file.

  • What'wrong with my script?

    I'm new in scripting in AE, here is a script I've got to use in my animation, but it doesn't work. Could anubody tell me what's wrong with it, and how to apply it in a right way? Thank you!
    freq = 1.0
    squashFreq = 4.0
    decay = 5.0
    masterDecay = 0.4
    amplitude = 25
    delay = 1/(freq*4);
    if (time > delay){
      bounce = Math.sin(squashFreq*time*2*Math.PI);
      bounceDecay = Math.exp(decay*((time - delay)%(freq/2)));
      overalldecay = Math.exp(masterdecay*(time - delay));
      x = scale[0] + amplitude*bounce/BounceDecay/overallDecay;
      y = scale[0]*scale(1)/x;
      [x,y]
    }else{
      scale

    It didn't work because it had quite a few mistakes in it (i.e. BounceDelay instead of bounceDelay and scale(1) instead of scale[1]). It's an expression you need to apply to the Scale property of a layer. Here's a fixed version.
    freq = 1.0
    squashFreq = 4.0
    decay = 5.0
    masterDecay = 0.4
    amplitude = 25
    delay = 1/(freq*4);
    if (time > delay){
      bounce = Math.sin(squashFreq*time*2*Math.PI);
      bounceDecay = Math.exp(decay*((time - delay)%(freq/2)));
      overallDecay = Math.exp(masterDecay*(time - delay));
      x = scale[0] + amplitude*bounce/bounceDecay/overallDecay;
      y = scale[0]*scale[1]/x;
      [x,y]
    }else{
      scale;

  • What is wrong with as3

    this is not a question about 'how i do X'. is rather a 'discussion' (flame or whatever, but to defend or argue about aspects, not people) about 'what is wrong with as3' and what aspects whould be taken into consideration for updates. right now i am using as3, and since i paid for this license, i choose this tool over some alternatives and i am using it to do stuff for other people who pay me to do it, i think it can be helpful for all of us if some actions are started in the right direction. i have already posted about 'all people in adobe are dumbasses that do not know how to make a scripting tool and are messing up my work', but i was pissed at the time (i still am pissed) but i believe this is not the right aproach. instead, if this goes to the right people in adobe, we all may get something in the future, like better and easier todo apps and web presentations.
    pre: not only about the as3 specification, but COMPLY with the specification that you set. for example, some time ago there were problems with matrix transforms. this was corrected later with a patch. but this means it is not even doing what is is supposed to do
    1. scriptable masks and movement, sprites and child sprites: there is a sprite with a mask, the mask is a shape drawn via script, something like
    somemask=new shape();
    somemask.graphics.beginfill();
    (...etc)
    somesprite.mask=somemask;
    just like that. now add some child sprites to 'somesprite', and make 'somesprite' move, scale and rotate. there you will have something like a kaleidoscope, but not what you expected to do with your script. as the child sprites move in the parent mask, you will see that the child sprites appear or dissapear kind of randomly, and if the child sprites are textfields, it may be that the text is rendered outside the mask, or partially rendered outside the mask (as in only part of the text), rendered with the wrongf rotation or in the wrong place. some child sprites are clipped correctly, some dissapear totally when only a part should dissapear (clipped) etc.
    way around: have not tried it yet, but i have the impression that bitmaps have different criteria for clipping, so i am thinking of trying this: appli an empty filter (a filter with params so it does not have any effect on the sprite or in the textfield) so the sprite is rendered as bitmap before doing anything else with it. as i said, i have not done it yet, but it may be a way around this problem, to avoid all this inconsistency with clipping
    1-b. inconsistency between hierarchy and coordinates, specially masks: you apply a mask to a sprite, yet the sprite has a set of coordinates (so 'x' in the sprite means an x relative to its container), yet the mask applied to the very same sprite, as another reference as reference for coordinates (like the stage)
    2. painting via script: in any other languaje, in any other situation, something like:
    beginFill(params);
    (...stuff 1)
    endFill();
    beginFill(params);
    (...stuff 2)
    endFill();
    (...etc)
    means: render region of block 1, then render region of block 2 etc, and no matter what, it should be consistent, since there is noplace for ambiguity. if you read it, you may think what that means, even if you dont run it you may have an idea of the picture you want to draw, but not with as3. as3 somehow manages to screw something that simple, and mixes all the blocks, and somehow uses the boundaries of one block as boundaries for other block. is like all blocks are dumped into whatever, and then uses all lines defined into it as boundaries for a unique block. it changes all boundaries and generates inconsistency between what is shown and redraw regions of the resulting picture, like lines that go to the end of the screen and then dont go away in the next frames, even tough the beginfill endfill block should prevent it
    3. event flow: i dont know what was the policy behind as3 event flow design. it is in no way similar or an extension to previous event flow, neither with any event flow in any other plattform. i dont know how most people start with as3; in my case, i unpacked, installed and when i tried to do something with what i already knew i could not, so i started reading the as3 docs, and since is like 800 pages long, i just read the basics and the rest i would 'wing it'. in the part of the event flow, there was something about bubbling and stuff, it was not clear at all and when i tried to do what is was said in the documentation (like preventing events to 'bubble', as is called in the documentation), i could not see any effect but i could see it was a mess. flash is not the only thing out there to work with pictures or to work with mouse events, but is the only one that deals with things like 'target' and 'currentTarget'. my first experience on needing this was when i was dealing with my own event handlers (so the only thing that had control over mouse was the stage, and i would admin everything via script). there were events generated everywhere, the stage got events that were not genrated directly over the stage, but got there not with stage coordinates but the coordinates relative to the sprite that generated the event. so if i hover the mopuse over the stage, and the stage has some things on it how does it work? i get multiple event calls, like it was hovering multiple times over the stage in a single frame, but in each call with different coordinates? and what if i set all child sprites as mouseenabled=false or compare like 'if (event.target != event.currenttarget)', what if i move the mouse over a child, does it prevent the move mouse event at all? or does it filter only the event call with only stage coordinates? in my case, every time i move over another clip (with mouseenabled = true), the stage gets it as 'mouse up', even tough there was never a mouse release, what the hell? do even the people at adobe know how to handle events with their own tool when they require it? why does an event 'bubble' when i have not specifically tell it to do it? mi thought is that this event flow was very poorly conceived, and tough the intention may have been that there were different cases and it shopuld cover all cases, they actually introduced new problems that were not present in traditional ways to handle it, and it is neither the easier way to handle things, and this way, a very simple problem turns into a very ugly thing because it must handle things that were not neccesary to handle, or were implicit in other situations.
    4. legacy: since as3, all interaction is different, and if you want to do things in the new plattform, using the new features, what you already knew just goes to the garbage can. when a new tool arrives, it should be an extension to previous tools (which is a reason to update instead of just buying a new tool from a different vendor). if everything i had or knew just means nothing from now on, then i can not say 'i know flash script', and my previous knowledge gives me no advantage when aproaching the new version. as3 is a new aproach that requires doc reading and stuff, even if you knew something about previous as specifications or other oo languajes. if you decide to change things from now on, like the things mentioned in this post, instead of just throwing away everything the users alerady knew about the tool, do like in java releases, they mark some things as 'deprecated', they keep working as they should, give a warning, but also a message saying this feature is deprecated, we suggest you use this library instead.
    5. lack of previous functionality: if you 'update' something, it meand all previos functionality is still there (probably improved, but not with bugs if it was working fine), plus something else. now it seems backwards, there are some things that could be done in previous versions but not in this one, like 'duplicatemovieclip'
    6. inconsistency with scripting/programming paradigms: (ok, fancy work, but fits perfectly here): as3 proposed ways to handle things, but the people who designed it got 'too creative', and they did something that is not consistent neither with previous versions of as or with other languajes. the documentations is full of things like 'it looks like x languaje or languaje family, but instead of using XXX word, you must use YYY'. great, what is this? namespaces 'work like', but 'differently' for example from java, .net, .c. its got the idea that a namespace means a grouped functionality but there are rules about where should be placed the file (ok, java has this also, .net takes care of it automatically if all files are registered in the project), but what you got is a mess that 'if you know other languajes you got the general idea, but nonetheless, even if you knew this or previosu versions of as, you still have to read whatever we decided arbitrarily just to be different'. namespaces, event handling, vars definition which is not like previous scripting neither like fully typed languajes.. is just a mess.
    7. lack of scripting and graphics integration: unlike flash and adobe tools that just got on the graphics side leaving all the scripting integratuion apart, most tools from other vendors integrate very well interacton with what is on the screen. the script editor: very poor. autocompletion? a drop down list that does not heklp at all, appears in the wrong places, and when you need it to go, it does not go (so if i want to move away from the uncalled drop down list, i have to click somewhere else, making developement slowewr instead of helping, so the drop down list does not capture all events when i dont want to). in other ides you double click somewhere and it will go to the part of code relevant to that event or whatever. for example microsoft tools, ok i am antimicrosoft, and one of the reasons was that when windows 95 got to market proposing itself as the ONLY pc os you could use if you wanted to keep useing the apps you already had, it was a lousy product full of flaws but you had to keep using it because you had no choice. what is so different from what is happening with flash just now? yet the ide of c# is awesome, works very well and seems reliable.
    adobe people: not all user are designers that just make pretty pictures. if it is not intended for scripting then why is it there. and if there are corrections to be done, they should patch all versions, not only the last one. previous version users also paid for their versions.

    Well, there is no point in arguing.
    I personally believe AS3 does exactly what it promises to do within limits (read: reasonable limits) of ECMA type of language. And sometimes it doesn’t do what we expect it to for it cannot possibly emulate everyone’s thinking process. The task, I guess, is to learn to think in terms of AS3 – not to try to make AS3 think like us. No language covers all the grounds. And no, it is not Java - with no negative or positive connotation. It is what it is. Period. I just hope that AS5 will be more Java like.
    You are right about the fact that it is not necessary to know all the aspects of language in order to perform the majority of tasks. But it is paramount to have a clear idea about such fundamental concepts as display list model and events. For instance, depth swap has no meaning in terms of AS3 because display list object stacking is controlled automatically and there is no need for all these jumping through hoops one has to perform in order to control depth in AS2. There no more gaps in depths and one always know where to find things.
    Similarly, there is no point in having duplicateMovieClip method. More conventional OOP ways of object instantiation accomplishes just that and much more. Just because OOP object instantiation needs to be learned doesn’t mean past hacks have place in modern times. duplicateMovieClip is a horse carriage standing next to SUV. What one should choose to travel?
    Events are implemented to the tee in the context of ECMA specifications. I consider Events model as very solid, it works great (exactly as expected) and never failed me. True, it takes time to get used to it. But what doesn’t?
    By the way, speaking about events, contrary to believe in Adobe’s inconsideration to their following. Events are implemented with weakly reference set to false although it would be better to have it set to true. I think this is because there are smart and considerate people out there who knew how difficult it would be for programming novices to deal with lost listeners.
    I think AS3 is million times better than AS2. And one of the reasons it came out this way is that Adobe made a very brave and wise decision to break totally loose from AS2’s inherent crap. They have created a totally new and very solid language. If they had tried to make it backward compatible – it would be a huge screw up, similar to how our friends at Microsoft are prostituting VB and VBA – extremely irritating approach IMHO.
    Also, Flash legacy issues shouldn’t be overlooked. Flash did not start as a platform for programmers. Entire timeline concept in many ways is not compatible with the best OOP practices and advancements. I think for anyone who is used to writing classes the very fact of coding on timeline sounds awkward. It feels like a hack (and AS2 IS a pile of hacks) – the same things can be nicely packaged into classes and scale indefinitely. As such I wouldn’t expect Adobe to waste time on hacking timeline concept issues by making smarter editor. They have made a new one – FlexBuilder – instead. Serious programmers realize very soon that Flash IDE is not for developing industrial strength applications anyway. So, why bother with channeling great minds into polishing path to the dead end?
    I would like to state that all this is coming form a person who knew Flash when there was no AS at all. And I applaud every new generation of this wonderful tool.
    I believe Adobe does a great job making transition from timeline paradigm to total OOP venue as smooth as possible. And no, they don’t leave their devoted followers behind contrary to many claims. They are working on making developing Flash applications as easy as possible for people of all walks. Welcome Catalyst!
    Of course there is not enough information about AS3 capabilities and features. But, on the other hand, I don’t know any area of human kind activities that does.

  • What's wrong with this SQL?

    what's wrong with this SQL?
    Posted: Jan 16, 2007 9:35 AM Reply
    Hi, everyone:
    when I insert into table, i use the fellowing SQL:
    INSERT INTO xhealthcall_script_data
    (XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
    FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
    SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    I always got an error like;
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
    ERROR at line 3:
    ORA-00936: missing expression
    but I can't find anything wrong, who can tell me why?
    thank you so much in advance
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
    For starters, an insert select does not have a values clause.
    HTH -- Mark D Powell --
    PP
    Posts: 41
    From: q
    Registered: 8/10/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
    Even I see "missing VALUES" as the only error
    Eric H
    Posts: 2,822
    Registered: 10/15/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
    ...and why are you doing a UNION on the exact same two queries?
    (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
    Hi,
    thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
    ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
    so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
    I wonder if anyone can help me about this.
    thank you very much
    jerry
    yingkuan
    Posts: 1,801
    From: San Jose, CA
    Registered: 10/8/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
    Dup Post
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
    Hi,
    acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
    I think he use union for eliminating duplications of rows, I just guess.
    thank you
    jerry
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
    Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
    1 insert into marktest
    2 (fld1, fld2, fld3, fld4, fld5)
    3* select * from marktest
    UT1 > /
    16 rows created.
    HTH -- Mark D Powell --
    Jagan
    Posts: 41
    From: Hyderabad
    Registered: 7/21/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
    try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
    INSERT INTO xhealthcall_script_data
    (xhc_call_ended, xhc_switch_port, xhc_script_id,
    xhc_fax_specified)
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE'
    UNION
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE';
    Regards
    Jagan
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
    Hi, Jagan:
    thank you very much for your answer.
    but when I execute it, I still can get error like:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    so wired, do you have any ideas?
    thank you very much

    And this one,
    Aother question about SQL?
    I thought I already told him to deal with
    ORA-03113: end-of-file on communication channel
    problem first.
    There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert)

  • Help. What's wrong with ows302 ?? :-

    error opening UDP:westteam:2649
    OWS-08820: Unable to start WRB process
    `/u01/app/oracle/product/8.0.5/ows/3.0/bin/mnaddrsrv'.
    null

    Qi wrote:
    Hello,
    I was trying to use the following stop script to stop the wls8.1 server:
    echo "Stopping WebLogic for Domain"
    rm -f $PIDFILE
    java weblogic.Admin -url localhost:7003 FORCESHUTDOWN
    But got the following error:
    $ ./stop.sh
    Stopping WebLogic for Domain
    Cannot shutdown a server when using a BootIdentify file AND running in Production
    mode
    What's wrong with it? How should I modify my stop script and have it work?
    Thanks a lot
    Qi
    Qi,
    You can try passing in -username and -password arguments. If you don't
    like the idea of storing username and password in plain text in a
    script, as well you shouldn't ;), you can create a user config file.

  • What's wrong with my browsers?

    When i first got my macbook the internet was going really slow but then i changed the dns server to 4.2.2.2 and sometimes change it to 4.2.2.1 and the internet got better but now my browsers are acting funny.
    One moment i'm surfing webpages with safari or firefox.... Chatting with AdiumX or MS Messenger... and suddenly it just stops... Msn is getting time-out's, Safari says I'm not connected.
    But Airport sais it is still connected to my wireless network (with all the black bar's filled). It has valid IP adress etc, But everywhere I want to go on the internet it sais I'm not connected.
    When I disconnect the airport en let it reconnect with my wireless network, the connection is fine.
    how can i fix this?

    Most users shouldn't be manually entering DNS addresses, and those DNS addresses you mention probably aren't intended for end users. Is Level3 your ISP?
    That doesn't answer 'what's wrong with my browsers?', but a good start would be to configure your network according to your ISP's instructions. If you have DNS problems then, you might try using OpenDNS.

  • What's wrong with networking since Leopard?

    Hi,
    I'm with Mac since years. I was a PC User once and spent hours with all kinds of network troubles. What convinced me with Mac right in the beginning was easy networking: It just worked!
    But since Leopard things got worse: I have several MBP's, iMacs, Airport Extreme's and Airport Express's at different places which I installed, and I face the same problems at EVERY place:
    - I can't connect to AExtreme for several reasons: timeout, security incompatibility, ...
    - Sometimes only two Macs are allowed to connect to one AExtreme
    - Airport doesn't find Aiport or any other networks for minutes
    - After connecting to the router, can't get an IP (self-assigned IP only) - other PCs get an IP.
    - Aiport Extreme crashes (yellow blinking)
    - connection loss (even when AExtreme is very close)
    Now I know about networking, about configuration, I've done this for years. Whatever I do, problems disappear and appear again, at different times, at different places with different hardware.
    What is wrong with Leopard? Such problems remind me of times with Windows98 and stuff like that.

    What's wrong with networking since Leopard?
    on my network and many i have setup there have been no problems with leopard. However there are always teething problems with new operating systems. Thankfully with leopard only a tiny percentage of users experience technical difficulties.
    can't connect to AExtreme for several reasons: timeout, security incompatibility,
    is it set to use WPA/WPA2
    Airport doesn't find Aiport or any other networks for minutes
    sometimes my macbook pro takes a while to show up any networks if there are lots in the area this is because it is scanning them all.
    After connecting to the router, can't get an IP (self-assigned IP only) - other PCs get an IP.
    What kind of router are you using? What happens if you powercycle the router?
    # Aiport Extreme crashes (yellow blinking)
    # connection loss (even when AExtreme is very close)
    Have you tried resetting your AE to default. reinstalling its firmware or checking for a firmware update?
    Have you tried changing hte wireless channel your networ is broadcasting on?
    What is wrong with Leopard? Such problems remind me of times with Windows98 and stuff like that.
    Did you upgrade install your leopard installation or did you do clean (erase) installations?
    Have you tried created new network locations?

Maybe you are looking for

  • Looking for "createinstallmedia" kb/5856 I do not find it on my Maverick installed system?

    With Mavericks installed and these instructions the command cannot be found?   Creating a bootable OS X installer in OS X Mavericks With OS X Mavericks, you can create a bootable OS X installer which can be used to install the operating system while

  • External monitor for MacBook 4,1

    Hello all, I am wanting to run an external monitor for my old 2008 MacBook 4,1 13" I understand that I can run a 1920 x 1080 monitor via my machine. However, I don't know the upper size of monitor that goes to. I have plugged it into a 40" screen, an

  • How can I save the web page by using the Page Title as the file name ?

    When i use Internet Explorer ,I can save the web page by using Page Title as the file name(as default no need to adjust anything). But when i use Firefox ,It can not use the Page Title to save as the file name. How can I do that like in Internet Expl

  • Best setup for wireless/wired network needed.

    Please help! (and my opologies for the long post.) First, here's the situation: Our office has 6 Mac computers and one PC running XP. Both Macs and the single PC are connected to a network in order to access one of the Macs, which is on all the time

  • Safari crashing, mountain lion

    Safari keeps crashing my OS is mountain lion, is there anything in this reportthat could tell me how to stop it? Process:     WebProcess [730] Path:        /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/MacO S/WebProcess