Unique constraint in the form of master detail error

Hi all

I need help, the following requirement.

I have a master detail form developed on master-child table. the tables have the composite key.

Old masters has a composite key on columns (A, B)

Children table has a composite key on columns (A, B, C)

Child block look something like below

C       A          B

10 AAA 1000

20 1300 BBB

30 CCC 1400

40 DDD 1200

Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.

My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below

C       A          B

10 AAA 1000

20 1300 BBB

XXX 30 900

40 CCC 1400

50 DDD 1200

Button Save I wrote the following code

Declare
  ln_Count NUMBER :=0;
  ln_c number :=0
  cursor c1 is
  select c
  from child
  where a=:child.a
  and b=:child.b
Begin
  Go_Block('Child');
  First_Record;
  LOOP
  ln_Count:= ln_Count+10;
  :child.C := ln_Count;
  EXIT When :System.Last_Record = 'TRUE';
  Next_Record;
  END LOOP;


  For c_cur in c1 Loop
  update child
  set c:=ln_c+10
  where a=:child.a
  and b=:child.b 
  and c=c_cur.c
  end loop;
  Forms_DDL('commit');
     
     commit_prc('Commit');  -- We have our own program unit to call commit_form

END;

I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.

When you click the button Save, I get a constraint exception. Hope I made my requirement clear.

Can someone give me a clue to this implementation.

Thank you

malandain

With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.

Tags: Oracle Development

