htmlb:tree : Node IDs not unique - error handling

From an internal table of customers and contact persons, I made a tree using TVIEWNODE2 structure. Some of the customers are not having contact persons for which contact person ids are simply '00000000'. Thus these nodes may not be unique here. Somehow everything is working fine but sometimes I am getting the above error mentioned in subject.
Actually I have a tabstrip and one of the items of tabstrip contains tree. The occurrence of this error is not at all uniform , sometimes it works and sometimes don't. It's very difficult to find when and why it's triggered. In the same situation and circumstances sometimes it works and sometimes doesn't.Appearance of this error is irrespective of whether tree is operated or any other event is handled.
Can anybody throw light on this? Thanks in advance.

hi thomas
you are absolutely correct when you say that the error occurs in the second request cycle. do i need to clear the tree table then?
As you said , if the application is stateful, the best place is 'On create' event to write the code. But my application is stateless and that is why I am hesitant to put the code in 'On create' and rather placed it in 'On request' event where I am getting the cookie of internal table from which I am preparing tree table.
So, I think keeping the code in 'On request' as before but ensuring that the table is cleared everytime will solve the problem. But let me check this and tell you.
I am very thankful for your quick replies and focussing on my problem. thanks a lot.
I will let you know the outcome soon.
regards
jawahar

