JBO-26048 error after insert delete commit

Using JDeveloper 10.1.2 running local OC4J against Oracle 9i database
* JBO-26048: Constraint "APPLREFLTR_PK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO DCSAT_APPL_REF_LETTER(APPLICANT_ID,LETTER_ID,LETTER_INF,CREATED_BY,CREATED_DATE,UPDATED_BY,UPDATED_DATE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING APPLICANT_ID INTO :8; END;".
* ORA-00001: unique constraint (APPTRACK.APPLREFLTR_PK) violated ORA-06512: at line 1
This was working yesterday??? I was so close then spent a day trying to track down what broke. I tried changing the database primary key to deferrable, which just changed the error message to one that said I had too many primary keys.
Basically the following code inserts a blank row into the view object. It then looks for an existing record, if found row.remove() is called on the found row. I then update the primary key in the current record from data on the form. (The primary key is set as a dbsequence, but there isn't a trigger to set it.) then commit. I was thinking that it was the chronological order bit that is listed in the latest ADF documentation. The thing is, this did work. A case of turning off the computer, removing all class files, rebuilding the tables and running the app - now broken...
I would appreciate ideas on where to troubleshoot, or help on how to troubleshoot this one.
Thanks,
Ken
I am uploading files into an ORDSYS.ORDDOC datatype following example 3 from Steve Muench's weblog. Here is the code in my DataActionForward:
<code>
public class UploadReferenceLettersAction extends DataForwardAction {
protected void processUpdateModel(DataActionContext actionContext) {
System.out.println("*** UploadReferenceLettersAction.processUpdateModel() ***");
super.processUpdateModel(actionContext);
if (!(handlingEvents(actionContext))) {
/* Create a blank record in the model and set it as the current row - only the first time in. */
BindingContext bc = actionContext.getBindingContext();
DCDataControl dc = bc.findDataControl("ApptrackModuleDataControl");
ApptrackModule service = (ApptrackModule)dc.getDataProvider();
service.insertRowRefLetterView();
protected void findForward(DataActionContext actionContext) throws Exception {
System.out.println("*** UploadReferenceLettersAction.findForward() ***");
/* Try to catch errors instead of the default error handler. */
try {
List events = actionContext.getEvents();
if (events != null && events.size() > 0) {
ListIterator li = events.listIterator();
while (li.hasNext()) {
System.out.println("UploadApplicantResumeAction.findForward()- event : " + li.next().toString());
} catch (Exception e) {
System.out.println(e.getMessage() );
// e.printStackTrace(System.out);
super.findForward(actionContext);
public void onCommit( DataActionContext ctx ) {
System.out.println("*** UploadReferenceLettersAction.onCommit() ***");
/* Get LetterId from the form
DCBindingContainer bindings = ctx.getBindingContainer();
DCControlBinding binding;
binding = bindings.findCtrlBinding("LetterId");
String letterId = (binding != null) ? binding.toString() : "";
DBSequence letterID = new DBSequence(letterId);
/* get applicantId */
HttpSession session = ctx.getHttpServletRequest().getSession();
String applicantId = "" + (String)session.getAttribute("applicantid");
DBSequence applicantID = new DBSequence(applicantId);
/* Remove and existing record with applicantId and letterId */
BindingContext bctx = ctx.getBindingContext();
DCDataControl dc = bctx.findDataControl("ApptrackModuleDataControl");
ApptrackModule service = (ApptrackModule)dc.getDataProvider();
// service.deleteRefLetterByApplicantidLetterid(applicantId, letterId); // passing values as Strings
service.deleteRefLetterByApplicantidLetterid(applicantId); // passing values as Strings
/* Update the currentRow */
System.out.println("UploadReferenceLettersAction.onCommit() - applicantId = " + applicantId);
// System.out.println("UploadReferenceLettersAction.onCommit() - letterId = " + letterId);
DCBindingContainer bc = ctx.getBindingContainer();
DCIteratorBinding iter = bc.findIteratorBinding("ApplRefLetterView1Iterator");
Row r = iter.getCurrentRow();
r.setAttribute("ApplicantId",applicantID); // Setting value that is of type DBSequence
// r.setAttribute("LetterId",letterID); // Setting value that is of type DBSequence
/* Commit the transaction */
System.out.println("UploadReferenceLettersAction.onCommit() - Saving upload starting");
if (ctx.getEventActionBinding() != null) {
ctx.getEventActionBinding().doIt();
System.out.println("UploadReferenceLettersAction.onCommit() - Saving upload complete");
ctx.setActionForward(ctx.getActionMapping().findForward("success"));
public void onRollback(DataActionContext ctx) {
System.out.println("*** UploadReferenceLettersAction.onRollback() ***");
ctx.setActionForward(ctx.getActionMapping().findForward("Edit"));
if (ctx.getEventActionBinding() != null) {
ctx.getEventActionBinding().doIt();
protected boolean handlingEvents(DataActionContext ctx) {
List events = ctx.getEvents();
return (events != null) && (events.size() > 0);
</code>
In my ApplicationModule, I have the following methods for adding and deleting code:
<code>
public void insertRowRefLetterView() {
ViewObject vo = getApplRefLetterView1();
Row aRow = vo.createRow();
vo.insertRow(aRow);
vo.setCurrentRow(aRow);
public void deleteRefLetterByApplicantidLetterid(String applicantId) {
Key k = new Key(new Object[] { new DBSequence(applicantId) });
System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - key = " + k.toStringFormat(false));
ViewObject vo = getApplRefLetterView1();
Row[] r = vo.findByKey(k, 1);
if (r.length < 1) {
System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - No key to delete");
} else {
System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - Found key to delete");
Row rowFound = r[0];
String appId = rowFound.getAttribute("ApplicantId").toString();
System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - appId = " + appId);
rowFound.remove();
return;
</code>

I ran again with the -Djbo.debugoutput=console
There was one line that didn't seem right:
EntityCache:add WARNING - new row key matches a removed row
Shortly after this, I get the primary key violation.
*** UploadReferenceLettersAction.onCommit() ***
ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - key = 00010000000132
ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - Found key to delete
ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - appId = 2
[472] OracleSQLBuilder Executing Select on: DCSAT_APPL_REF_LETTER (true)
[473] Built select: 'SELECT APPLICANT_ID, LETTER_ID, LETTER_INF, CREATED_BY, CREATED_DATE, UPDATED_BY, UPDATED_DATE FROM DCSAT_APPL_REF_LETTER ApplRefLetter'
[474] Executing LOCK...SELECT APPLICANT_ID, LETTER_ID, LETTER_INF, CREATED_BY, CREATED_DATE, UPDATED_BY, UPDATED_DATE FROM DCSAT_APPL_REF_LETTER ApplRefLetter WHERE APPLICANT_ID=:1 FOR UPDATE NOWAIT
[475] QueryCollection: afterRemove(1)
[476] ViewRowCache: removeReference, vr id = 6
[477] Delete [DeleteEvent: ApplRefLetterView1 rowIndex=1 countB4=2 count=1 rmvFromTab=true]
UploadReferenceLettersAction.onCommit() - applicantId = 2
UploadReferenceLettersAction.onCommit() - Saving upload starting
[478] EntityCache:add WARNING - new row key matches a removed row
[479] [UpdateEvent: ApplRefLetterView1 rowIndex=0 attrIndices=0]
[480] OracleSQLBuilder: SAVEPOINT 'BO_SP'
[481] [UpdateEvent: ApplRefLetterView1 rowIndex=0 attrIndices=5]
[482] [UpdateEvent: ApplRefLetterView1 rowIndex=0 attrIndices=6]
[483] OracleSQLBuilder Executing, Lock 1 DML on: DCSAT_APPL_REF_LETTER (Insert)
[484] INSERT buf ApplRefLetter>#i SQLStmtBufLen: 480, actual=178
[485] BEGIN INSERT INTO DCSAT_APPL_REF_LETTER(APPLICANT_ID,LETTER_ID,LETTER_INF,CREATED_BY,CREATED_DATE,UPDATED_BY,UPDATED_DATE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING APPLICANT_ID INTO :8; END;
[486] OracleSQLBuilderImpl.doEntityDML failed...
[487] X/Open SQL State is: 23000
[488] java.sql.SQLException: ORA-00001: unique constraint (APPTRACK.APPLREFLTR_PK) violated
ORA-06512: at line 1
Thanks! Ken

Similar Messages

  • Error after insert, delete, insert operations

    Hi,
    i have another problem with toplink. I have main table and dependent table in jspx page. Dependent table shows collection from main POJO object. Now, when i call create to dependent table, fill the row and call update on main, everything is Ok, the object from dependent table is inserted into database and the main object is updated.
    After that i again edit the main object and dependent row marks as deleted (by field "deleted" in database) so the object disappears.
    But when i again try to insert a row in dependent table and call update on main object i get an exception
    javax.faces.el.EvaluationException: javax.ejb.EJBException: V�jimka [TOPLINK-7197] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Popis v�jimky: V�jimka p?i ur?ov�n� zm?n. Prim�rn� kl�? nelze nastavit na hodnotu null.; nested exception is: V�jimka [TOPLINK-7197] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Popis v�jimky: V�jimka p?i ur?ov�n� zm?n. Prim�rn� kl�? nelze nastavit na hodnotu null.
    Primary key cannot be set to null. (my translation)
    it looks like toplink call update instead of insert on an object ... why is that ?
    thanks for help.
    I have Jdeveloper version 10.1.3.0.4(SU5)

    I am having a similar problem, did you find a solution to this yet?
    Thanks for any info.

  • Catch a JBO-26041 error on insert, but continue processing

    re-post:
    Does anyone know if this is possible?
    I'm creating new rows in a ViewObject within a loop. It's possible that the record that I'm trying to create already exists, so I want to catch a JBO-26041 error and basically ignore it (don't insert/create new row) and continue processing/creating rows within the loop. Committing at the end of the loop.
    Is this possible?
    Thanks!
    -Teri Kemple
    I've tried the following:
    for (int i = 1; i < objectIdList.length; i++) {
    try {
    row = vo.createRow();
    row.setAttribute("ScreenObjectId", objectIdList);
    row.setAttribute("AccessId", accessId);
    am.getTransaction().postChanges();
    } catch (JboException je) {
    if ("26041".equals(je.getErrorCode)))) {
    // ignore error, don't insert
    ????? what can I do here?
    } /// for loop
    if (am.getTransaction().isDirty()) {
    am.getTransaction().commit();

    Teri:
    This looks like a duplicate thread. Please refer to
    Catch a JBO-26041 error on insert, but continue processing
    Thanks.
    Sung

  • JBO-35007 error after custom navigation

    I have a SearchPersons page that has a Search Form and table for displaying results and Information About Person for displaying data about single person.
    When there is many results, data is displayed in the same page, later user can access Information About Person page via commandLink in table. Other story is when query returns one result- navigation rule navigates directly to Information About Person page. I have created SearchPersonsBean for handling these two different situations.
    The problem is when I try to go back from Information About Person page to SearchPersons page by clicking back button and try to use Search again, I get “JBO-35007: Row currency has changed since the user interface was rendered. The expected row....“. Also I need to have this person’s information in my result table, but I get it just after I get the JBO-35007 error.
    When I am removing my if (items == 1) statement from SearchPersonsBean, I get usal behaviuor – even if search returns one person result is displayed in the same page.
    So the problem is deffinetly in this if (items == 1) statement, but I don’t know how to fix this. Any kind of help would be greatly appreciated.
    Here is my code
    Simplified view of SearchPersons page:
    <af:panelBox>
    <!--Search parameter imputs-->
    <af:commandButton id="searchButton"
    actionListener="#{bindings.ExecuteWithParams.execute}"
    action="#{searchPersonBean.searchAction}"/>
    </af:panelBox>
    <af:table binding="#{searchPersonBean.resultTable}"
    rendered="#{adfFacesContext.postback}"
    value="#{bindings.SearchPersons.collectionModel}" var="row"
    rows="#{bindings.SearchPersons.rangeSize}"
    first="#{bindings.SearchPersons.rangeStart}" width="70%">
    <af:column headerText="#{lbl['personSearchResults.personalNumberLabel']}"
    sortProperty="PrsId" sortable="true">
    <af:commandLink action="view"
    actionListener="#{bindings.ExecutePersonInfoWithParams.execute}">
    <af:setActionListener from="#{'search'}"
    to="#{userStateBean.returnNavigationRule}"/>
    </af:commandLink>
    <<!--Other columns-->
    </af:table>
    PageDef:
    <executables>
    <iterator id="SearchPersonsIterator" RangeSize="10"
    Binds="SearchPersons" DataControl="AppModuleDataControl"
    RefreshCondition="${adfFacesContext.postback == false}"
    Refresh="renderModelIfNeeded"/>
    <variableIterator id="variables">
         <!—Search persons criterias->
    </variableIterator>
    <iterator id="PersonInformationIterator" Binds="PersonInformation"
    RangeSize="10" DataControl="AppModuleDataControl"
    RefreshCondition="${adfFacesContext.postback == false}"
    Refresh="renderModelIfNeeded"/>
    </executables>
    <bindings>
    <table id="SearchPersons" IterBinding="SearchPersonsIterator">
    <AttrNames>
    <!--atributes-->
    </AttrNames>
    </table>
    <action id="ExecuteWithParams" IterBinding="SearchPersonsIterator"
         <!—This action executes view query-->
    </action>
    <action IterBinding="PersonInformationIterator" id="ExecutePersonInfoWithParams"
    InstanceName="AppModuleDataControl.PersonInformation"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="95">
    <NamedData NDName="PersonCode" NDValue="${row.PrsCode}"
    NDType="oracle.jbo.domain.Number"/>
    </action>
    </bindings>
    </pageDefinition>
    SearchPersonsBean:
    public class SearchPersonBean {
    private Integer personCode = null;
    private CoreTable resultTable = null;
    public String searchAction() {
    // -- default outcome
    String ACTION_OUTCOME = NavigationResults.SUCCESS.outcome;
    DCIteratorBinding interatorBinding =
    (DCIteratorBinding) getBindings().get("SearchPersonsIterator");
    long items = interatorBinding.getEstimatedRowCount();
    if (items == 1) {
    interatorBinding.setCurrentRowIndexInRange(1);
    Row firstRow = interatorBinding.getCurrentRow();
    personCode = (Integer) firstRow.getAttribute("PrsCode");
    OperationBinding executePersonInfo =
    getBindings().getOperationBinding(
    "ExecutePersonInfoWithParams");
    executePersonInfo.getParamsMap().put("PersonCode", personCode);
    executePersonInfo.execute();
    // -- set return action (on Cancel)
    UserState.assignReturnNavigationRule("search");
    ACTION_OUTCOME = NavigationResults.VIEW.outcome;
    // -- reset table's range navigator possition
    getResultTable().setFirst(0);
    return ACTION_OUTCOME;
    //~--- get methods --------------------------------------------------------
    private BindingContainer getBindings() {
    BindingContainer bindings =
    (BindingContainer) JSFUtils.resolveExpression("#{bindings}");
    return bindings;
    public Integer getPersonCode() {return personCode;}
    public void setPersonCode(Integer personCode) {this.personCode = personCode;}
    public void setResultTable(CoreTable resultTable) {this.resultTable = resultTable;}
    public CoreTable getResultTable() {return resultTable;}
    }

    I have removed elements that are not involved in createing this error.
    My pageDef now looks like:
    <executables>
    <iterator id="SearchPersonsIterator" RangeSize="10"
    Binds="SearchPersons" DataControl="AppModuleDataControl"
    RefreshCondition="${adfFacesContext.postback == false}"
    Refresh="renderModelIfNeeded"/>
    <variableIterator id="variables">
    <!—Search persons criterias->
    </variableIterator>
    </executables>
    <bindings>
    <table id="SearchPersons" IterBinding="SearchPersonsIterator">
    <AttrNames>
    <!--atributes-->
    </AttrNames>
    </table>
    <action id="ExecuteWithParams" IterBinding="SearchPersonsIterator"
    <!—This action executes view query--> </action>
    </bindings>
    And my cusom bean:
    public class SearchPersonBean {
    private Integer personCode = null;
    private CoreTable resultTable = null;
    public String searchAction() {
    // -- default outcome
    String ACTION_OUTCOME = NavigationResults.SUCCESS.outcome;
    DCIteratorBinding interatorBinding =
    (DCIteratorBinding) getBindings().get("SearchPersonsIterator");
    long items = interatorBinding.getEstimatedRowCount();
    if (items == 1) {
    // -- set return action (on Cancel)
    UserState.assignReturnNavigationRule("search");
    ACTION_OUTCOME = NavigationResults.VIEW.outcome;
    // -- reset table's range navigator possition
    getResultTable().setFirst(0);
    return ACTION_OUTCOME;
    I feel that the problem is because the data in the result table is not created, when after search there is only one result and bean navigates straight to Information About Persons page. After I go back with back button, there is no result dispalyed in my result table and when I refresh the page - JBO-35007 pops.
    I have no idea how to force the result to be displayed before navigation to Information About Persons

  • JClient: after INSERT and COMMIT does not show the primary textfield value

    1. In my JClient master-detail form: When I insert a new record, enter data, and commit the changes... the master-panel's primarykey textfield is BLANK, when it should show the new auto-incremented number from the MySQL database. I have to close and open the form again to refresh that field again.
    2. In order to properly save new records in the detail-panel, I have to insert and save the above master-panel first. Is this the way JCLient handle master-detail forms?
    Thanks.

    Hi. Thanks for sharing your advice.
    Re my problem,
    if we have to refresh data by requery,i suggest you should use the way below:
    private JUNavigationBar navBar = new JUNavigationBar(true,false,true,false,true);
    navBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, navBar));
    // after insert ,call this method
    navBar.doAction(navBar.BUTTON_EXECUTE);Tried this out but my textfield still won't get refreshed. Here is the code I came up with:
        private JUNavigationBar navBar = new JUNavigationBar() {
                public void doAction(int button) {
                    if (button == JUNavigationBar.BUTTON_INSERT) {
                        super.doAction(button);
                        navBar.doAction(navBar.BUTTON_EXECUTE);
                        return;
                    super.doAction(button);
            };Re your problem,
    I am developing application with JDev + MySQL,encounted another problem,
    how can i get the primary key supported by auto_increment column after insert?
    i constructed a vo whose sql statement is
    select last_insert_id() as last_id to get the value of auto_increment column.
    i found it can't get the right value unless commit the transaction.
    Would u please tell me your way?Based on what I experienced, we dont have to do the SELECT statement above. MySQL does auto-increment the primarykey but the JClient form just cant show it immediately, unless we close and re-open the form.
    What did I do to refresh the primarykey during insert? Please note that I got this solution accidentally coz I'm still a newbie in Java.
    A user want to add a record:
    1. He presses the Insert button.
    2. He enters data into a component (ex. textfield)
    3. The component's action-performed event is fired, and the following code is run:
            DCJboDataControl dc = (DCJboDataControl)panelBinding.getDataControl();
            ApplicationModule am = dc.getApplicationModule();
            Transaction tr = am.getTransaction();
            dc.commitTransaction();
            ViewObject vo = am.findViewObject("TblaccountsView1");
            vo.executeQuery();
            vo.last();It simply commits the transaction, goes to last (new) transaction, and lets the user continue his data encoding.
    Hope it helps and I hope theres an even better way to do this.

  • Javascript Error after insert a Webpart into Page

    Hi everone, have you ever experienced getting error just after inserting a Webpart into page? I'm using Sharepoint Server 2013. These steps what I did:
    1. Create new page
    2. Click 'Add Webpart'
    3. Choose the webpart and click OK
    4. Webpart showed on page (simple table form)
    5. All ribbon controls are disable and there is javascript error on browser's console with message:
    SCRIPT1004: Expected ';' 
    Picture: http://i(dot)imgur(dot)com/UBM91b3(dot)png
    That line is not from my codes, it's automatically added by sharepoint after inserting webpart. Thanks for anyone who has workaround for this..
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContractReviewWP.ascx.cs" Inherits="Mitrais.SP2013.ContractManagement.WebParts.ContractReviewWP.ContractReviewWP" %>
    <script type="text/javascript">
    $(function () {
    Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function (evt, args) {
    //datepicker
    $(".datePicker").datepicker();
    </script>
    <div id="divMain">
    <asp:UpdatePanel ID="upContract" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:HiddenField ID="currentStage" runat="server" />
    <h1>
    <asp:Label ID="lblFormTitle" runat="server" Text="Request"></asp:Label>
    Contract Review/Approval
    </h1>
    <div class="divControl">
    <table>
    <tr>
    <td>
    <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorTitle" runat="server" ErrorMessage="*" ControlToValidate="txtTitle" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequestType" runat="server" Text="Request Type"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlRequestType" runat="server" CssClass="dropdownRequestType" OnSelectedIndexChanged="ddlRequestType_SelectedIndexChanged" AutoPostBack="true">
    </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblDocumentType" runat="server" Text="Document Type"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlDocumentType" runat="server">
    </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequestedBy" runat="server" Text="Requested By"></asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor Enabled="false" ID="pplRequestedBy" runat="server" AllowEmpty="false" MultiSelect="false" SelectionSet="User" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequiredDate" runat="server" Text="Required Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="dtRequiredDate" runat="server" CssClass="datePicker"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorRequiredDate" runat="server" ControlToValidate="dtRequiredDate" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <asp:Panel ID="pnlRequestedDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblRequestedDate" runat="server" Text="Requested Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="dtRequestedDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredValidatorDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblClientCode" runat="server" Text="Client Code"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtClientCode" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorClientCode" runat="server" ControlToValidate="txtClientCode" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblSSOCode" runat="server" Text="SSO Code"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtSSOCode" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorSSOCode" runat="server" ControlToValidate="txtSSOCode" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <asp:Panel ID="panelCPC" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblCPC" runat="server" Text="CPC"></asp:Label></td>
    <td>:</td>
    <td><asp:TextBox ID="txtCPC" runat="server"></asp:TextBox></td>
    <asp:CustomValidator ID="customValidatorCPC" runat="server" ControlToValidate="txtCPC" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:CustomValidator>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblValue" runat="server" Text="Value (US$)"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlValue" runat="server"></asp:DropDownList>
    </td>
    </tr>
    <asp:Panel ID="panelCRM" runat="server">
    <tr>
    <td><asp:Label ID="lblCRMUpdated" runat="server" Text="CRM Updated"></asp:Label></td>
    <td>:</td>
    <td>
    <asp:CheckBox ID="checkBoxCRMUpdated" runat="server" />
    </td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblAgreement" runat="server" Text="Agreement Authorisation Level"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlAgreement" runat="server"></asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblAssignedTo" runat="server" Text="Assigned To"></asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor ID="pplAssignedTo" runat="server" AllowEmpty="true" MultiSelect="false" SelectionSet="User" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="dropdownStatus"></asp:DropDownList>
    </td>
    </tr>
    <asp:Panel ID="panelStartDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtStartDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <asp:Panel ID="panelEndDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtEndDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <asp:Panel ID="pnlTemplate" runat="server">
    <tr id="rowTemplate">
    <td>Selected Template</td>
    <td>:</td>
    <td>
    <span id="selectedTemplateSpan"></span>
    <asp:HiddenField ID="hdnSelectedTemplate" runat="server" />
    <asp:Button ID="buttonLookupTemplate" runat="server" Text="Choose Template" CssClass="buttonTemplate" /></td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblLatestDocument" runat="server" Text="Latest Document"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:HyperLink ID="linkLatestDocument" runat="server"></asp:HyperLink>
    <asp:FileUpload ID="fuLatestDocument" runat="server" />
    <asp:CustomValidator ControlToValidate="fuLatestDocument" OnServerValidate="LatestDocument_ServerValidate"
    ErrorMessage="The document with same name already exist, please use different name." SetFocusOnError="true" runat="server" ForeColor="Red" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblTaggedPerson" runat="server" Text="Person Tagged">
    </asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor ID="peopleTaggedPerson" runat="server" MultiSelect="true" AllowEmpty="true" SelectionSet="User" />
    </td>
    </tr>
    </table>
    </div>
    <div>
    <table class="tbButton">
    <tr>
    <td></td>
    <td>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" OnClientClick="PreSubmit();" ValidationGroup="SubmitValidation"/>
    </td>
    <td>
    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click"/>
    </td>
    <asp:TextBox ID="txtCheck" runat="server" Text="Add" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtTempID" runat="server" Style="visibility: hidden;"></asp:TextBox>
    <asp:TextBox ID="txtIsAddNew" runat="server" Text="true" Visible="false"></asp:TextBox>
    </tr>
    </table>
    </div>
    <div id="tabContainer">
    <div class="tabs">
    <ul>
    <li id="tabHeader_1">Comment</li>
    <li id="tabHeader_2">Document Template History</li>
    </ul>
    </div>
    <div class="tabscontent">
    <div class="tabpage" id="tabpage_1">
    <div id="phComment" runat="server"></div>
    </div>
    <div class="tabpage" id="tabpage_2">
    <div id="phDocHistory" runat="server" />
    </div>
    </div>
    </div>
    </ContentTemplate>
    <Triggers>
    <asp:PostBackTrigger ControlID="btnSubmit" />
    </Triggers>
    </asp:UpdatePanel>
    <asp:HiddenField ID="hfComment" runat="server" />
    </div>
    <script type="text/javascript">
    $("#<%= upContract.ClientID %>").ready(function () {
    setTimeout(MitraisCM.contract(), 5000);
    </script>

    Hi,                                                             
    Per my knowledge, such error might occurred when we modify the HTML code of the page, through SharePoint Designer or Content Editor Web Part.
    What web part you added into the page?
    What if you create another new page and insert a list into it, will the error occurs?
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Captivate 7 - Connection error after inserting videos.

    Hi,
    I'm new to working with Captivate so please bare with me. When I embed a F4v video and publish it to a network share as html/swf I'm able to get the video to play correctly if it's accessed through a mapped drive but not through a \\server\share format.

    You may need to add the server folder as a trusted location in your Flash Global Security settings:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    Another possibility is that the server involved is not set up to allow video files of this particular type.  Talk to your server administrators to see if F4V file mimetype is allowed.

  • Insert master and detail rows with Composition assoc generating JBO-26048

    I have the Master and Detail Entity Objects and made an Association linking them as Composition related.
    I have 2 ViewObjects. the MasterViewObject is composed of the Master entity object and 1 other udpateable object. the DetailViewObejct only contains the Detail entity Object.
    I tried to create a row on the masterviewobject and then immeidately create a detail row, and then commit, ADF issues a JBO-26048 error. Constraint "MY_FK" violated during post operation.... ".
    I don't know wahts wrong, but this should not be error should nit be appearing, as ViewObjects and the Links with Composition Association take care of populating the Foreign Keys of the detail. Or am I missing something here?

    The ADF Guide covers this problem, and I have a method that works as well on jdevguru.com. Take a look at the manual first, they have an indepth view on it and how to get it all to work together.
    Kelly

  • JBO-25054 after insert (with save) and immediate delete

    After inserting a record, saving it, and immediately marking it to ‘Delete’ and clicking on ‘Save’, then an error occurs:
    oracle.jbo.JboException: JBO-25054: Cannot locate the specified stack snapshot id: beforeModelUpdate at oracle.jbo.server.ApplicationModuleImpl.validateSnapshotName(ApplicationModuleImpl.java:7472) ...
    But after logging in again, the record can be deleted, but then the user has to remember which record has to be deleted.
    The application runs on Apache Tomcat 5.5.12 and is developed with JHS10.1.2.0.19 and JDeveloper 10.1.2.0.0.

    The problem was that there was a default value in the database, but not in BC4J, so if no value was filled in, then within the database, the default value was used, so there was inconsistency.

  • How-To "Refresh a table of data after inserting or deleting"

    I'd like to say a word on the how-to article "How to refresh a table of data after inserting or deleting a row using ADF".
    (http://www.oracle.com/technology/products/jdev/howtos/1013/updtable/index.html?_template=/ocom/technology/content/print)
    I spent a lot of time on it because I needed help in implementing simple CRUD functionality on a table, using JSF-ADF-TopLink technologies.
    While the the article does provide correct steps, it is in one important place not specific enough, so the reader may easily get stuck. In section "Refresh the data table", point 1: when you double click on the removeEntity() button, in Structure window, then you do not get the required dialog. You get CommandButton Properties dialog.
    You must click on the removeEntity() button in Editor's Design view. But even there you may get the CommandButton Properties dialog, not managed beans dialog.
    You may resolve that by going to JSF configuration file, faces-config.xml, and switch to Overview view. This will show you the managed beans that you have.
    Then, you may already have a backing bean for the page. You can use that and avoid creating a new managed bean.
    I could understand what the operations mean only after very careful reading of "Creating More Complex Pages", section "Overriding Declarative Methods" in JDeveloper Help (or in ADF Developer's Guide PDF document).
    In general: I believe that "ADF bindings" need more conceptual explanation, maybe in form of an article. Grammatical form "bindings" may create a false understanding that "bindings" are just references. But they are not -- ADF bindings are active objects that handle traffic between UI components and Data Controls. It seems that "bindings" even communicate among themselves. Maybe it would be more understandable to differentiate strictly between "binding objects" (or "binders"?), binding object definitions and binding object references.
    It would be very helpful to have a diagram showing grahically what specific binder objects are created in a small apllication (2-3 pages using 1-2 tables), with whom they communicate and what type of data is passed on.
    Priit

    Hi
    Thanks for your infos.
    Yes exactly I use almost the same code you have post here.
    Could You answer to my next questions?
    First - >what do you mean by saying that "it's not good idea using refreshing in IE?" Of course I use refreshing in backing_bean for my button "remove" that removes row, commit changes to database and refresh table, almost the same as You said in your post:
    Code in backing_bean is and comments on difference to Your code is below:
    public commandButton2_action1(){
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("removeEntity");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    //above remove entity, but I dont now if it do commit to database? So i do it below
    OperationBinding commit1 = bindings.getOperationBinding("Commit");
    commit1.execute();
    //and at the end I refresh my table, "findAllRezerwacja1 - it is an id of the methodAction, not the iterator -> is it ok? or should I change to Iterator id?
    OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
    requery.execute();
    return null;
    Page Definition code for this:
    <methodAction id="findAllRezerwacja1"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="findAllRezerwacja"
    RequiresUpdateModel="true" Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findAllRezerwacja_result"/>
    <table id="findAllRezerwacja2" IterBinding="findAllRezerwacja1Iter">
    <AttrNames>
    <Item Value="dataDo"/>
    <Item Value="dataOd"/>
    <Item Value="idRezerwacja"/>
    <Item Value="liczbaUczestnikow"/>
    <Item Value="prowadzacy"/>
    <Item Value="uwagi"/>
    </AttrNames>
    </table>
    <methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="removeEntity"
    RequiresUpdateModel="true" Action="999">
    <NamedData NDName="entity"
    NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    <action id="Commit" IterBinding="findAllRezerwacja1Iter"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" RequiresUpdateModel="true"
    Action="2"/>
    </bindings>
    //and rest of code for Iterator etc
    My second question is, why when you use refresh button in IE (I know is not recommended as You said, but sometimes user do it, so I want prevent situations that I will describe here) so when I press refresh button in IE exactly after removing one row by clicking my button, refreshing by pressing IE button is doing the same --> is deleting next row. How to stop deleting row, when for example user would press IE refresh button after pressing remove button for table. If I change selection in table after deleting row, and press refresh button in IE, instead of deleting row, I got error message: JBO-29000: JBO-35007: and
    JBO-35007. So where Im doing wrong. Maybe I should do sth with postback ? Could You help me? Thanks in advance
    Last one question: what is the difference between using delete and removeEntity from operations node? Im now reading carefully ADF Dev Guide, so I hope I can find infos there? But if You know, please answer to this question.
    Thanks

  • ERROR: JBO-26048 while createing a record.

    Hello,
    I have a table called ActivityTracker which has few Foreign Keys and one among them is for Activity_SubType (refering a table called Activity_Subtype). I am trying to insert a record in the ActivityTracker table using the following code:
    EntityDefImpl productDef = ActivityTracker_EOImpl.getDefinitionObject();
    ActivityTracker_EOImpl newActivity = (ActivityTracker_EOImpl) productDef.createInstance2(getDBTransaction(),null);
    newActivity.setAttribute("attributeName", "value");
    DBTransaction trans = getDBTransaction();
    trans.commit();
    I get the following error:
    ERROR: JBO-26048: Constraint "ACTIVITY_SUBTYPE_FK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO COEAMS.ACTIVITY_TRACKER(ACTIVITY_DATE,ASSOCIATE_NAME,ESU_DOMAIN,ACTIVITY_TYPE,ACTIVITY_SUBTYPE,ACTIVITY_DESCRIPTION,ACTIVITY_DURATION,ISU_NAME,CUSTOMER_NAME,ACCOUNT_NAME,CONTACT_NAME) VALUES (?,?,?,?,?,?,?,?,?,?,?) RETURNING ESU_DOMAIN INTO ?; END;".
    Please help. I have got stuck here.
    Thanks,
    Sanjay
    Edited by: Sanjay Bharatiya on Jun 15, 2009 5:05 AM

    Sanjay,
    it would help, if you tell us which jdev version and which techology (ADFBC, EJB, PL/SQL...) you are using.
    Timo

  • Error in after insert trigger

    Hello all,
    I have a question about after insert trigger. Will be new row inserted and commited if after insert trigger returns error? Thank you.
    regards,
    Miha

    What is the error that u r facing?
    there could multiple reasons for that. Basically, u can't put commit in the trigger (unless it is an autonomous transaction). Share the pseudo-code of u r triiger, so that , problem can be identified.
    Cheers,
    Ram Kanala

  • DB insert after DB delete in a single program on the same table

    Hi All,
    A program is first deleting some records from a databse table ( assume Table1)
    and it is trying to insert the same records back to the table Table1 with the same
    primary keys.
    This program is defective. It does not check against the table
    Table1 to verify that the commit work is completed after the delete,
    As a result sometimes when the database performance is slow or the
    record is locked by some other user,  is it is trying to insert records
    into the table with the same primary keys even before the delete work
    is committed to the database. The program is unable to insert records
    into the table with the same primary keys and hence terminating it and
    creating the Short Dump Message.
    The delete is committed to the database even after the program is
    terminated with a Short Dump Message. This results in the old records
    being deleted  without the new updated records being inserted into the
    table Table1.
    Please suggest a solution this problem.

    Hi,
    You need to create a ENQUEUE Function module for this one, nad before doing the Deletion Lock the table/entries using the above function module and do the deletion and insert the records then write the fucntion moduel DEQUEUE to release the lock
    secondly, before inserting the records, why don't you check whehter the record is already there in the table with the same primary keu, if the record is existed with the same primay key then do not insert that record.
    Regards
    Sudheer

  • Error while firing a trigger After Insert

    Dear All
    I have created a Table named Punches in user Punch
    and I have written a trigger after Insert on table Punches
    In that Trigger i am wrting some select Command
    and Insert command
    tables are located in Other User
    while firing the trigger it is showing Error.
    pl help

    Arbar Mehaboob - user553581 wrote:
    Dear All
    I have created a Table named Punches in user Punch
    and I have written a trigger after Insert on table Punches
    In that Trigger i am wrting some select Command
    and Insert command
    tables are located in Other User
    while firing the trigger it is showing Error.
    pl helpplease provide:
    1) your database version
    2) the table DDL's
    3) some sample data
    4) the trigger code
    5) the error message you're getting.
    without these, it is impossible to suggest an answer.

  • Error after deleting a user

    Hi,
    i have a big problem. I cannot change my process template,
    cause I get the error message:
    <i>Cannot retrieve activity template: User USER.PRIVATE_DATASOURCE.un:tftak1 doesn't exist!</i>
    But the User tftak1 is not the designer, but he was involved in the process as a default role.
    After I deleted that user I got that message.
    What could I do? I need fast help, because we want to start our testing phase...
    Thanks in advance
    Steve

    Hi Steve,
    An idea would be to recreate this user tftak1 and then to edit the process and remove it from the default roles.
    Other possibility would be to go to the Administration UI in GP and there to change the user assignement for the default roles.
    The extreme solution would be to forget your process and to create a new process object. Then you can add again your existing block to this process.
    Hope this helps,
    Best regards,
    David

Maybe you are looking for

  • Report for inquiries for all customers and material

    how can i see a report of all inquiries of all customer and materials is there any predefine report in sap we do have va15 but it does not list depending on the custmer or material, how can we do it for all customer thanks

  • How use easily photoshop elements 12 and bridge cs4 ?

    i use bridge to classify my photos .I would like to buy photoshop elements 12 but I don't want to use the organiser (i tryed before but all my photos are in double xith the organiser and its take too much place in my mac!) is it possible to use bridg

  • Skype to go number in Hungary

    I try to call my skype tp go numbers from my T-Mobil cell phone, and the operator message says that the number(s) are disconnected. All the country and area codes for the Skype to go numbers from Hungary start with the country code:36 then the area c

  • Inconsistent results from to_char(systimestamp,'D')

    If I run select systimestamp , to_char(systimestamp,'DAY') DAY, to_char(systimestamp,'D') DAY_OF_WEEK from dual thru SQL Developer or the SQL Workshop I get 20/APR/07 03:45:42.261382000 PM +10:00 FRIDAY 5 If I run the same query from within an APEX a

  • Missing Pre Order 500 Points for Shadow of Mordor.

    I preordered Shadow of Mordor on 9/19 and picked it up on release date.  Purchase point was posted to my account today, but I'm not seeing bonus points pending or posted to my account.