Can't get tree to work right

i have written an sql to create a tree but i am now getting the error:
ORA-20001: read_meta_data error: ORA-01436: CONNECT BY loop in user data
below is my sql
select case when connect_by_isleaf = 1 then 0
            when level = 1             then 1
            else                           -1
       end as status,
       level,
       d as title,
       null as icon,
       r as value,
       null as tooltip,
       null as link
from (select 'Employee: ' || SUB_NAME d, SUB_NUM r, TASK_NUM parent from SUBTASK
       union all
      select 'Taskss: ' || TASK_NAME d, TASK_NUM r, PROJ_NUM parent from TASK
       union all
      select 'DPI Projects: ' || PROJ_NAME d, PROJ_NUM r, null parent from PROJECTS)
start with parent is null
connect by prior r = parent
order siblings by dAny help would be wonderful.
thanks,
Edited by: KySarge1981 on Aug 17, 2010 2:32 PM
Edited by: KySarge1981 on Aug 18, 2010 7:42 AM

Not to kick a guy when he's down, but this is what I would have preferred be provided to set up a test case:
CREATE TABLE PROJECTS(
  PROJ_NUM  VARCHAR2(4)    NOT NULL,
  PROJ_NAME VARCHAR2(4000) NOT NULL
CREATE TABLE TASK(
  PROJ_NUM  VARCHAR2(4)    NOT NULL,
  TASK_NUM  VARCHAR2(4)    NOT NULL,
  TASK_NAME VARCHAR2(4000) NOT NULL
CREATE TABLE SUBTASK(
  PROJ_NUM VARCHAR2(4)    NOT NULL,
  TASK_NUM VARCHAR2(4)    NOT NULL,
  SUB_NUM  VARCHAR2(4)    NOT NULL,
  SUB_NAME VARCHAR2(4000) NOT NULL
INSERT INTO PROJECTS VALUES('0001','PROJ_0001');
INSERT INTO PROJECTS VALUES('0002','PROJ_0002');
INSERT INTO PROJECTS VALUES('0003','PROJ_0003');
INSERT INTO TASK VALUES('0001','0001','PROJ_0001_TASK_0001');
INSERT INTO TASK VALUES('0001','0002','PROJ_0001_TASK_0002');
INSERT INTO TASK VALUES('0002','0001','PROJ_0002_TASK_0001');
INSERT INTO TASK VALUES('0002','0002','PROJ_0002_TASK_0002');
INSERT INTO TASK VALUES('0003','0001','PROJ_0003_TASK_0001');
INSERT INTO TASK VALUES('0003','0002','PROJ_0003_TASK_0002');
INSERT INTO SUBTASK VALUES('0001','0001','0001','PROJ_0001_TASK_0001_SUB_0001');
INSERT INTO SUBTASK VALUES('0001','0001','0002','PROJ_0001_TASK_0001_SUB_0002');
INSERT INTO SUBTASK VALUES('0001','0002','0001','PROJ_0001_TASK_0002_SUB_0001');
INSERT INTO SUBTASK VALUES('0001','0002','0002','PROJ_0001_TASK_0002_SUB_0002');
INSERT INTO SUBTASK VALUES('0002','0001','0001','PROJ_0002_TASK_0001_SUB_0001');
INSERT INTO SUBTASK VALUES('0002','0001','0002','PROJ_0002_TASK_0001_SUB_0002');
INSERT INTO SUBTASK VALUES('0002','0002','0001','PROJ_0002_TASK_0002_SUB_0001');
INSERT INTO SUBTASK VALUES('0002','0002','0002','PROJ_0002_TASK_0002_SUB_0002');
INSERT INTO SUBTASK VALUES('0003','0001','0001','PROJ_0003_TASK_0001_SUB_0001');
INSERT INTO SUBTASK VALUES('0003','0001','0002','PROJ_0003_TASK_0001_SUB_0002');
INSERT INTO SUBTASK VALUES('0003','0002','0001','PROJ_0003_TASK_0002_SUB_0001');
INSERT INTO SUBTASK VALUES('0003','0002','0002','PROJ_0003_TASK_0002_SUB_0002');It would make it so much easier for people trying to help if we didn't have to do monkey around to get to the root of the problem. Not to mention it exponentially increases the chances of people answering your question.
But anyway....on to a solution.
With the tree root as 'PROJECT', the query would be:
--Root
SELECT 'PROJECTS' ID,
       NULL       PID,
       'Projects' NAME,
       NULL       LINK,
       NULL       A1,
       NULL       A2
  FROM DUAL
UNION ALL
--Projects
SELECT PROJ_NUM,
       'PROJECTS',
       PROJ_NAME,
       NULL,
       NULL,
       NULL
  FROM PROJECTS
UNION ALL
--Tasks
SELECT PROJ_NUM||':'||TASK_NUM,
       PROJ_NUM,
       TASK_NAME,
       NULL,
       NULL,
       NULL
  FROM TASK
UNION ALL
--SubTasks
SELECT PROJ_NUM||':'||TASK_NUM||':'||SUB_NUM,
       PROJ_NUM||':'||TASK_NUM,
       SUB_NAME,
       NULL,
       NULL,
       NULL
  FROM SUBTASKand the result is:
Projects 
-->PROJ_0001
  -->PROJ_0001_TASK_0001
    -->PROJ_0001_TASK_0001_SUB_0001
    -->PROJ_0001_TASK_0001_SUB_0002
  -->PROJ_0001_TASK_0002
    -->PROJ_0001_TASK_0002_SUB_0001
    -->PROJ_0001_TASK_0002_SUB_0002
-->PROJ_0002
  -->PROJ_0002_TASK_0001
    -->PROJ_0002_TASK_0001_SUB_0001
    -->PROJ_0002_TASK_0001_SUB_0002
  -->PROJ_0002_TASK_0002
    -->PROJ_0002_TASK_0002_SUB_0001
    -->PROJ_0002_TASK_0002_SUB_0002
-->PROJ_0003
  -->PROJ_0003_TASK_0001
    -->PROJ_0003_TASK_0001_SUB_0001
    -->PROJ_0003_TASK_0001_SUB_0002
  -->PROJ_0003_TASK_0002
    -->PROJ_0003_TASK_0002_SUB_0001
    -->PROJ_0003_TASK_0002_SUB_0002 Hope that gets you back on track.

Similar Messages

  • Album artwork.... just can't get it to work right.

    Hello.
    I've searched google, I've searched this support community and I've just not been able to come up with an answer.
    My album artwork just won't stay put. Some of my albums have artwork and some don't. I've done the "right click" and "get album art work". I've downloaded an app to find art work for the drag and drop method into the "Now Playing" window but it just gets eaten by Itunes (it appears in the window and magically disappears). I've even done the "get info" on multiple tracks and drag and drop into the "artwork"  window of the info pane and while it sticks and stays put nothing happens when I press ok only to reopen the info pane ( "get info" on multiple tracks) and it's as if I've done absolutely nothing. My permissions are fine. My music files are a mixed bunch of MP3 and WAV but this isn't a factor as some MP3's have artwork and some don't, as well as my WAV's.
    I've searched in and out, high and low but I've just not come up with anything that gets this in order. The problem isn't getting the artwork it's getting Itunes (10.5.1) to attach it to the albums and display it. My Mac OS X is Lion 10.7.2. Can anyone help?
    Thanking you before hand.

    Looks like it does have something to do with WAV format. I got the missing artwork on the MP3's working (by simply dragging and dropping...don't know how that didn't work before) but it's true that the WAV format does not support artwork (as stated several time here in this support community). What threw a brick in all my thinking is that some of my WAV's do have artwork. After some searching though I deduced that the WAV's with artwork showing are albums you can obtain from the itunes store while those that you can't don't show. Even some of the albums that I I copied in WAV that you can obtain from the Itunes store but have minor differences don't show artwork (eg. itunes sells the extended track album while i have the original length album)
    I find this rather silly to be honest since there is a work around. I guess the question now is, where is itunes storing the artwork for the WAV files that do show artwork and can I tap into that so it does show for those WAV's missing the artwork?

  • Can't get anything to work right

    I just got Logic for a new Powermac G5, and nothing is working right. While my speakers are working, audio plays back but doesn't come through the speakers.
    I'm not veryu interested in the MIDI options, I don't do any work with MIDI and want to use the program to record acoustic instruments, running them through a mixer then into the computer. I can't find any way to record these with Logic, and the "arm to record" button won't show up ANYWHERE.
    If anyone has any help on either of these, please let me know. I need a convincing reason to even keep this software....

    Scott, firstly, I really suggest that you read the manual. Then have a read of the sticky thread on top of this forum called troubleshooting tips for new users by David_Pye. All your answers will be there.

  • Can't get apache + php5 working right

    I was following the LAMP tutorial, but PHP doesn't seem to work.
    This is off of a fresh arch install.
    Did the following:
    pacman -S apache php php-apache
    I then add 'LoadModule php5_module modules/libphp5.so' to httpd.conf and restart the server
    If I navigate to the server, I see "Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 with Suhosin-Patch Server" at the bottom. Seems like PHP is there and working.
    I then create a test file phpinfo.php with the following: <?php phpinfo(); ?>
    If I try to load that file, it displays its contents.
    If I add 'AddType application/x-httpd-php .php' to httpd.conf, nothing changes. Should be working according to the wiki article. I'm so confused.

    That is weird indeed. Actually, both paths should work as the Include directive accepts both absolute and relative (to ServerRoot) paths.
    I'm baffled as well.

  • ...I just bought this and i can't get it o work for me, I had noticed chat windows right up until I

    ..I just bought this and i can't get it o work for me, I had noticed chat windows right up until I Paid for it now I am left alone I need help. or my Money back.  I knopw I am writing to no one.

    Good day,
    How can I help?
    Kind regards,
    David
    Adobe Systems

  • I downloaded Photoshop cc trial, program opens, states program has a problem and closes right away. how can I get it to work?

    I downloaded Photoshop cc trial, program opens, states program has a problem and closes right away. how can I get it to work?
    I tried uninstalling and installing again same problem

    Moving this discussion to the Photoshop General Discussion forum.

  • My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • HP Laserjet M2727nf - can't get scan to work

    I followed these instructions to the letter:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01846935&cc=us&dlc=en&lc=en &jumpid=regR1002USEN#
    But I cannot my MAC to recognize the scanner. I am attached over a network. When I go to Printer Setup, the driver shows up as version 16.1. Do I have the right driver?
    It prints just fine and I can see the printer webpage. How can I get scanner to work?

    Apple doesn't show fax or scanner support for the HP MFP2727 in their list of drivers.
    http://support.apple.com/kb/HT3669
    But, HP shows a Firmware Update for this model that might or might not help.
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us &prodNameId=3377076&prodTypeId=18972&prodSeriesId=3377075&swLang=8&taskId=135&sw EnvOID=228

  • Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    I recently upgraded to itunes 11.0.1.12 and that fixed the CD Jewel Case Insert song titles problem. Thanks itunes. It's working great!!.

  • I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    Oaky, at least we got that far.  Next step is to determine if all those "numbers" are really numbers.  Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number.  Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
    Here are some that will remain as strings:
    +123
    123 with a space after it.
    .123

  • Just bought Ear Force Z11 - headset, can't get it to work on my iMac intel based on the Windows side

    I have used Boot Camp on my iMac 21" early 2008 to partition and set-up Windows 7 so that I could use my FSX Flight simulator, I bought EarForce Z11 headset to use with my simulator and can't get it to work, has anyone else ran in to this problem?  If anyone can help I would appriciate it, the computer recognizes that I plugged them in but I am only getting sound over the iMac speakers and nothing with the headset.

    assuming it works on osx then
    sounds like
    1, the mixer in windows have muted the headset connection you can change that in the control panel
    2. the driver for your audio card is not working 100% (read people say that the 32bit win7 don't have drivers from apple avaible)
    with the right drivers it should work
    my imac 21" have a splitter connected where I have external speakers from logitech and a skullcandy headset
    connected both play and the internal imac speakers only make a sound at bootup at first
    this is both in osx, was in win7 64bit and win8 64bit

  • I just can't get it to work  :-(

    I was given this code and found another only slightly different. I've seen them both working but when I try to put it on my page, it doesn't matter what I do, I can't get either to work. The problem is not with the code but with the service I'm going through (addr.com). If anyone is willing to help me figure this out through email, I would be very appreciative.
    <APPLET CODE=PoolMenu WIDTH=570 HEIGHT=65>
    <PARAM NAME=image VALUE="images/logo.gif">
    </APPLET>
    <applet code="PoolMenu" CODEBASE="files/" id="PoolMenu" width=468 height=60>
    <param name=image value=images/logo.gif>
    </applet>
    [email protected]

    images/logo.gif does exist at
    www.holidaysportsinc.com/images/logo.gif
    The PoolMenu.class is hard to explain. They have
    given me this address to view their test servlets -
    http://holidaysportsinc.com/servlets/TestServlet
    -- which reveals that they don't know much about what you are doing...
    First you have an applet which is run on the client. Then they give you a servlet container, which is used to run server side application written in Java.
    Something's not right here...
    My .class file is placed into the servlets/holidays
    folder. This is where they told me I had to upload my
    own java/class files but I can't seem to get to it.
    By going to this address -
    http://holidaysportsinc.com/servlets/holidays/PoolMenu
    class
    I get a "The requested URL /servlets/holidays was not
    found on this server."Is it there, then?
    I've even tried putting it into just the servlets
    folder but I get the same message.It shouldn't make any difference where the class file is, if you set the codebase and code attributes properly in th html.
    Just slap it somewhere on the server and give the path to it in codebase. Like if you have the .class in /foo/bar/Baz.class codebase should be "/foo/bar/" - and code "Baz".
    >
    I've tried writing them about it and they recommended
    I come here for further help because they don't deal
    directly with the java/class files, they only supply
    the server to do it on. I am at a loss.And so are they :)

  • Can't get Mail to work - I get the spinning wheel and Mail freezes.  I have to Force Quit it.  How do I fix this?

    Can't get Mail to work - I get the spinning wheel and Mail freezes.  I have to Force Quit Mail .  How do I fix this problem?

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Can't get VLAN to work

    Hello,
    Maybe I'm missing something elementary.. this is my first time trying this out and just can't get it to work.
    I've got an xserve on a netgear smart switch on port 13. The netgear is hooked up to two different networks (204.x.x.x via port 1 and 128.x.x.x via port 2), and I have 2 VLANs setup on the switch (vlan 1 has port 1 and port 13, vlan 2 has port 2 and port 13).
    The xserve's interface that's on port 13 has a 204 IP and works wonderfully on the 204 network. I then tried to setup a VLAN via sys prefs network and that appeared in the network configs list, and gave it a 128 address. However, even with all the right settings, it won't show up at all on the 128 network.
    Is there something basic that I'm missing?

    Oh, thats not exactly what I meant
    Basically:
    The server serves Web and QTSS via 204 to the world via en0.
    Then, there's 5-10 machines or so on 128 (and 1-2 on 204) that sync over 3TB of data to the machine via 128 (this sever is the only one we have on site that has raids hooked up to it, so its the central data storage so to say), so en1 is pretty much completely saturated between 12am and 8am (and during the day when there's a lot of new work going on). Originally we used to do this over the primary web interface and all the web traffic would suffer (and especially qtss... we'd start getting disconnected errors all over the place when we started up massive copies).
    Half of the machines are 204's and the rest are 128's, which is why we want the ability for en1 to be able to talk locally to machines on either 204 or 128, without having to interrupt the main interfact (if that makes any sense). Does that seem like a sensical solution?
    If it also helps visualize a bit:
    I only have access to register 8 machines on the 204, and TONS on the 128, but im not allowed to serve .com traffic on 128. Technically, the 128 does talk to the 204 locally on location, but its done through a nasty switch and we dont see much higher than 10Mbps tops.

  • Can't Get Crossfade to Work

    Hi,
    I've been using iTunes for several years, but lately I cannot get the Crossfade to activate.
    I've tried changing it, restarting the app, rebooting, even deleting the iTunes preference file. Nothing works.
    Every song goes right until the last second before moving on to the next song. I would like maximum crossfade, the 12 seconds. But I can't get it to work.
    Any ideas?
    Thanks.

    My mistake. Converting to Apple Lossless works. Just remember that iTunes creates copies of the originals in the library rather than "converting" the selected files. Import these coverted files into your playlist and it will work.

Maybe you are looking for

  • REP-1813 Object 'R_G_Document_Number1' too large to fit in matrix cell.

    Dear Concerns, I am facing this problem in my Cash Book Report which is Matrix. Reports runs perfectly but on page 16 its shows the REP-1813 error and on one of our supplier it shows this but in query when i do this and pv.VENDOR_NAME !=('M/s S. B. E

  • How to delete duplicate copies of photo in various albums

    I created a new album in photos on my iPhone 6 (iOS 8.2) and transferred photos from other albums to the new one.  How do I delete the original albums without losing the photos

  • Is this chart possible (two dimensional plus colour quality chart)

    Hello, I've used Crystal Report a few years ago.  I've got a new project, and I know Crystal Reports will work for 80% of it.  However, there's one chart i'm not sure about.  I've browsed the Business Objects product and technical info, couldn't find

  • Will there be ever a nokia communicator ever ?

    Will there be ever a nokia communicator ever or the other new nokia phones will berry the communicator for ever phones i have 2730c - C1 KUDOS ME IF YOU FIND MY ANSWERS HELP FULL

  • Mailto links as cc instead of new mail

    Explanation: I have an Email A which contains email-addresses (not in CC of mail A, but in the body of A) I need to write an email B to all of those, or some of those mail addresses. But if I click them, a new mail is being opened for every single ma