Af:treeTable delete problem

Hi all
Hi have a web application using Oracle Business Components; in some page i am using an af:treeTable component
So far, i have been successfuly using it for any processes i have to develop; but something happens when i try to delete the last element of the first level of the control
Let me explain:
The treeTable component has n levels; the first level is the one that you navigate using the dropdown control or the Previous or Next commandLinks
Lets assume that i have 4 elements at that level; when i delete any element it works fine, but when i delete the last element i get this error
500 Internal Server Error
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
     at java.util.ArrayList.RangeCheck(ArrayList.java:546)
     at java.util.ArrayList.get(ArrayList.java:321)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._getRowData(FacesCtrlHierBinding.java:96)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.enterContainer(FacesCtrlHierBinding.java:191)
     at oracle.adf.view.faces.component.UIXHierarchy.enterContainer(UIXHierarchy.java:80)
     at oracle.adf.view.faces.component.UIXTreeTable.processFacetsAndChildren(UIXTreeTable.java:410)
     at oracle.adf.view.faces.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:141)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXCollection.processDecodes(UIXCollection.java:136)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
     at javax.faces.component.UIForm.processDecodes(UIForm.java:144)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
     at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
     at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
How can i fix this ???

Hi all
Hi have a web application using Oracle Business Components; in some page i am using an af:treeTable component
So far, i have been successfuly using it for any processes i have to develop; but something happens when i try to delete the last element of the first level of the control
Let me explain:
The treeTable component has n levels; the first level is the one that you navigate using the dropdown control or the Previous or Next commandLinks
Lets assume that i have 4 elements at that level; when i delete any element it works fine, but when i delete the last element i get this error
500 Internal Server Error
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
     at java.util.ArrayList.RangeCheck(ArrayList.java:546)
     at java.util.ArrayList.get(ArrayList.java:321)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._getRowData(FacesCtrlHierBinding.java:96)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.enterContainer(FacesCtrlHierBinding.java:191)
     at oracle.adf.view.faces.component.UIXHierarchy.enterContainer(UIXHierarchy.java:80)
     at oracle.adf.view.faces.component.UIXTreeTable.processFacetsAndChildren(UIXTreeTable.java:410)
     at oracle.adf.view.faces.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:141)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXCollection.processDecodes(UIXCollection.java:136)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
     at javax.faces.component.UIForm.processDecodes(UIForm.java:144)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
     at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
     at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
How can i fix this ???