Similar Messages

  • Loading Tree Node/Leaf causing numerous errors

    I am loading a tree with UNSPSC codes using an application engine program with code borrowed from a delivered app engine program. The code loads most of the codes, however I receive numerous errors as follows:
    Node not Found (92,3209) - I get this a lot but the data still loads in both PSTREENODE and PSTREELEAF
    Return: 805 - ORA-00001: unique constraint (FS.PS_PSTREELEAF) violated
    Failed SQL stmt:UPDATE PSTREELEAF SET TREE_NODE_NUM = :1, OLD_TREE_NODE_NUM = 'N' WHERE SETID = :2 AND SETCNTRLVALUE = :3 AND TREE_NAME = :4 AND EFFDT = TO_DATE(:5,'YYYY-MM-DD') AND OLD_TREE_NODE_NUM = 'Y' AND TREE_NODE_NUM = :6
    Tree Save error (92,3061)
    -- This error will rollback my changes to my last commit point, which, because of this error, I am committing after every value (saving tree, closing tree, and reopening the tree).
    Node index error (0,0)
    Node insert error (0,0)
    -- These errors still allow me to enter the data.
    A node without a parent was detected: %1 (25,22)
    -- This error causes an abend.
    The code used to update the tree is very simple (this code was copied verbatim from PV_CP_LOAD along with additional functions):
    REM ****************************************************************************************;
    Function AddToTree(&CAT_ID, &CAT_ID_PAR, &CAT_NAME, &ACCOUNT, &SIBLING)
    REM ****************************************************************************************;
    rem Add child to parent;
    If &CAT_ID <> &FIRST_NODE Then
    &MYNODE = &MS_TREE.FindNode(&CAT_ID, "");
    If None(&MYNODE) Then
    &MYNODE = &MS_TREE.FindNode(&CAT_ID_PAR, "");
    If All(&MYNODE) Then
    &NEWNODE = &MYNODE.InsertChildNode(&CAT_ID);
    If All(&NEWNODE) Then
    &NEWLEAF = &NEWNODE.INSERTDYNCHILDLEAF();
    &NodeCount = &NodeCount + 1;
    End-If;
    End-If;
    Else
    rem in case tree node is already there, but category isn't;
    rem addcategories(&CAT_ID, &CAT_NAME, &ACCOUNT, &CATEGORY_REC);
    End-If;
    End-If;
    End-Function;
    I am getting roughly 50% failure rate.
    Is there a database issue? Configuration of my Tree?

    What I discovered is that Node API method INSERTDYNCHILDLEAF tries to re-number all the leafs inserted each time it is called. However, it doesn't check to see if the TREE_NODE_NUM already exists. Since the TREE_NODE_NUM column is a key, it causes a unique constraint error.
    I pointed this out to Oracle, however, since I was using this function in a custom app engine program, they would not look at the problem. My app engine trace clearly showed the problem.
    I ended up re-writing the program to insert directly into the PSTREENODE and PSTREELEAF tables, controlling the TREE_NODE_NUM and PARENT_NODE_NUM columns myself. The result was a tree with 20499 rows with 0 audit errors.

  • JTree - Sometimes tree node is not selected, while clicking it using mouse

    Hi,
    I'm sure that it is a very rare scenario.But ,sometimes i couldnt select a tree node on mouse click.It happens very rarely and simulating the behaviour is not possible.If anyone have gone thru this,plz repond.
    Thanks,
    Kathir

    did you try debug with a breakPoint on mouseListener->mouseClick event, and see if the selectionModel changes?

  • WHEN-TREE-NODE-EXPANDED not fire with keyboard in FORMS 10G

    I have a Hierarchical Tree. When i click in any node with mouse, works fine.
    When i use the key rigth and left of the keyboard, the tree expanded, but not fire the WHEN-TREE-NODE-EXPANDED.
    In FORMS 6i works fine.

    It's a bug 4509399. There is a oneoff patch on Metalink:
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:4034066994841324251::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,331369.1,1,1,1,helvetica

  • When-tree-node-selected not fire while navigating through keyboard(Urgent)

    i am using treeview for displaying chart of account and fires the above said trigger in the form, but the trigger has no effect whilt navigating tree view with keybpard arrow keys until user explicitly select the node through mouse help me out plzz
    i want that trigger also fires when user navigate and select node through keyboard or through mouse thanks
    its urgent

    Stop duplicating your threads!!!
    when-tree-node-selected (Urgent)
    You posted the same question 2 days ago and I've answered you, you didn't even provide an exact version of your forms.
    Posting again will not change your problem.
    Do not waste space on the forum.

  • Invalid B-tree node size (3,0) error - what is it??

    Yesterday I had a HDD issue on my iMac (OSX 10.5) with an 'invalid node structure' error. I eventually managed to boot into 'single user mode' and used #fsck_hfs -rf /dev/disk0s2 at the command prompt. This got OSX up and running properly again. I then repaired the permissions and the disk using the disk repair utility.
    Today, I have had a complete system freeze which necessitated a cold reboot. Since then nothing has worked. I can't boot in safe mode, single user mode or verbose mode. I tried resetting the PRAM and attempted to boot from a system install disk without initial success. After about half an hour the disk icon appeared on the screen and I could boot from the install disk. I then used the terminal to try 'fsck_hfs -rf' again. This time I got the error 'Invalid B-tree node size (3,0)'. What does this mean and what do I do now?? Most forums seem to suggest using 'Disk Warrior'. Since this costs about $170 in Australia I am unlikely to take this option. Having been unemployed for more than 5 months I am more likely to attempt replacing the drive myself. However, I'd prefer to take another approach if there is one. Any suggestions?? Would it be better to give up on replacing the internal drive and try for a bootable external HDD? Too slow?

    HI and Welcome to Apple Discussions...
    Check out TechToolPro but they might be even more $$$.
    Unfortunately, it takes a robust disk utility to repair an invalid tree node. Your best bet really is DiskWarrior
    *"Would it be better to give up on replacing the internal drive and try for a bootable external HDD? Too slow? "*
    You could use a bootable external drive but there again you are looking at an investment.
    Carolyn
    Message was edited by: Carolyn Samit

  • Aperture Library Importer name is not unique error

    When importing my archival Aperture library into Lightroom I get the error "name is not unique:" and then the name that is not unique.
    In my case the name in question isn't a project within Aperture but a Facebook album posted long ago using photos from Aperture. I haven't had my Facebook account linked to Aperture in a long time, but Lightroom throws this error now.
    The published album shows up nowhere in my Aperture library. The Console app shows "1/2/15 5:22:06.979 PM Adobe Photoshop Lightroom 5[13255]: Oops! An untagged string (name is not unique: In Which There Is A Flying Train_1) got thrown far enough that we display it to the user. This shouldn't happen."
    One of the other Aperture libraries I imported also used to have my Facebook account on it, but it also does not have that anymore and the published albums were removed.
    How can I get around this and successfully import my library?

    I get the same message and then after name is not unique it says:  iPhone.  were you able to find out what the issue is? 

  • Htmlb:tree node count limitation

    Hi Experts,
    I have a problem with htmlb:tree. Rendering up to 60 nodes will works well, if my tree has more than 60-65  nodes and I klick any link or the tree itself, after rendering has been finished, the Browser will get stuck and keep searching forever. SAP recommends to use htmlb:tree for trees with 30-50 nodes. Some suggestion was to load the node using AJAX. Are there some other ideas?
    Many thanks for help!

    check out this weblog
    [BSP/How-To: Build performance-efficient dynamic htmlb:tree|BSP/How-To: Build performance-efficient dynamic htmlb:tree]
    Raja

  • Tree Node selected not firing all the time

    I have a tree menu that calls other forms when the user selects a tree branch (see
    When-tree-node-selected trigger below).
    This works fine, but if the user closes the form and want to re-open it, the trigger doesn't fire unless the user clicks off the branch item and back on it. How can I make it work whenever the user clocks the branch item?
    if :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' then null;
    node_value := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
    open_a_form(l_form,l_module,l_form_code);
    end if;

    Have you tried setting the node the node to deselected programmatically?

  • ALV-Tree Node click not working

    Hi All,
    I am displaying the data in ALV tree. When the user click on the node i want to capture some event and method in which i have to do some coding. Can you tell me which method and  event i should use to achieve this functionality. its bit urgent.
    Immediate response will be apprecited.
    Regards,
    Ranjan

    Hi ,
    I have gone through the link. I have done the below part in my coding even though when i double click on the node, the event node_double_click is not getting triggered. Kindly suggest me what i have missed.
    1) Register event with tree instance:
    Register event for NODE_DOUBLE_CLICK
    l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
    APPEND l_event TO lt_events.
    (2) Set handler for event:
    SET HANDLER l_event_receiver->handle_node_double_click FOR tree1
    (3) Define and implement event handler method:
    METHODS handle_node_double_click
    FOR EVENT node_double_click OF cl_gui_alv_tree
    IMPORTING node_key.
    ENDCLASS. "lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
    METHOD handle_node_double_click.
    break-point.
    ENDMETHOD. "handle_node_double_click
    Regards,
    Ranjan

  • Clicking a tree node does not refresh the fields in the table component

    hi all,
    I am using a tree component along with a table component in my page.so whenever i am clicking on a node it should display the relevant information of that node in the table from the database.But whenever i am doing the page is not refreshing and the old values of the textfields in the table still exist.i have written the code to populate the table in a button click event.It is working fine but the same is not working when i am clicking any node in the tree component.Can anyone provide a solution to this problem.
    Thanks and regards,
    Prasant Kumar

    Never mind... I actually found something that works...
    treeModel.nodeStructureChanged(leadSelection);

  • Sub node does not exist error in web dynpro.

    Hello Experts,
    I have Faced following Run time Error in Webdynpro.
       "Subnode ZALV21.ALV_TABLE does not exist "
    I done External Mapping Neatly In controller Usage.Even Though I faced this Runtime Error.
    Kindly Reply me ASAP.
    Regards,
    Ameya Karadkhedkar

    Hi,
    Is component controller of your component is active? It seems that the node ALV_TABLE is not being activated. Hence the instance of it not found during run time.
    Regards,
    Rama

  • Sub node does not exist error in webdynpro.

    Hello Experts,
    I have Faced following Run time Error in Webdynpro.
       "Subnode ZALV21.ALV_TABLE does not exist "
    I done External Mapping Neatly In controller Usage.Even Though I faced this Runtime Error.
    Kindly Reply me ASAP.
    Regards,
    Ameya Karadkhedkar

    Hi,
    Is component controller of your component is active? It seems that the node ALV_TABLE is not being activated. Hence the instance of it not found during run time.
    Regards,
    Rama

  • Lables fully not visible in the Tree node

    Hi friends,
    Some text in the tree node were not visible fully.
    example : instead of documentation, it just displays doc...
    instead of Library, it just displays lib....
    And the problem doesn't appear continuously. Sometime the text is fully visible and some time it doesn't.
    If I expand the tree the text is fully visible again. I couldn't reproduce the issue continuously. I tried tree.repaint(), tree.validate(), tree.invalidate(), tree.revaidate(). but it didn't work.
    Anybody can suggest what would be the exact problem?
    Thanks in advance.

    It's hard to say without seeing the code for TreeTable. But they probably have something like an addNode mothod for the TreeTableNode which will take care of all the updates for you. If you want to do it youself, you will probably have to get the data Model (tree.getModel()???)behind the TreeTable and use one of the fire... methods on it like fireRowChanged(???) or fireTableChanged(???). I would suspect Sun would do it this way.

  • Accessing the original message body in Error handler

    Hello everybody,
    The loanGatewy3 proxy service in the OSB tutorial uses a stage in the request pipeline for validation. If a validation error occurs the error handler reports the original body message using a reporting action.
    Now if an error happens inside the Routing node; and if an error handler is defined to report the original message ($body), the reporting action will report the error message not the original message. It seems that the $body variable contains the erroneous response instead of the original message. So is there a way to access the original request $body inside a node error handler?
    Best regards,
    Tarek

    you can always put the original message into a dummy variable $origMessage, then in the event of an error report on $origMessage not $body
    cheers
    James

Maybe you are looking for