Similar Questions

  • How to display two dept details at the same time in the form of master-detail

    Hi Experts

    In Forms 6I, using the Scott schema, table DEPT & EMP has created a simple form of master-details relationships.

    Currently when user Dept Block shows all lines dept and EMP block display data based on the selection of deptno.

    It's only a deptno both.

    If the user in the No. 10, block EMP Dept will display all the data related to 10

    If the user moves to 20 Deptno, block EMP will display all the data related to 20.

    And so on.

    But our requirement, what happens if we want to see the 10 and 20 at once (both several deptno)

    Thank you

    Thanks for your information.

    In fact, our requirement is only to display data, he own be no matter what update of data/insertion.

    So below and working for our requirement

    • Remove relationship
    • Additional box on master block.
    • Write code cursor on the box selection - which will fill/clear data block information based on the checkbox selection on block Master.

    Oracle Apps training: how to display two Department employee details at the same time in the master/detail relationship

  • Failed to add new detail in the form of master detail record

    Hello

    I created a simple database application from scratch by selecting the start a page master detail. This has generated a report (for the parent) and a page of form (for the child). On using the form to add a new record to the child, the following error is generated:

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-01400: cannot insert NULL into ("Student" 1.) "" DELEGATE. " "" ""DELEGATE_ID"), insert"Student"1." DELEGATE values' ('DELEGATE_ID', 'CLIENT_ID', 'NAME', 'INITIAL', 'SEX', "SPECIAL_NEEDS") (: b1,: b2,: b3: b4,: b5,: b6)
    Error failed to process the update.

    The field 'child' in the error message is automatically hidden on the form and I guess on the generation of this form using the wizard I would have had the opportunity to link the field delegate_id to a trigger or a sequence like this seems to happen when you create a scratch from application database using other types of page. I'm new to Apex then I would be grateful if someone could let me know why this default behavior occurs.

    Kind regards

    Kevin.

    I tried for Apex 4.0.2 (my version) and 4.1 (on apex.oracle.com) and I'm wondering for the production of main PK and details in both versions.

    What are your steps exactly in the wizard? Like this?
    Create page-> form-> form detailed Master
    Now you see a list of steps sub whose "Source of primary key.

    Oh I see "Create an Application Assistant." in your message. Start with an empty application (blank page) and use the wizard to create a Page. Maybe it's the difference.

    Published by: InoL on November 18, 2011 09:27

  • problem in the form of master-detail when you use the ADF table for detail

    Hello

    jdev version - 11.1.2.1.0


    I create master shape detail using datacontrol drag as ADF master shape secondary Table.


    Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.

    and other show line that the previous record data based on the master.

    problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.



    Thanks in advance

    Hello

    If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines

    Frank

  • composite unique constraint on the values of parent and child?

    Is it possible to have a composite unique constraint that contains the values of the child elements? The example below has the "child" elements are offline, but it's preferred, but optional, I know that you can have a unique constraint in the set of tables without using a reference table that contains the constraint and the two columns. How xdb manages this requirement?

    permit:
    <parent ID="1">
       <child><name>test1</name></child>
       <child><name>test2</name></child>
    </parent>
    <parent ID="2">
       <child><name>test1</name></child>
       <child><name>test2</name></child>
    </parent>
    not allowed:
    <parent ID="1">
       <child><name>test1</name></child>
       <child><name>test1</name></child>
    </parent>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
               xmlns:xdb="http://xmlns.oracle.com/xdb"
               xdb:storeVarrayAsTable="true"
               elementFormDefault="qualified">
        
        <xs:element name="parent" type="Parent_T"
            xdb:columnProps="CONSTRAINT parent_pkey PRIMARY KEY (XMLDATA.ID)"
            xdb:defaultTable="PARENT"/>
    
        <xs:complexType name="Parent_T" xdb:SQLType="PARENT_T" xdb:maintainDOM="false">
            <xs:sequence>
                <xs:element name="child" type="Child_T" minOccurs="1" maxOccurs="unbounded" xdb:SQLName="CHILD"
                          xdb:SQLInline="false" xdb:defaultTable="CHILD" "/>
            </xs:sequence>
            <xs:attribute name="ID" xdb:SQLName="ID" use="required" />
        </xs:complexType>
        
        <xs:complexType name="Child_T" xdb:SQLType="CHILD_T">
           <xs:sequence>
             <xs:element name="name" type="xs:string" xdb:SQLName="NAME"/>
           </xs:sequence>
         </xs:complexType>     
    </xs:schema>
    xdb:columnProps = "CONSTRAINT parent_pkey PRIMARY KEY (XMLDATA.ID), * UNIQUE (XMLDATA.» "Child.Name) *" triggers the non-existent attribute


    A possible solution would be to copy the value of the primary key parent of the child element, then I could create a composite unique constraint using only the values of the child. However, I have this same requirement elsewhere in my lowest nested schema, and it can become messy / bad design with cascading of all primary keys on the schema. For example, I have a recursive element in which two attributes must be unique only within the parent company:
    <parent id="1">
       <child a="1" b="1">
          <child a="1" b="2">
             <child a="1" b="1" /> *not allowed
          </child>
       </child>
       <child a="1" b="2" /> *not allowed
    </parent>
    Possible solution:
    <child a="1" b="2" parent_id="1" />
    <xs:complexType name="Child_T>
       <xs:sequence>
          <xs:element name="child" xsd:SQLInline="false" xsd:columnProps="UNIQUE(XMLDATA.a,XMLDATA.b,XMLDATA.parent_id)" minOccurs="0" maxOccurs="unbounded" type="Child_T">
       </xs:sequence>
       </xs:element
    </xs:complexType>
    Is there a better design?

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi 
    PL/SQL Release 10.2.0.4.0 - Production                           
    CORE     10.2.0.4.0     Production                                       
    TNS for Linux: Version 10.2.0.4.0 - Production                   
    NLSRTL Version 10.2.0.4.0 - Production 

    You can do something like this:

    SQL> DECLARE
      2
      3    xsd_doc xmltype := xmltype('
      4  
      5    
      6      
      7        
      8          
      9        
     10      
     11    
     12    
     13      
     14        
     15          
     16        
     17      
     18    
     19    
     20      
     21        
     22          
     23        
     24        
     25      
     26    
     27    
     28      
     29        
     30          
     31        
     32      
     33    
     34  ');
     35
     36  BEGIN
     37
     38    dbms_xmlschema.registerSchema(
     39      schemaURL => 'test_parent.xsd',
     40      schemaDoc => xsd_doc,
     41      local => true,
     42      genTypes => true,
     43      genbean => false,
     44      genTables => false,
     45      enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
     46    );
     47
     48  END;
     49  /
    
    PL/SQL procedure successfully completed
    
    SQL> CREATE TABLE my_xml_table OF XMLTYPE
      2  XMLTYPE STORE AS OBJECT RELATIONAL
      3  XMLSCHEMA "test_parent.xsd"
      4  ELEMENT "root"
      5  VARRAY xmldata."parent" STORE AS TABLE my_parent_tab
      6  (
      7    VARRAY "child" STORE AS TABLE my_child_tab
      8  )
      9  ;
    
    Table created
    
    SQL> ALTER TABLE my_parent_tab ADD CONSTRAINT parent_uk UNIQUE (nested_table_id, "ID");
    
    Table altered
    
    SQL> ALTER TABLE my_child_tab ADD CONSTRAINT child_uk UNIQUE (nested_table_id, "name");
    
    Table altered
     
    

    Then:

    SQL> insert into my_xml_table values (
      2  xmltype('
      3     test1
      4     test2
      5  
      6  
      7     test1
      8     test2
      9  ')
     10  );
    insert into my_xml_table values (
    *
    ERREUR à la ligne 1 :
    ORA-00001: violation de contrainte unique (DEV.PARENT_UK)
    
    SQL> insert into my_xml_table values (
      2  xmltype('
      3     test1
      4     test1
      5  
      6  
      7     test1
      8     test2
      9  ')
     10  );
    insert into my_xml_table values (
    *
    ERREUR à la ligne 1 :
    ORA-00001: violation de contrainte unique (DEV.CHILD_UK)
    
    SQL> insert into my_xml_table values (
      2  xmltype('
      3     test1
      4     test2
      5  
      6  
      7     test1
      8     test2
      9  ')
     10  );
    
    1 ligne créée.
    

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb06stt.htm#sthref987

  • Validation of the detail in a form records master detail.

    Hi all

    IAM trying to validate the detail records in a form master detail. I have a check box in the detail Section. I want to add validation that all the detail records are checked or all are unchecked. To do this, I added valdation method on the entity to master, but it only runs when any attribute of the master record is changed, but not when it comes to his detail record is updated or inserted. Please tell me where I can write this validation logic or how can I trigger to perform the validation method when a child record is updated.

    Thank you, Pradeep

    Please ask such questions on the JDeveloper forum in the future because it is not related to the JHeadstart.

    To get the desired behavior, you must check the Association membership on the association of the entity between the master and detail EO.

    Steven Davelaar,
    Jheadstart team.

  • Using wizard to create forms of master / detail

    Hi guys,.

    I'm using JHeadstart 11.1.1.3.35 and having major problems trying to create records of master / details in a layout of the wizard

    Department Master (shape, style Assistant, insert enabled, new line on entry)
    Group of retail employees (form, data dependant, allowed insert, update has allowed)

    Using schema HR with a view link between services and employees

    Main group Department (Assistant)
    = > Region of the element (all the fields of the Department)
    = > Region container
    = > Region group (Group of retail employees)

    (NB - if I used a group of the region as step in the wizard at a higher level, the following error occurred during the generation which is why I wrapped it in a container of the region...

    [NewDepartmentNewEmp.jsff, default/pageComponent/formRegionGroup.vm] Journal of speed [error] method pushModelPointer threw the exception of reference $JHS for model default/pageComponent/formRegionGroup.vm at [1,1]
    [NewDepartmentNewEmp.jsff, default/pageComponent/formRegionGroup.vm] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'pushModelPointer' in class oracle.jheadstart.dt.jag.engine.velocity.JagEngineFacade threw exception class java.lang.NullPointerException: null

    The problem is that the detail of employee group does not start in design mode.

    I tried the create() method substitution in DepartmentsImpl

    protected void create (AttributeList attributeList) {}
    Super.Create (AttributeList);

    NewEmployee RowIterator = this.getEmployees ();
    NewRow row = newEmployee.createRow ();
    newEmployee.insertRow (newRow);
    }

    I also tried the override of the executeQueryForCollection method in detail (saw this solution suggested in another post on creating a form-form master / detail)

    protected void executeQueryForCollection (Object, object,
    Object [] bindParams,
    int i) {}
    super.executeQueryForCollection (object, bindParams, i);
    If (getEstimatedRowCount() == 0) {}
    Line = createRow().
    insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    }
    }

    Nothing works well. I want to be able to use a wizard to create a record of master / detail in presentation view shape-to-shape. Is it possible, using a detail group, or do I have to create a separate view object that contains two master entity objects / detail in it and then just use the only VO in the Group Assistant of JHeadstart.

    This seems a very basic requirement, I clearly do something wrong!

    See you soon,.
    Brent

    Brent,

    To start in design mode, you must create the Group NewDeptEMp as a top-level group, so he will have his own taskflow. You can then define the new display line on the input property.

    In your wizard NewDept, you create a group of the region DIRECTLY under the container of the separatePages region, check "Include as ADFc region" then select the NewDeptEMp group.

    To work around the error that you got during the generation of the group in the region as an immediate child of the container sepeartePages, use the following code to formGroupRegion.vm:

    # revision_history
    # Steven Davelaar 28-sep-2011
    Additional support # 1.2 for the group in the region as child of separatePages region container
    Team JHeadstart # 30-sep-2006
    Historical revisions # 1.1 added, the basic version is 10.1.3.0.97 (SU1)

    #if ($JHS.page.itemRegion)
    #JHS_PARSE ($JHS.page.itemRegion.templateIdentifier $JHS.page.itemRegion)
    #elseif ($JHS.page.regionContainer)
    #JHS_PARSE ($JHS.page.regionContainer.templateIdentifier $JHS.page.regionContainer)
    #elseif ($JHS.page.groupRegion)
    #JHS_PARSE ($JHS.page.groupRegion.templateIdentifier $JHS.page.groupRegion)
    #end

    Steven Davelaar,
    Jheadstart team.

  • Unique constraint on the values in both directions

    I'm looking to create a unique constraint that works in two ways. Say I got a constraint unique in columns 1 and 2. I want it to be impossible for the two lines below the two exist at the same time. Is there a way to do this? I googled around for a while now and I found nothing that works so far.

    Header 1 Header 2
    DogCAT
    CATDog

    Hello

    You can create an index based on a single function:, like this:

    CREATE UNIQUE INDEX table_x_header_1_header_2

    ON table_x (LESS (header_1, header_2)

    More LARGE (header_1, header_2)

    );

    How will you use these values?  You might be better to simply create a regular old unique constraint, but also have a CHECK constraint to ensure that header_1<= header_2. ="" that="" way,="" when="" you="" want="" to="" search="" for="" the="" combination="" ('cat',="" 'dog')="" you="" won't="" have="" to="" search="" for="" ('dog',="" 'cat')="">

  • AM question of Passivation on the creation of master / details (composition)

    Hi all

    I recently discovered some problems at our request on the passivation of the AOS.

    After reading some time on the web, I disabled the AM pooling on our application for testing on my built-in server that our request is 'activation-safe'

    After that, I have the following error when I try to create a new line on a "actually dated VO:

    java.lang.ArrayIndexOutOfBoundsException: 1
    at oracle.jbo.server.ViewObjectImpl.bldEffectiveDateKeys(ViewObjectImpl.java:15914)
    at oracle.jbo.server.ViewObjectImpl.bldKeysForMovingRows(ViewObjectImpl.java:15736)
    at oracle.jbo.server.ViewObjectImpl.moveRows(ViewObjectImpl.java:16096)
    at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:14096)
    at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:14395)
    at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1557)
    at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1573)
    at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1629)
    at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7668)
    at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7649)
    at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:7658)
    at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3828)
    at oracle.jbo.server.EntityImpl.handleEffectiveDateRowCreate(EntityImpl.java:11669)
    at oracle.jbo.server.EntityImpl.handleEffectiveDateOperations(EntityImpl.java:11585)
    at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:2652)
    at oracle.jbo.server.EntityImpl.validateChildren(EntityImpl.java:2364)
    at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:2511)
    at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:2666)
    at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4577)
    at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:1620)
    at oracle.adf.model.binding.DCBindingContainer.validateReferredDataControls(DCBindingContainer.java:4411)
    at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:4327)
    at oracle.adf.model.binding.DCBindingContainer.validate(DCBindingContainer.java:4259)
    at oracle.adf.controller.internal.binding.TaskFlowRegionController.validateRegion(TaskFlowRegionController.java:311)
    at oracle.adf.model.binding.DCBindingContainer.validate(DCBindingContainer.java:4249)
    at oracle.adf.controller.internal.binding.TaskFlowRegionController.validateRegion(TaskFlowRegionController.java:311)
    at oracle.adf.model.binding.DCBindingContainer.validate(DCBindingContainer.java:4249)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.validateModelUpdates(PageLifecycleImpl.java:303)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.validateModelUpdates(FacesPageLifecycle.java:71)
    to oracle.adf.controller.v2.lifecycle.Lifecycle$ 6.execute(Lifecycle.java:190)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
    at $200 (ADFPhaseListener.java:34) oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access
    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ 3.after(ADFPhaseListener.java:428)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:88)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:520)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)


    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    If the AM pooling is enabled, no errors...

    No idea what means this exception?

    I use JDev 11.1.1.7, let me know if you need additional information on the VO, entity or something else...

    Many thanks for the suggestions,

    So what solved my problem was simply uncheck the "cascade update key attributes" relative to the association (composition). I still don't understand why that would be a problem to check if...

    No restrictions on Association (composition) with the option "Cascade update key attributes" checked when passivation/activation takes place on a newly created on two line master-detail VO?

  • Unique constraint during the race error collecting statistics of schema

    Hello
    I get this error periodically during execution to collect statistics of schema
    In GATHER_SCHEMA_STATS , schema_name= ALL percent= 40 degree = 8 internal_flag= NOBACKUP
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    I went thru notes 470556.1 , but I have not applied patch 5876047 according to the note.

    I can truncate table FND_STATS_HIST? Is it safe to truncate this table?

    Thank you
    ARS

    Published by: user7640966 on January 2, 2011 23:58

    Hi Ars;

    If I suggest his prod, make sure you have a valid backup of your system and also raise sr and confirm with oracle support. If you are on the clone or test, such as mention of doc first to backup table FND_STATS_HIST (make sure that you have a valid backup), truncate and repeat the test question

    Respect of
    HELIOS

  • Question of the Datagrid/accordion/master / detail

    I have a simple little application that I am trying to go. Available is an accordion with 3 components, each component has a Datagrid filled from MySql based on the WHERE clause of the same table (so each row on the grid of data regardless of component has the same structure). I can fill a panel detail or points of a single pane/Datagrid (ie. dg1.selectedItem.field) with a hardcoded DataSource. What approach would be to allow the Panel/form to be filled with all the Datagrids (dg1, dg2, dg3) without having to duplicate the code 3 times. I am VERY new to OOP but trying. Thanks in advance for any help and advice.

    "EWN - CMI" wrote in message
    News:gjc9pq$SHT$1@forums. Macromedia.com...
    > Yes, you figure you might reassign, but either I didn't
    > How
    > to do (arrayCollectionvar1 = arrayCollectionvar2).

    No, which will only create two tables that link to the same table.
    What you need to do, it is something like:

    private var ac1:ArrayCollection = new ArrayCollection();
    private var ac2:ArracyCollection = new ArrayCollection();
    private var ac3:ArrayCollection = new ArrayCollection();
    private var arrayToLoad: ArrayCollection collection;

    private function sendService (): void {}
    send your service here
    ...
    arrayToLoad = ac1, ac2 //or or ac3
    }

    private function onServiceResult (): void {}
    arrayToLoad = event.result;
    No matter what picture said you it load is now loaded with the result
    }

    But honestly, I wonder if you would be better to simply load all
    in an ac and using a filterFunction function to take the place of the place WHERE
    clause.

    > I finally created a
    > second connection and managed to make it work. Thanks for the help.

    You should probably refactor now and fix it ;-)

    > NOW - a really weird problem (I'm so late in this part).
    >
    > / / Extract the image associated with the item selected in the grid
    > private function getImage (): void {}
    > var cartGrid:DataGrid = dg.
    > var imageSource:String = ' assets /' + cartGrid.selectedItem.statsfile;
    > var movieSource:String = ' assets /' + cartGrid.selectedItem.moviefile;
    > / / swfLoader.load (movieSource);
    > stat.load (imageSource);
    > }
    >
    >
    > backgroundColor = "#D3CDB4" borderStyle = "framed" backgroundAlpha = "0.5".
    > borderColor = "#020202" >
    >
    > complete = "swfLoaded (event); » />
    >
    >
    > If I Uncomment the swfLoader line in the function, I get an error
    > #1009:
    > Cannot access a property or method of a null object reference.
    >
    > If I remove the code and test it - it works fine. I don't have a clue
    > since
    > This should be pretty basic and it drives me crazy.

    Probably a timing issue. Make sure that the swfLoader actually exists before you
    address it. Without more information about what is happening in your code, I can't
    speculate as to what might be the problem of synchronization.

    > Simple get another question, how in Flex a new 'compile' each
    > time,
    > it seems that some changes are not displayed the first time that the application is
    > generated
    > after a code change?

    Check project > build automatically

    HTH;

    Amy

  • a unique index or unique constraint on the issue of view Matt

    10.2.0.3

    I have an OLTP table and a matte view to fast refresh of the table in the warehouse. I have unique indexes on the matte view just as I have on the OLTP table. Of course, it's a bad idea because the updating Oracle on mattress views mechanism does not apply to the dml in the same order that it occurred on the side of OLTP? Should I get rid of all the unique indexes on views mattress in my warehouse and create regular index because of their unique nature will just happen because the side OLTP has a unique index? What will be the impact on the performance of the queries? Here's the alert log...

    Journal of owp2 alerts
    =======================
    ORA-12012: error on auto work 1595
    ORA-12008: error path refresh materialized view
    ORA-00001: unique constraint (SMS_AR. IU02_ROUTE_REF_MRKR) violated
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 510
    ORA-06512: at line 1
    ORA-00001: unique constraint (SMS_AR. IU02_ROUTE_REF_MRKR) violated
    ORA-00610: internal error Code
    ORA-12012: error on auto work 260282
    ORA-30439: updating of the ' ORA-30439: updating of the 'SMS_AR MV_ROUTE_REF_MRKR' failed due to the ORA-12008: error in the path of refresh materialized view
    ORA-00001: unique constraint (SMS_AR. IU02_ROUTE_REF_MRKR) violated
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2254
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2460
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2429
    ORA-06512: at "SMS_AR.PA_PIES_WAREHOUSE", line 44
    ORA-06512: at line 2
    ORA-20000: index 'SMS_AR '. "' I01_MV_PIES_INV_REFMKR ' or the partition of this index is unusable

    Mark Reichman wrote:
    I think that this problem is resolved... Unless someone has something else to add. I have not tried yet... But it seems to be valid. I did a test and a unique constraint can be delayed in fact creates a non-unique index. So I need to remove my unique index on my matte view and create unique constraints can be delayed.

    Or...

    forget the unqiue part and simply change the indexes not unique because the main table has a unique index and guarantees uniqueness for me and the matte view will simply copy whats in the main table.

    Mark,

    the solution seems reasonable. Just a note: If you use a "reportable" unique constraint Oracle ignores any attempt to perform a direct-path insert of access and still stations conventional insert generating undo and many more again.

    As long as you do only a 'rapid' refresh, it should not matter, but in case you deal with refreshs full large MVs, this could make a difference when running not atomic refreshs (who can take advantage of the direct-path inserts / DML etc. at the same time)...

    Then you can consider using only non-unique index rather than the constraint may be delayed if performance can matter and given the fact that you should never see duplicates in the MV because of the constraint on the base table.

    Furthermore, you can use a non-unique index to apply a not reportable unique/primary key constraint as well, it is supported. You just need to create the index yourself before you set the constraint or using explicit syntax "CREATE INDEX" of the constraint clause.

    For more information, I wrote a note on this problem "may be deferred" some time ago:

    http://Oracle-Randolf.blogspot.com/2008/07/Deferrable-constraints-and-direct-path.html

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Show the rowcount in master detail

    Hello

    I ve had a link to mister / detail between the tables.

    In my application there is a window for the masterinformation and a button to open the detailtable.

    now, I want to show the number of detailrows in the masterwindow.

    Aku

    Hello

    Just do a count of sql on the secondary table.

    for example.
    master query

    select
    m.master_id,
    ...
    (select count(*) from detail_table d where d.master_id = m.master_id) detail_row_count
    from
    master_table m
    

    -chris

  • Breach of integrity on the programs of master-details

    HIE

    I dept and the location of BC4J components which is, deptEO, locEO and association based on location code (which is pk location) and corresponding then link village and view.

    I'm making sure to set the value of locationId in some locationId attribute. But at the time, she raises the integrity violation exception parent key not found.

    One guess what could be bad?

    http://download.Oracle.com/docs/CD/E14571_01/Web.1111/b31974/bcadveo.htm#CEGJAFCF is my guess

  • Check spelling Thunderbird displays in the form of words of errors that are not in the draft text mail.

    I'm running Thunderbird 24.5.0 on a system Windows 8.1 (both newly installed). According to Windows / Microsoft Update updates only in circulation are both updates optional (for Silverlight and Bing Office, nor who have or want to).

    Today I prepared a letter of project, that has been saved in the subfolder 'Project' of 'local folders '. After further review and editing, I pressed the "Send" button to send the e-mail message. As expected, the window "Check spelling" popped up and said problems with a few words, who were treated by variously by adding them to the dictionary, fix or ignore the. When it reaches the end of the text, however, the spelling continued to draw words hat, presenting more than thirty extra "mistakes".

    If this is of any help, these words seem to be 'technical' nature, which suggests that the spelling might have gotten in the part of the document or the system where it shouldn't be. Include "charset", "mso" (multiple instances), 'msoNormal', 'msoChpDefault', 'WordSection', 'qformat', 'ANSI' and 'bidi '.

    I might add that at the beginning of my Thunderbird request and in particular the structure and the content of the 'Local folders' hierarchy, have been determined by the content of a profile file created on my old Windows XP system via an import in Outlook Express, which was in turn copied everywhere in my new machine. The project email which is the subject of this question was however prepared entirely on the new system.

    Thanks for your input, Matt.

    I entered all the text in the first box above. It was intended to provide an accurate description, with specific examples, the problem I had.

    However, further investigation, stated that the problem only occurred when the original text was seized by an account. As a result, I just found out the signature html for this account file was damaged and contained a lot of invisible extra hardware, which the text identified by the spell check.

    Recreate a clean version of the signature for the account file solved the problem.

Maybe you are looking for