Similar Messages

  • Two Related (?) file deleting problems in Finder and Time Machnine

    My internal drive is partition into two volumes. In the second one (the "non-boot" one), I was have trouble putting files in the trash that were locked. As I was tracking that down I coincidentally(?) started having another problem.
    I started getting a message that the files being put into the trash must be deleted immediately. I check permissions and I had read/write Privileges in the user account I'm normally logged into. However, If I logged into my administrator account, I could put things in the trash without deleting them. I noticed that ignore ownerships wasn't checked, so I checked that.
    That allowed my to put files into the trash without immediately deleting them. I went ahead and deleted the files I wanted to get rid of. However, I'm wondering if there was another issue because I am lead to understand that the ownership privileges shouldn't have necessitated checking "ignore ownerships"?
    Also, I had trouble deleting the backups of those files and folders in time machine. I can delete most of it. But for one folder (and all the folders in which it resides in the hierarchy) I can't deleted it. I tell it to delete backups of that folder (or folders it is in), I put in the password, and goes "ding". But nothing disappears...
    (After I wrote this, I tried unchecking "ignore ownerships" and the problem did not reappear. I can still put files in the trash without the immediate deletion problem.)
    Message was edited by: davidpsummers
    Message was edited by: davidpsummers

    Pondini wrote:
    davidpsummers wrote:
    Also, I had trouble deleting the backups of those files and folders in time machine. I can delete most of it. But for one folder (and all the folders in which it resides in the hierarchy) I can't deleted it. I tell it to delete backups of that folder (or folders it is in), I put in the password, and goes "ding". But nothing disappears...
    Are you doing that via the Finder or Terminal? If so, that's not the way to delete backups. See #12 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    And now I'm getting an error in time machine. "Files can't be copied onto the backup disk because it appears to be "read only"". I do get info on the disk, and my account has Read & Write privleges, but it say "You can only read" above that".
    The Finder or Terminal deletions may have corrupted your backups. Repair them, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    Message was edited by: Pondini
    I'm doing the deletion through Time Machine (I go into Time Machine, find the folder in the backup, and ask Time machine to delete all backups of that folder).
    I did find the tip of unmounting the disk, rebooting, and remounting it. That Stopped messages about the disk being read only. However, the folder still doesn't delete. I'm also a bit worried about these being symptoms of some other problem...
    Message was edited by: davidpsummers

  • SDB - delete problem/solution

    Hi Experts.
    Is it possible to delete problem/solution from solution database? There is information in help that it is not possible to delete problem/solution, but that they can be archived.. But note 946030 says it is not available...
    Regards
    Piotr

    Hello Piotr,
    In version 4 it was released one note (730402) that allow us to delete some symptoms and solutions. However, this may lead into some inconsistencies if they're linked with documents. We've never tried to execute it.... but if this may help you, try it
    Kind regards,
    Bruno

  • Data request deletion problem from remote system.

    Hi experts.
    Now i am facing one critical problem . The description is as following:
    we design the edw level in one phsical BW machine(A) which contains only dso infoprovider. This machine(A) works as datasource to provide data to another physical BW machine(B).
    The dso in A system is exported as datasource , Cubes in B system load data through this datasource .
    We first do the initialization with data contained on B system and then load delta data from A system. But if we want to delete some request in system A ,the system indicate this request can not be deleted unless the initialization in system B is deleted( this will lead to all the data missing in system B).
    Can anyone explain this mechanism to me , please help me suggesting some kind of methods to delete the request in system A without deleting the initialization information in system B.
    Thanks in advance.
    Waiting online for your kindly reply.

    1. Ask your Basis to look into it.
    2. try analyse your Baqckground Process in SM51.
    3. Is your Deletion Job started immediately or any Delay?
    4. If That cube or ODS has only this request which you are deleting, go with Context Menu Cube or ODS (by right click) --> Delete Contents.
    Delete Contents will improve performence compare to Request Deletion..
    If you have request more than this, you should not go for this.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Order Deletion Problem

    Hello all...i've a strange situation...When a planner deletes an order in the past for a particular time bucket, the order gets deleted in this bucket but is added up to the next bucket. Does anyone know why this might happen??
    Thanks!
    NV

    one more point...this works perfectly for the future buckets and only for the past buckets we are facing this problem...this is in SCM 4.0
    Thanks!

  • Photo Stream delete problem

    When deleting photos in Photo Stream from my 4s or iPad 1, it used to delete universally from all devices.  I added my apple tv, and now it says "This photo will be removed only from the Photo Stream on this (iPhone or iPad)."  how do I get the universal delete back?  This problem makes managing photos for the Apple tv Photo Stream screen saver difficult.

    I should add that I signed out of Photo Stream on the apple tv, still have only local delete on all my devices.

  • The past few days my Mail app has started downloading multiple copies of e-mails from all pop servers.  This is only happening on my Macbook not other macs.  Deleting mail from server does not help. I ran ClamXav found 2 viruses deleted problem continues

    opps.  Long title there... The past few days my Mail app has started downloading multiple copies of e-mails from all pop servers.  This is only happening on my Macbook not other macs.  Deleting mail from server does not help. I ran ClamXav found 2 viruses deleted those.  Checked for software update and installed suggested downloads.  Problem still contintues.  Any suggestions?

    Folks,
    even after having repaired the inbox folder under "properties" a few times, I still had some e-mails where the contents are different from the subject line.
    In other words in the inbox there are two e-mails: one with subject line "abc", and another one with subject line "def".
    When I display the e-mail with the subject line "abc", the contents are from the e-mail with the subject line "def" in the in-basket.
    What else can be done to correct this problem?
    Thanks and best regards.
    Fred Kunz-Shirzad
    Chemin Ronzeures 6A
    1297 Founex VD
    Switzerland
    [email protected]

  • JSP item deletion problem

    I have a minor problem in JSP that I can't get fixed.. When I try to remove all items from my shopping basket it deletes all items except one.. but in fact he deletes them all but fails to refresh the correct content of the shopping cart.. (at least.. that's what i think..)
    <%
    String name = request.getParameter("action");
         if (name!=null){
         if (name.equals("emptyCart")){
         myCart.deleteAllItems();
    %>
    Remove all items
    So, when I add 3 items e.g. and I click on "remove all items" the first item I added still shows up in my cart, when I reload the window, it's gone.. I tried to add a JS function that would reload the window, but it doens't change anything..
    Your help is greatly appreciated,
    Michael

    As i stated the JS function is just a function that reloads the document, but even using that the problem remains;
    Here's the code from my bean:
    package myShoppingCart;
    import java.util.*;
    public class myCart implements java.io.Serializable{
         private Vector items = new Vector();
    public myCart(){
         items = new Vector();
    public void deleteAllItems(){
         items.removeAllElements();
    Thank you for helping out,
    Michael

  • IPhoto delete  problem

    To quote Charlie Brown, "ARRRGGGHHH!!!" Now that I have that off my chest. I, too, am experiencing a problem deleting images from iPhoto 5. Like the proverbial bad penny, they keep coming back. Whenever I move images from the iPhoto main library to the iPhoto trash and select "empty" iPhoto crashes and will only respond to "force quit." I have left the pastel pizza spinning for hours. Only force quit will stop the show. I tried selecting individual images and using control, option, delete. The images do disappear from the library and the total count (now at 11,754) is reduced by the number of images selected. When I close iPhoto and then reopen it, the images are back. I tried deleting images and thumbnails from the iPhoto folder in "pictures" only to have those show up as empty rectangles in the iPhoto library. If I click on one of the empty rectangles I get all the usual information concerning the missing image in the iPhoto menu box but no image. I have tried everything I can think off short of reinstalling iPhoto. I would do this but some of the images cannot be replaced and, since the images in the various sub-libraries were taken over extended periods of time and share DSC numbers, my iPhoto will not export them to any other location or back up device. I am prompted that the duplicate numbers are "busy." My question is: Am I missing something basic, some magic bullet that will allow me to restore function to iPhoto while retaining the desired images or must I have a supreme zen moment of non attachment and start anew?

    rix foto
    Welcome to the Apple user discussion forums
    I tried deleting images and thumbnails from the iPhoto folder in "pictures" only to have those show up as empty rectangles in the iPhoto library. If I click on one of the empty rectangles I get all the usual information concerning the missing image in the iPhoto menu box but no image.
    This is a cardinal sin in iPhoto (or in any database program) - by doing this you have corrupted your library - you should never modify the contents of the iPhoto library directly - only via the iPhoto program
    You can try rebuilding your library using iPhoto and if that does not work using iPhoto library manager - http://www.fatcatsoftware.com/iplm/ - but probably you are going to have to start over
    Reinstalling iPhoto will not help because you have corrupted the data - the program is fine
    If rebuilding does not work, you need to go to a backup before you corrupted your library or you need to start a new iPhoto library as follows - quit iPhoto, drag the existing iPhoto library to the desktop, restart iPhoto with a new, empty library and drag the originals folder from the iPhoto library on the desktop to the iphoto icon in the Dock - this will import all of the original photos form your old library (not the modifications, albums, folders or projects)
    In the future never modify anything in the iphoto library and do not try to delete more than a small number (say 100 ) photos at a time
    Good Luck
    LN

  • Playlist deleting problems?

    This is the very first time I am using itunes and the ipod so I am not familiar with the workings of both and reading the help files is not helping for certain things. First problem is that whenever I import a new playlist from itunes into the ipod, whatever playlists were there before in the ipod is now gone?
    I looked at the Preferences in itunes and the only option I am seeing which makes any reference to "auto syncing" is located in the "Devices" tab in itunes preferences.
    I have the "Disable automatic syncing for iphones and ipods" option checked, is there any other setting for this anywhere or is there an option for this in the ipod itself?
    Also, if an ipod's playlist cannot be deleted from within the ipod then how can it be deleted please?

    Hey there,
    For instructions on how to delete playlists, I would check out this Apple support document. Should be able to help you out.
    [Adding and Deleting Songs and playlists from your iPod|http://support.apple.com/kb/HT1855]
    Here is more help on syncing playlists and how to manage them between iTunes and your iPod. It should also be very helpful. Hope it is.
    [Syncing Music to iPod|http://support.apple.com/kb/HT1351]
    B-rock

  • SMQ1 deletion problem too much time larger queue

    Hi Experts
    We have to delete Queues from SMQ1, the problem is the data volume is huge in queues and system is taking too much time to delete these queues.
    To delete 122000 records it took 4 hours to delete the queue from SMQ1.
    Problem is we have to delete total of  51,48,000 records in total and one queue has huge data that is 26,10,000.
    Is there any solution to fasten the process of deletion or any work around SMQ1 to delete the queues faster.
    We are deleting queues in live system I mean the production system is up and running.
    Thanks
    Navneet

    Hi Navnet,
    Use the report RSTRFCQDS to delete the particular queue of SMQ1.
    The report should check the inconsistencies between the tables:
    TRFCQOUT, ARFCSSTATE, QREFTID and ARFCSDATA, therefore it will take time.
    The fastest way to delete them is: you use a sql tool to delete all the entries in TRFCQOUT, ARFCSSATE, QREFTID and ARFCSDATA. In this case, you also delete the entries in SM58 (tRFC).
    See also SAP Note 760113.
    Rgds,
    Colum

  • Subreq Deletion Problem

    GURUS
    I am Facing some Data Inconsistency Problem as A result of which the Stock requirement List Shows  subreq ( Sub contracting request )in MD04 even though the Purchase Order with reference to which they were created has been Archived
    I have a Material MD04 of which Shows Subreq which are created as a result of Purchase Order for other Material .
    Now the Purcase order is Archived but The Dependent Subreq  Is  been displayed and not deleted,
    I have tried the SAP Fix Program RM06C020 but it doesnt work as the Purcahse Order has been archived from the database and program RM06C020 will look for Order Entry in table MDBS .
    Please Suggest
    Thanks In Advance

    Hi Milind,
    Thanks for confirming that this is very rare case.
    The reservations created through MRP run will not allow you to access through MB22 route.
    Good that you could find the reservations in RESB. You can mark an entry 'X' in the RESB table field XLOEK (Item deleted) against the reservation number.
    If needed, take the help of your developer colleague to make this table entry.
    Thanks
    Senthil

  • Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem

    Hi, I'm trying to migrate a sql server 2005 database to oracle 11g version with the lastest version of Oracle SQL Developer. All works fine but there is a little thing that I can't migrate. I have a few tables in the sql server database that has cascade on delete but I can't migrate this through Oracle Sql Developer.
    I know that Oracle database server supports it, then I can manually change the resulting database creation sql script but I'd like to know how I can do it with Oracle Sql Developer.
    Thanks in advance :)

    Hello,
    sorry for the delay.
    Even after some more research I couldn't find this problem described anywhere. I can confirm your observations, the problem is easy to reproduce. Thus I reported it to SQL Developer development as this looks like a bug.
    One workaround is to edit the generated DDL script and to add the ON DELETE CASCADE clause to the ALTER TABLE statement. If you don't like that: apply the scripts as they are and finish the migration. Then, in SQL Developer, right-click the table in your Oracle RDBMS schema, and click on Edit. In the pop-up window, select "Foreign Key". Then, in the lower right corner, there appears a small scroll-down menu where you can change the delete option from RESTRICT to CASCADE.
    Best regards
    Wolfgang

  • Business Rule Delete Problem

    Problem definition:
    We have a business rule according to CDM ruleframe, but have a
    problem when we want to delete a row from a table. The problem
    occurs when the business rule is validated. The
    delete operation works fine when the business rule is not
    validated.
    Business rule: BR_FELT_0006_DEL
    Table: SLN_FELTER
    CAPI-package: SLN_FELTER_CAPI
    Trigger attr.: After triggering statement on DELETE operation
    The definition of this delete rule is the same as the definition
    in the Headstart demo application.
    This is a simple reconstruction of the error problem:
    SQL> delete from sln_felter
    2 where opve_oppgave_nr = 'RF-1061'
    3 and opde_oppgavekode = 1014
    4* and inar_inntektsaar = 2000
    SQL> /
    delete from sln_felter
    FEIL pe linje 1:
    ORA-20999:
    ORA-06512: ved "HST65.CG$ERRORS", line 565
    ORA-06512: ved "SLNHL6.CG$SLN_FELTER", line 474
    ORA-20998: Transaction Failed
    ORA-06512: ved "HST65.QMS$ERRORS", line 128
    ORA-06512: ved "HST65.QMS_TRANSACTION_MGT", line 822
    ORA-06512: ved "SLNHL6.CG$ADS_SLN_FELTER", line 51
    ORA-04088: feil ved utfxring av
    triggeren 'SLNHL6.CG$ADS_SLN_FELTER'
    ORA-06512: ved "SLNHL6.CG$ADS_SLN_FELTER", line 43
    ORA-04088: feil ved utfxring av
    triggeren 'SLNHL6.CG$ADS_SLN_FELTER'
    SQL> @d:\hsd65\hst\scripts\messages
    Feil QMS-00100: Ukjent feil ORA-01403: ingen data ble funnet:
    qms_transaction_mgt.perform_business_rule
    Kontakt brukerkontakten.
    PL/SQL-prosedyren ble fullfxrt.
    Error message should have been:
    SLX-00367: <p1>: Feltet kan ikke slettes hvis det har pestand
    fra skattyter
    We have debugged the PL/SQL code and the error occurs in the CDM
    ruleframe generated
    CAPI-definition and not in the business rule itself. This is a
    part of the code where we think the error occur:
    procedure br_felt_0006_del
    is
    l_rule_validation_result boolean := true;
    begin
    l_rule_validation_result := br_felt_0006_del
    ( g_current_row.opde_oppgavekode
    , g_current_row.inar_inntektsaar
    , g_current_row.id
    if not l_rule_validation_result
    or l_rule_validation_result is null
    then
    qms_transaction_mgt.process_rule_violation
    ( p_br_name => 'BR_FELT_0006_DEL'
    , p_msg_code => 'SLX-00367'
    , p_display_label => display_label
    , p_table_name => 'sln_felter'
    , p_table_rowid => get_rowid <------ When this procedure
    -- is calling the get_rowid function
    ); -- then we get the ORA-01403: No data found.
    end if; -- Business Rule is violated
    end br_felt_0006_del;
    |
    |
    |
    function get_rowid
    return rowid
    -- Purpose Return rowid of the current row
    -- Usage From br procedures
    is
    l_rowid rowid;
    begin
    if g_current_row.the_rowid is not null
    then
    l_rowid := g_current_row.the_rowid;
    else
    select rowid     <--- We suspect this is a
    -- problem in CDM ruleframe,
    into l_rowid -- because a deleted row is read !!!
    from sln_felter
    where id = g_current_row.id
    g_current_row.the_rowid := l_rowid;
    if g_stack_index is not null
    then
    g_felt_tbl(g_stack_index).the_rowid := l_rowid;
    end if; -- g_stack_index
    end if; -- g_current_row.the_rowid
    return l_rowid;
    end get_rowid;

    We also have a problem with the delete rule.
    In our case we have two tables persons and reservations.
    A person can place more reservations. The foreign key between them two is cascade delete.
    Our code is
    Purpose Persons can only be deleted three years after they made the last reservation
    Remarks
    Revision History
    When Who
    Revision What
    30-01-2002 REPOWN
    1.0 Using utility HSU_BRTR (revision 6.5.1.3)
    04-01-2002 MAST     
    1.1 Code toegevoegd
    l_rule_ok boolean := true;
    begin
    trace('br_klt002_del (f)');
    -- for instructions, see the Headstart User Guide
    l_rule_ok := not ati_rsg_capi.exists_row
    ( p_where => 'trunc(reservationdate ) >= add_months(trunc(sysdate),-36) and psn_id = '||p_old_id );
    --also tried
    --l_rule_ok :=  not ati_rsg_capi.exists_row
    -- ( p_where => 'trunc
    --(reservationdate ) >= add_months(trunc(sysdate),-36) and
    --psn_id = '||p_id   );
    return l_rule_ok;
    exception
    when others
    then
    qms$errors.unhandled_exception(PACKAGE_NAME||'.br_klt002_del (f)');
    end br_klt002_del;
    The problem is that this doesn't work. We are allowed to delete every person, even if they have a reservation yonger than three years.

  • Mail 5.0 deleting problem

    i have a mail with automaticlly come back after i delete it and the folder as well. the folder called recorvery message (aol)
    did somebody had a simular problem?
    what should i do to delete both (mail and mailbox) permanantly.
    tried everything.
    went into libary/user/mail etc.... deleted the mailbox mbox. but 2 second after deleting it comes back.
    please please help!!!!!!!

    Hello Everyone,
    I have a Macbook Pro and I have recently upgraded my software to the new OS X Lion. Everything seemed to work out fine, until today.
    My Mail is not connecting/responding to one of my mailboxes. I am not sure what to do. I have two mailboxes from my AIM/AOL e-mail accounts and they are fine. The one e-mail account that has been given me problems is my School E-Mail.I think it is an Microsoft Exchange E-mail.
    I am running the same 3 e-mail accounts on my iMac, running on Snow Lepoard, and they work fine. I have resetted the school e-mail several times and I am getting the same message that the servers are not connecting.
    And for what it is worth, I can access the school email through my web browsers, (google chrome, firefox, and safari).
    Has anyone dealt with this before? Can someone please help me asap?
    Thank You.
    *Thought I space it out for you guys so you can understand it better.

Maybe you are looking for

  • Auto Restart and Error Screen In Windows 8.1

    Hello I am running Windows 8.1 64 BIT on HP EliteBook 800 G1 SFF Processor Core I5, 4 G Ram DDR3 Whenever i install windows 8.1 i got Error Message says : There a Problem and your PC will restart. So I went to Event Viewer and i got those messages :

  • Thumbnails in WebDAV

    Hi there, when i access a "KM directory" (DB Repository) via WebDAV interface, the thumbnails of images are not displayed. Is there any chance to display the thumbnails via WebDAV? Thanks in advance Joerg Heyne

  • Delete Files on CF Card After Downloading?

    Brand new to Lightroom. I didn't see an option when downloading pix from my CF card to delete them from my card after downloading. What am I missing?

  • Wake from sleep

    I have had this issue since at least Mavericks and it is still lingering. My MacBook Pro with Retina Display has issues waking from sleep. This isn't always the case, but quite frequently though however. I boot my Mac up in the morning and just sleep

  • Media Browser without iPhoto or Aperture

    I gave up on using iPhoto a little while ago because of how the library was built and the rather rigid means of editing photos and working with files. So I switched over to a more manual setup using photoshop and bridge. Of course now when I want to