Problem about inserting records ? ?

hello ,
i want to insert record in table abc which have 3 column
i want to insert 2 values from xyz table and one values is from variable
i write following query
vMYQUERY :='INSERT INTO abc(NO, TYPE, SUB_TRAN) SELECT '||vSR_NO||',TYPE,SUB_TRAN FROM xyz ;
EXECUTE IMMEDIATE vMYQUERY;
is it correct ?
pankaj

Did it work?
You could try the USING clause;
SQL> create table abc(NO number, TYPE varchar2(10), SUB_TRAN varchar2(10))
Table created.
SQL> create table xyz(NO number, TYPE varchar2(10), SUB_TRAN varchar2(10))
Table created.
SQL> insert into xyz values(0,' col1', 'col2')
PL/SQL executed.
SQL> declare
   vmyquery varchar2(100);
   vsr_no number := 99;
begin
   vmyquery :='INSERT INTO abc(NO, TYPE, SUB_TRAN) SELECT :1,TYPE,SUB_TRAN FROM xyz' ;
   EXECUTE IMMEDIATE vmyquery USING vsr_no;
end;
PL/SQL procedure successfully completed.
SQL> select * from abc
        NO TYPE       SUB_TRAN 
        99  col1      col2     
1 row selected.

Similar Messages

  • Query about inserting records in queue

    Background:
    I am about to develop a seat booking system for a cinema ... To prevent inserting a record when a person books a seat, I'll generate a set of seat records in advance, and an operator will be responsible for booking seats for customers through my application with web interface, and, as a backend process, the system will UPDATE the seat availability by changing a flag in my table field.
    Question:
    To handle the situation, I may implement a servlet in 'SingleThreadModel' to make the booking prcess behaves in a first-in first-out manner, but the performance may be decreased. Can the BC4J model help me so that I could only allow one thread for the update process (i mean the seat availability updating) with a better performance framework construction? If possible, would you please also illustrate with sample code so that i can follow?
    Thanks for any replies!

    Hi,
    I agree with you that synchronizing the servlet access is not the optimal way to solve this problem. Dealing with
    row-level consistency is a typical issue for transactional applications. BC4J solves this problem by performing
    consistency checks before performing any DML. Consider the following scenario:
    Assume optimistic locking (i.e. row-level locks are not acquired when the update is made.
    Fairly typical for web applications).
    at t0 seat 1 is available
    at t1 user1 updates seat 1 as unavailable
    at t2 user2 updates seat 1 as unavailable
    at t3 user1 commits the transaction
    at t4 user2 attempts to commit the transation
    Now what should happen? As you have indicated above the application must prevent user2 from re-booking seat 1.
    Basically, BC4J does this by performing a consistency check before posting data to the database. If the database values
    at the time of post (and lock in the optimistic case) are not equal to the original database values then BC4J will throw a
    RowInconsistentException and not allow the transaction to complete.
    So, BC4J is already performing most of the work for you. As an application developer you have the choice of how to
    handle a RowInconsistentException or an AlreadyLockedException (may occur if user1 holds a lock on seat1 when
    user2 attempts to commit). For example, you may want to refresh the page with the updated record. This would
    give your operator an opportunity to select another available seat.
    Hope this helps.
    JR

  • Problem in inserting record in Siebel on demand's object thru web service

    Hi All,
    We are working on ‘Siebel on Demand’ (software as a service) CRM. We are using web service to communicate. We have WSDL files and we generated the code using Axis framework that comes along with Eclipse.
    We are able to login and logoff to the CRM through web service. Now we are trying to insert new object data into existing objects. We are currently trying with Lead object, but when we are trying to insert a record through web service the record gets inserted but the API throws following exception at the end:-
    SEVERE: Exception:
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    Since this is generated code by Axis, I think we need to do some fine tuning in it to handle this exception. If you are a web service expert or has worked on web service client code, your help is really appreciated. How could we handle this exception at our end?
    If you have any alternative way, please feel free to suggest me. Your inputs would certainly be of great value to us!
    Thanks
    Yash

    has anyone been able to insert the data using the insert tag in write back in obiee 11

  • Problem to insert records in the Infocube

    Hi Developer,
    When I effectue the upload in the InfoCube (infosource: 2lis_02_scl) the records are trasmitted but not written on it. The same "update rule" in development system works right.
    Have someone any ideas of the problem?
    Thanks in advance!
    Domenico

    Hi Domenico,
    look at the monitor (detail tab) of your data load where your records are deleted !
    If there is something in your update rules (every record is deleted here) and your update rules are the same than in your DEV environment...check in PSA if your records coming from R/3 have something different (e.g. processkey not filled !)
    Let me know...
    Bye,
    Roberto

  • Some problems about insert String into JTextPane

    here is the colde:
    HTMLEditorKit kit = new HTMLEditorKit();
    HTMLDocument doc =(HTMLDocument)kit.createDefaultDocument();
    String str="hello world";
    SimpleAttributeSet attr =new MutableAttributeSet();
    StyleConstants.setFontFamily(attr, "Times New Roman");
    StyleConstants.setFontSize(attr, 12);
    StyleConstants.setBold(attr, true);
    StyleConstants.setBackground(attr, UIManager.getColor("control"));
    doc.insertString(1,str,attr);
    JTextPanel panel =new JTextPanel();
    panel.setEditorKit(kit);
    panel.setDocument(doc);
    text "hello word" of document can be show correctly,i save it as a .html file then open it a strange problem occured,i can't see the word "hello world" in panel,i can't find the word "hello word" in html source code except some tags of html,who can tell me what's wrong?thanks in advanced!

    hello user457523
    I have found the reason to that error.It's because there's a trigger and ext_src_file_nm is populated by the trigger from another column ext_src_file_loc when inserting and I didn't give any value to ext_src_file_loc so ext_src_file_nm is null.
    I have disabled that trigger and now I get new errors.When I traced to a line of Jave code I got missing source file warning,and the source file is also oracle.sql.CharacterSet.java.I can not trace into the source file and then I skipped that code and then I got new errors.I want to know how to trace into the jave code and find what's the matter.
    Thank you very much.

  • Problem inserting record using INSERT INTO

    I am an amateur web builder using some ColdFusion functionality to access information on an Access database. I know very little about ColdFusion syntax, but I'm using Dreamweaver CS3 to help generate most of the code. I'm working on an insert record page to create a user database with login information. I'm not sure what the problem is, but I'm getting a syntax error referencing this particular portion of the code:
    Syntax error in INSERT INTO statement.
    The error occurred in C:\ColdFusion9\wwwroot\Everett\register.cfm: line 22
    Below is the entire page with line 22 (referenced in the error message) in red. Any ideas?
    <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "register">
      <cfquery datasource="everettweb">  
        INSERT INTO Users ([First Name], [Last Name], [Email Address], Password)
    VALUES (<cfif IsDefined("FORM.first_name") AND #FORM.first_name# NEQ "">
    <cfqueryparam value="#FORM.first_name#" cfsqltype="cf_sql_clob" maxlength="255">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.last_name") AND #FORM.last_name# NEQ "">
    <cfqueryparam value="#FORM.last_name#" cfsqltype="cf_sql_clob" maxlength="255">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.email") AND #FORM.email# NEQ "">
    <cfqueryparam value="#FORM.email#" cfsqltype="cf_sql_clob" maxlength="255">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.password") AND #FORM.password# NEQ "">
    <cfqueryparam value="#FORM.password#" cfsqltype="cf_sql_clob" maxlength="255">
    <cfelse>
    </cfif>
      </cfquery>
      <cflocation url="register_success.cfm">
    </cfif>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Main.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Everett Music Department, Everett, MA</title>
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    body {
    background-color: #660000;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <!-- InstanceBeginEditable name="head" -->
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    <!-- InstanceEndEditable -->
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a:link {
    color: #660000;
    a:visited {
    color: #A01D22;
    a:hover {
    color: #FFCC00;
    -->
    </style>
    <link href="main.css" rel="stylesheet" type="text/css" />
    </head>
    <body onload="MM_preloadImages('menu_about_over','menu_ensembles_over.jpg','menu_schools_over.j pg','menu_events_over.jpg','menu_faculty_over.jpg','menu_contacts_over.jpg','menu_home_ove r.jpg','menu_about_over.jpg','menu_links_over.jpg','menu_login_over.jpg')">
    <table width="960" align="center" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="3"><img src="top_border.jpg" width="960" height="20" align="top" /></td>
      </tr>
      <tr align="center">
        <td colspan="3"><a href="index.php"><img src="e_oval_top.jpg" height="100" width="270" border="0" /></a><a href="index.php"><img src="header.jpg" height="100" width="690" border="0" /></a></td>
      </tr>
      <tr>
        <td height="35" width="301"><a href="index.php"><img src="e_oval_bottom.jpg" height="35" width="234" border="0" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','menu_home_over.jpg',1)"><img src="menu_home.jpg" width="67" height="35" name="home" border="0" id="home" /></a></td>
        <td width="251"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('about','','menu_about_over.jpg',1)"><img src="menu_about.jpg" width="71" height="35" name="about" border="0" id="about" /></a>
            <ul>
              <li><a href="#">News</a></li>
              <li><a href="#">History</a></li>
              <li><a href="#">Media</a></li>
            </ul>
          </li>
          <li><a class="MenuBarHorizontal" href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ensembles','','menu_ensembles_over.jpg',1)"><img src="menu_ensembles.jpg" width="98" height="35" name="ensembles" border="0" id="ensembles" /></a>
            <ul>
              <li><a href="#">Band</a></li>
              <li><a href="#">Chorus</a></li>
              <li><a href="#">Strings</a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('schools','','menu_schools_over.jpg',1)"><img src="menu_schools.jpg" width="82" height="35" name="schools" border="0" id="schools" /></a>
            <ul>
              <li><a href="#">Everett High School</a></li>
              <li><a href="#">English School</a></li>
              <li><a href="#">Keverian School</a></li>
              <li><a href="#">Lafayette School</a></li>
              <li><a href="#">Parlin School</a></li>
              <li><a href="#">Webster School</a></li>
              <li><a href="#">Whittier School</a></li>
            </ul>
          </li>
        </ul>
        </td>
               <td width="408"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('events','','menu_events_over.jpg',1)"><img src="menu_events.jpg" width="74" height="35" name="events" border="0" id="events" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('faculty','','menu_faculty_over.jpg',1)"><img src="menu_faculty.jpg" width="79" height="35" name="faculty" border="0" id="faculty" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('links','','menu_links_over.jpg',1)"><img src="menu_links.jpg" width="66" height="35" name="links" border="0" id="links" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('login','','menu_login_over.jpg',1)"><img src="menu_login.jpg" name="login" width="69" height="35" border="0" id="login" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','menu_contact_over.jpg',1)"><img src="menu_contact.jpg" width="100" height="35" name="contact" border="0" id="contact" /></a><img src="menu_spacer_end.jpg" width="20" height="35" /></td>
      </tr>
      <tr height="10">
        <td colspan="3"><img src="menu_bottom_spacer.jpg" height="10" width="960" /></td>
      </tr>
    </table>
    <table width="960" cellpadding="0" cellspacing="0" align="center">
      <tr height="50">
        <td width="30" background="left_border.jpg"><img src="clear.gif" width="30" height="50" /></td>
        <td width="900" bgcolor="#FFFFFF">
          <table width="900" cellpadding="0" cellspacing="0">
            <tr>
              <td width="900" height="350" valign="top"><!-- InstanceBeginEditable name="PageBody" -->
          <form action="<cfoutput>#CurrentPage#</cfoutput>" method="POST" name="register" preloader="no" id="register">
                <table width="100%">
                  <tr>
                    <td colspan="2" class="heading1">Fill in the information below to register for this site:</td>
                  </tr>
                  <tr>
                    <td colspan="2"><img src="clear.gif" height="15" /></td>
                  </tr>
                  <tr>
                    <td width="50%" class="form" align="right">First Name:</td>
                    <td width="50%"><span id="sprytextfield1">
                      <input type="text" name="first_name" required="yes" id="first_name" width="150" typeahead="no" showautosuggestloadingicon="true" />
                      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
                  </tr>
                  <tr>
                    <td class="form" align="right">Last Name:</td>
                    <td><span id="sprytextfield2">
                      <input type="text" name="last_name" required="yes" id="last_name" width="150" typeahead="no" showautosuggestloadingicon="true" />
                      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
                  </tr>
                  <tr>
                    <td class="form" align="right">Email Address:</td>
                    <td><span id="sprytextfield3">
                    <input type="text" name="email" validate="email" required="yes" id="email" width="150" typeahead="no" showautosuggestloadingicon="true" />
                    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
                  </tr>
                  <tr>
                    <td class="form" align="right">Confirm Email Address:</td>
                    <td><span id="sprytextfield4"><span id="ConfirmWidget">
                    <input type="text" name="email_confirm" validate="email" required="yes" id="email_confirm" width="150" typeahead="no" showautosuggestloadingicon="true" />
                    <span class="confirmInvalidMsg">The values do not match</span></span></span></td>
                  </tr>
                  <tr>
                    <td class="form" align="right">Password:</td>
                    <td><span id="sprytextfield5">
                      <input type="password" name="password" required="yes" id="password" width="150" />
                      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
                  </tr>
                  <tr>
                    <td class="form" align="right">Confirm Password:</td>
                    <td><span id="sprytextfield6"><span id="ConfirmWidget">
                      <input type="password" name="password_confirm" required="yes" id="password_confirm" width="150" />
                      <span class="confirmInvalidMsg">The values do not match</span></span></span></td>
                  </tr>
                  <tr>
                    <td> </td>
                    <td><input name="submit" type="submit" id="submit" value="Register" /></td>
                  </tr>
                </table>
          <input type="hidden" name="MM_InsertRecord" value="register" />
          </form>
          <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "email");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "email");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
    //-->
    </script>
    <script type="text/javascript">
    var ConfirmWidgetObject = new Spry.Widget.ValidationConfirm("sprytextfield4", "email");
    var ConfirmWidgetObject = new Spry.Widget.ValidationConfirm("sprytextfield6", "password");
    </script>
              <!-- InstanceEndEditable --></td>
            </tr>
          </table>
        </td>
        <td width="30" background="right_border.jpg"><img src="clear.gif" width="30" height="50" /></td>
      </tr>
      <tr>
        <td colspan="3" background="footer.jpg" class="footer" height="80"/>This website best viewed using:<br /><a href="http://www.firefox.com"><img src="firefox_logo.gif" width="110" height="40" border="0" /></a></td>
      </tr>
    </table>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>

    Syntax error in INSERT INTO statement.  INSERT INTO Users ([First Name], [Last Name], [Email Address], Password)
    That oh-so-uninformative error is because "Password" is a reserved word with your database driver.  Either escape it by putting square brackets around it too, or rename the column permanently. It is best to avoid using reserved words whenever possible. So renaming the column is the better option.  Also, I would try and avoid using invalid characters like spaces in column names ie "First Name". It is technically allowed, but it requires special handling everywhere which adds unecessary complexity.
    I'm not sure what the problem is, but I'm getting a syntax error referencing this particular portion of the code:
    Do not take the error line numbers as gospel. Sometimes they just indicate that the error is within the vincinty of that line.
    I'm using Dreamweaver CS3 to help generate most of the code
    Unforutnately, DW wizards generate some truly awful and verbose code.  To give you an idea, here is what the query should look like, without all the wizard nonsense.
      <cfparam name="FORM.first_name" default="">
      <cfparam name="FORM.last_name" default="">
      <cfparam name="FORM.email" default="">
      <cfparam name="FORM.FORM.password" default="">
      <cfquery datasource="YourDSNName"> 
        INSERT INTO Users ([First Name], [Last Name], [Email Address], [Password])
        VALUES (
          <cfqueryparam value="#FORM.first_name#" cfsqltype="cf_sql_varchar">
         , <cfqueryparam value="#FORM.last_name#" cfsqltype="cf_sql_varchar">
         , <cfqueryparam value="#FORM.email#" cfsqltype="cf_sql_varchar">
         , <cfqueryparam value="#FORM.password#" cfsqltype="cf_sql_varchar">
      </cfquery>
    CF is pretty easy to learn. You might want to begin perusing the CF documentation and a few tutorials to get more familiar with the language. Since you are working with a database, I would also recommend a  SQL tutorial.

  • Problem while inserting a record to infotype 416

    Iam facing a problem while inserting a record to the infotype 416 for a personnel no using the FM 'HR_INFOTYPE_OPERATION'.I have created a FM to insert a record to the infotype 416.In that FM iam using the FM 'HR_INFOTYPE_OPERATION' to create a record for infotype 416.while executing  my FM the FM 'HR_INFOTYPE_OPERATION' is returning the return value 0.But when i check in PA30 for the infotype 416,there is no record created for that personnel no.Also in the table PA0416 the record is not get created.SO what might be the problem.can anyone please provide me help on this.
    I have attached the code of my FM for ur reference.
    FUNCTION Y_ESS_FL_ENCASH.
    DATA: G_COMPENSATION_AMOUNT LIKE PA0416-AMONT,
          G_RETURN TYPE BAPIRETURN1.
    DATA T_PA0416 LIKE P0416 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
           TCLAS                 = 'A'
           PERNR                 = '00000014'
           INFTY                 = '0416'
         BEGDA                 = sy-datum
         ENDDA                 =  sy-datum
           BYPASS_BUFFER         = 'X'
         LEGACY_MODE           = ' '
    IMPORTING
         SUBRC                 =
          TABLES
            INFTY_TAB             = T_PA0416
    EXCEPTIONS
      INFTY_NOT_FOUND       = 1
      OTHERS                = 2
        LOOP AT T_PA0416
        WHERE SUBTY = '1002'.
        ENDLOOP.
        IF SY-SUBRC <> 0.
          CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
            EXPORTING
               NUMBER = '00000014'
            IMPORTING
               RETURN = G_RETURN.
          IF SY-SUBRC <> 0.
             MESSAGE I016(RP) WITH ' RECORD IS ALREADY LOCKED'.
          ENDIF.
          T_PA0416-PERNR = '00000014'.
          T_PA0416-SUBTY = '1002'.
          T_PA0416-INFTY = '0416'.
          T_PA0416-OBJPS = ''.
          T_PA0416-SPRPS = ''.
          T_PA0416-SEQNR = ''.
          T_PA0416-AEDTM = SY-DATUM.
          T_PA0416-UNAME = SY-UNAME.
          T_PA0416-ENDDA = SY-DATUM.
          T_PA0416-BEGDA = SY-DATUM.
          T_PA0416-NUMBR = '10'.
          T_PA0416-WGTYP = '1530'.
          T_PA0416-AMONT = '15000'.
          T_PA0416-WAERS = 'INR'.
          T_PA0416-QUONR = '1'.
          APPEND T_PA0416.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              INFTY                  = '0416'
              NUMBER                 = '00000014'
              SUBTYPE                = '1002'
      OBJECTID               =
      LOCKINDICATOR          =
             VALIDITYEND            = '31129999'
             VALIDITYBEGIN          = SY-DATUM
            RECORDNUMBER           = ''
              RECORD                 = T_PA0416
              OPERATION              = 'INS'
              TCLAS                  = 'A'
      DIALOG_MODE            = '0'
            NOCOMMIT               = 'X'
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
            IMPORTING
              RETURN                 = G_RETURN.
      KEY                    =
          IF G_RETURN+0(1) EQ 'E'.
                  MESSAGE I086(ZHR) WITH 'Record is not inserted in IT416'.
          ELSE.
              COMMIT WORK.
          ENDIF.
          CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
            EXPORTING
              NUMBER = '00000014'
            IMPORTING
              RETURN = G_RETURN.
        ENDIF.
    ENDFUNCTION.

    Hi Murthy
    With a first glance, I think you have given a wrong parameter value to "validityend". It should be '99991231' not '31129999' .
    If your problem still persists, try inserting the data online from PA30. If your input causes no errors, then please state what the return parameter contains.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Problem with inserting new records in Oracle Forms

    Hi Friends,
    I am a new user to Oracle Forms and I need a help from you people. The problem is as follows:
    I have a data block in which I can display a number of records. In this data block the user will be able to edit the fields if no child records are found in another table. I have used when-new-record-instance to attain this scenario. All are text items. One item licensee_id which is made invisible by setting the property in property palette and required=no ( as this is the primary key of the table). Also the audit columns are made invisible.
    The code for it is as follows:
    DECLARE
         v_alert_button NUMBER;
         v_cnt                          NUMBER;
    BEGIN
         SELECT COUNT (*)
    INTO v_cnt
    FROM id_rev_contracts
    WHERE licensee_id = :ID_REV_LICENSEES.licensee_id;
    IF v_cnt > 0 THEN
    set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', UPDATE_ALLOWED, PROPERTY_FALSE);
    ELSE
         set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', UPDATE_ALLOWED, PROPERTY_TRUE);
         -- set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', INSERT_ALLOWED, PROPERTY_TRUE);
    END IF;
    END;
    Now in this data block I should also be able to insert new records and for the same I have used PRE-INSERT trigger and the code for it is as follows:
    DECLARE
         v_alert_button NUMBER;
    CURSOR v_licensee_id IS SELECT id_rev_licensees_s.NEXTVAL FROM dual;
    BEGIN
    OPEN v_licensee_id;
    FETCH v_licensee_id INTO :id_rev_licensees.licensee_id;
    CLOSE v_licensee_id;
    IF :id_rev_licensees.licensee_id IS NULL THEN
    Message('Error Generating Next v_licensee_id');
    RAISE Form_Trigger_Failure;
    END IF;
    :ID_REV_LICENSEES.created_by := :GLOBAL.g_login_name;
    :ID_REV_LICENSEES.last_updated_by := :GLOBAL.g_login_name;
    :ID_REV_LICENSEES.create_date := SYSDATE;
    :ID_REV_LICENSEES.last_update_date := SYSDATE;
    EXCEPTION
    WHEN form_trigger_failure
    THEN
    RAISE form_trigger_failure;
    WHEN OTHERS
    THEN
    v_alert_button :=
    msgbox ('ERROR in Pre-Insert - ' || SQLERRM, 'STOP', 'Contact IST');
    RAISE form_trigger_failure;
    END;
    Every thing is compiling fine but at the run time when I am trying to insert a new record I am receiving the following error:
    FRM-40508:ORACLE error:unable to insert record
    I also think the pre-insert record is not firing at the time of inserting a new record and saving it. So I request you to please delve into this problem and suggest me how to overcome this problem. Code snippets would do more help for me. If you need any other things from me please let me know. I will see if I could be of any help in that concern because I may not be able to send the entire form as it is.
    Thanks and regards,
    Vamsi K Gummadi.

    first of all
    pre-insert fires after the implicit/explicit commit/commit_form is issued and before the real insert is submitted to the db.
    i would suggest to remove the error handling part for the moment
    because i believe you might be getting "ora-xxxx cannot insert null"
    and also make visible the primary column to check if the pre-insert is executed.
    it would be better to make visible for a while the not null columns of the table/block
    i suppose that the block is insert allowed and you are using table as the source of the block and not any procedures or something...

  • Problem inserting records in table using cursors

    hi all
    i have a block in which i m trying to take records from a table pass it to a procedure which in turn calls some procedures
    and than the procesed records are dumped into another table
    this is my code
    set serveroutput on
    declare
    lastcall date;
    srcip varchar2(50);
    username varchar2(50):='9204';
    duration number;
    callto varchar2(50);
    accountid varchar2(50);
    calltime date;
    subscriberid varchar2(50);
    country varchar2(50);
    cost varchar2(50);
    CURSOR process_cdr
              IS
    SELECT
              srcip,
              username,
              callto,
              calltime,
              duration
    FROM rawcdr
    WHERE     calltime>lastcall;
    begin
    select max(calltime_gmt) into lastcall from
    processed_cdr;
    open process_cdr;
    fetch process_cdr into srcip,username,callto,calltime,duration;
    dbms_output.put_line(callto);
    if (instr(callto,'00')=5) then
    callto:=SUBSTR(REPLACE(callto,SUBSTR(callto, INSTR(callto, '@'), 50), ''), INSTR(callto, ':') + 3, 50);
    dbms_output.put_line(callto);
    elsif (instr(callto,'011')=5) then
    callto:=SUBSTR(REPLACE(callto, SUBSTR(callto, INSTR(callto, '@'), 50), ''), INSTR(callto, ':') + 4, 50);
    dbms_output.put_line(callto);
    else
    callto:=SUBSTR(REPLACE(callto, SUBSTR(callto, INSTR(callto, '@'), 50), ''), INSTR(callto, ':') +1 , 50);
    end if;
    process_call(srcip,username,duration,callto,accountid,subscriberid,country,cost);
    dbms_output.put_line(cost);
    dbms_output.put_line('trying to insert');
    insert into processed_cdr values(accountid,subscriberid,srcip,username,callto,country,calltime,duration,cost) ;
    dbms_output.put_line('inserted successfully');
    FETCH process_cdr INTO srcip, username, callto, calltime, duration;
    close process_cdr;
    end;
    now the problem is that
    records are not getting inserted nor an error is shown
    i guess i m not that much familiar with cursors
    and thats creating prob
    please help

    Hallo,
    but you haven't a loop ! :-)
    Try this,
    (not tested)
    set serveroutput on
    declare
    lastcall date;
    srcip varchar2(50);
    username varchar2(50):='9204';
    duration number;
    callto varchar2(50);
    accountid varchar2(50);
    calltime date;
    subscriberid varchar2(50);
    country varchar2(50);
    cost varchar2(50);
    CURSOR process_cdr
    IS
    SELECT
    srcip,
    username,
    callto,
    calltime,
    duration
    FROM rawcdr
    WHERE calltime>lastcall;
    begin
    select max(calltime_gmt) into lastcall from
    processed_cdr;
    open process_cdr;
    LOOP
    fetch process_cdr into srcip,username,callto,calltime,duration;
    EXIT WHEN process_cdr%NOTFOUND;
    dbms_output.put_line(callto);
    if (instr(callto,'00')=5) then
    callto:=SUBSTR(REPLACE(callto,SUBSTR(callto, INSTR(callto, '@'), 50), ''), INSTR(callto, ':') + 3, 50);
    dbms_output.put_line(callto);
    elsif (instr(callto,'011')=5) then
    callto:=SUBSTR(REPLACE(callto, SUBSTR(callto, INSTR(callto, '@'), 50), ''), INSTR(callto, ':') + 4, 50);
    dbms_output.put_line(callto);
    else
    callto:=SUBSTR(REPLACE(callto, SUBSTR(callto, INSTR(callto, '@'), 50), ''), INSTR(callto, ':') +1 , 50);
    end if;
    process_call(srcip,username,duration,callto,accountid,subscriberid,country,cost);
    dbms_output.put_line(cost);
    dbms_output.put_line('trying to insert');
    insert into processed_cdr values(accountid,subscriberid,srcip,username,callto,country,calltime,duration,cost) ;
    dbms_output.put_line('inserted successfully');
    /* Second fetch is not needed
    --FETCH process_cdr INTO srcip, username, callto, calltime, duration; */
    END LOOP;
    close process_cdr;
    COMMIT; -- eventually
    end;You didn't answered - do you do COMMIT elsewhere ?
    I placed COMMIT also, if you don't need it, you can comment it
    Regards
    Dmytro

  • Insert Record Problems

    I am trying to create an insert record instance, but even
    though my database connection is ok and I have simplified my form
    down to one entry, I cannot get the query to work. The lastest
    error I am getting is:
    The field 'ARTISTS.LASTNAME' cannot contain a Null value
    because the Required property for this field is set to True. Enter
    a value in this field.
    Where am I going wrong? Can someone help out a beginner about
    to lose their mind?

    I tried making a new table in the database with only one
    field and an automatically generated primary key, but am now
    getting the following error:
    Error Executing Database Query.
    Cannot start your application. The workgroup information file
    is missing or opened exclusively by another user.
    The error occurred in
    D:\CFusionMX7\wwwroot\Synopsispost\firstnameform.cfm: line 15
    13 : <cfelse>
    14 : NULL
    15 : </cfif>
    16 : )
    17 : </cfquery>
    My complete coding is:
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND
    FORM.MM_InsertRecord EQ "form1">
    <cfquery datasource="submissionsdb" username="cfsimmo"
    password="cfsimmo76">
    INSERT INTO Mailing List ("Mailing ListID", FirstName)
    VALUES (
    <cfif IsDefined("FORM.Mailing_ListID") AND
    #FORM.Mailing_ListID# NEQ "">
    #FORM.Mailing_ListID#
    <cfelse>
    NULL
    </cfif>
    <cfif IsDefined("FORM.FirstName") AND #FORM.FirstName#
    NEQ "">
    '#FORM.FirstName#'
    <cfelse>
    NULL
    </cfif>
    </cfquery>
    </cfif>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form method="post" name="form1"
    action="<cfoutput>#CurrentPage#</cfoutput>">
    <table align="center">
    <tr valign="baseline">
    <td nowrap align="right">Mailing ListID:</td>
    <td><input type="text" name="Mailing_ListID"
    value="" size="32"></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right">FirstName:</td>
    <td><input type="text" name="FirstName" value=""
    size="32"></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right"> </td>
    <td><input type="submit" value="Insert
    record"></td>
    </tr>
    </table>
    <input type="hidden" name="MM_InsertRecord"
    value="form1">
    </form>
    <p> </p>
    </body>
    </html>
    Any ideas?

  • Problem - Inserting Records into Hashed Tables

    Help for an ABAP Newbie...
    How do I insert records into a hashed table?
    I am trying the following, but get the error message,
    *You cannot use explicit or implicit index operations with types "HASHED TABLE" or "ANY TABLE".  "LT_UNIQUE_NAME_KEYS" has the type "HASHED TABLE".
    TYPES: BEGIN OF idline,
        id TYPE i,
        END OF idline.
      DATA: lt_unique_name_keys TYPE HASHED TABLE OF idline WITH UNIQUE KEY id,
            ls_unique_name_key LIKE LINE OF lt_unique_name_keys.
    " Create a record and attempt to insert it into the internal table.
    " Why does this cause a compilation error message?
    ls_unique_name_key-id = 1.
      INSERT ls_unique_name_key INTO lt_unique_name_keys.
    Thanks,
    Walter

    INSERT ls_unique_name_key INTO TABLE lt_unique_name_keys.

  • Inserting record problem

    I've got an ASP page which inserts a record into an Access
    database.
    Basically the user can insert a record which is one of 4
    types. They
    all go into the same table, just different fields are
    completed in the form.
    I'd like to be able to hide the irrelevant form fields from
    the user
    depending on the type of record they are entering. I did this
    using
    some simple If statements.
    However the Insert Record server behaviour isn't happy - when
    I click
    the submit button, I get an error that one of the parameters
    has no
    default value. The parameter referred to is one of the form
    fields I've
    chosen not to display with the If statements.
    Is there a way around this, or am I going to have to create 4
    different
    insert record forms, one for each type?
    Hope that makes sense.
    Thanks
    Vix

    No, all the field names in the Access database are fine as
    far as I can see.
    I don't understand where that parameter ?_5 is coming from.
    The insert record code looks like this, if it helps:
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_certsConn_STRING
    MM_editCmd.CommandText = "INSERT INTO tblCerts (Surname,
    FirstNames, Gender, EventDate, SpouseSurname,
    SpouseFirstNames,
    DateOfAdoption, Town, Country, County, Type, MemberID) VALUES
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1",
    202, 1, 50, Request.Form("Surname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2",
    202, 1, 255, Request.Form("FirstNames")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3",
    202, 1, 50, Request.Form("Gender")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4",
    135, 1, -1, MM_IIF(Request.Form("EventDate"),
    Request.Form("EventDate"),
    null)) ' adDBTimeStamp
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5",
    202, 1, 50, Request.Form("SpouseSurname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6",
    202, 1, 50, Request.Form("SpouseFirstNames")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7",
    135, 1, -1, MM_IIF(Request.Form("DateOfAdoption"),
    Request.Form("DateOfAdoption"), null)) ' adDBTimeStamp
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8",
    202, 1, 50, Request.Form("Town")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9",
    202, 1, 50, Request.Form("Country")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10",
    202, 1, 50, Request.Form("County")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11",
    202, 1, 50, Request.Form("Type")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12",
    5, 1, -1, MM_IIF(Request.Form("MemberID"),
    Request.Form("MemberID"),
    null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    Baxter wrote:
    > Do you have a question mark (?) in your field name. If
    so remove it, as some
    > database engines, including Microsoft Access, and should
    not be used in
    > database table names or field names.
    > Dave
    > "Vix" <[email protected]> wrote in message
    > news:[email protected]...
    >> I've already done that. Allow zero length is set to
    Yes on those fields.
    >>
    >> The error I get is
    >> Microsoft JET Database Engine error '80040e10'
    >>
    >> Parameter ?_5 has no default value.
    >>
    >> /add_certificates.asp, line 89
    >>
    >> line 89 is the execute command for the insert
    record.
    >> I'm presuming that the parameter being referred to
    is this one
    >>
    >> MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5",
    >> 202, 1, 50, Request.Form("SpouseSurname")) '
    adVarWChar
    >>
    >> which is the first of the "hidden" fields.
    >>
    >> Any other ideas?
    >>
    >>
    >> Baxter wrote:
    >>> Just tell access to accept null values for the
    fields that you are not
    >>> showing at the time and it should work fine.
    >>> Dave
    >>> "Vix" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> I've got an ASP page which inserts a record
    into an Access database.
    >>>>
    >>>> Basically the user can insert a record which
    is one of 4 types. They
    >>>> all go into the same table, just different
    fields are completed in the
    >>> form.
    >>>> I'd like to be able to hide the irrelevant
    form fields from the user
    >>>> depending on the type of record they are
    entering. I did this using
    >>>> some simple If statements.
    >>>>
    >>>> However the Insert Record server behaviour
    isn't happy - when I click
    >>>> the submit button, I get an error that one
    of the parameters has no
    >>>> default value. The parameter referred to is
    one of the form fields
    > I've
    >>>> chosen not to display with the If
    statements.
    >>>>
    >>>> Is there a way around this, or am I going to
    have to create 4 different
    >>>> insert record forms, one for each type?
    >>>>
    >>>> Hope that makes sense.
    >>>>
    >>>> Thanks
    >>>> Vix
    >>>
    >
    >

  • FK problem when inserting one-to-many records

    Hi everybody,
    I see that this subject has been discussed here from time to time before, as in:
    insert record with 1-M mapping missing foreign key using UOW
    Sequences and multiple tables for inheritance
    I followed Dougs advice on several posts, to check out the employee exampled shipped with Toplink, but regardless of all this information, I'm still stuck.
    So, my issue: when I create new objects, add them to some other objects collection, and then call "assign sequence numbers" on all of them, the sequencenumbers are assgned all the way down the hierachy, but the upward links - the foreign keys - are not updated with the ID's of the parent object.
    Simple example (might not compile - demo code):
    <JAVA>
    myInputController.session = (DatabaseSession)
    SessionManager.getManager().getSession("some_session");
    UnitOfWork myUnitOfWork = myInputController.session.acquireUnitOfWork();
    // Father and Child are a Toplink objects, persisted to each their table with a
    // FK relation, is now assigned to the UOW
    Father myDBFather = (Father) myUnitOfWork.registerObject(new Father());
    Child myDBChild = new Child();
    myDBFather.getChildCollection().add(myDBChild);
    // Now I could use the accessor methods of the Toplink objects to set
    // stuff like name, phone number or so, but that's not important for demo.
    // I just want to save my objects to the database. To do so, I need to
    // assign sequence numbers:
    myUnitOfWork.assignSequenceNumbers();
    // I check the ID's before writing to DB:
    System.out.println(myDBFather.GetId().toString());
    System.out.println(myDBChild.GetId().toString());
    // They both return valid numbers, similar to what the sequence objects
    // of the database should asssign, so that works.
    // But:
    System.out.println(myDBChild.GetFaterid().toString());
    // Will return null, even if myDBChild is a child of myDBFather, and
    // hence a commit to the database will fail (no foreign key!).
    // I can fix this, by "manually" setting the id:
    myDBChild.SetFatherid(myDBFather.getId());
    // And then a commit to the database will work:
    myUnitOfWork.commit();
    // But, since I have deep hierachies, and don't allways know what
    // objects have been added/changed, it's a pretty wild thing, not
    // to menition un-ellegant and heavy in maintenance, to loop down
    // through the entire collection and update all foreign key ID's
    // (FatherID's) before committing changes.
    </JAVA>
    I guess I'm just not hitting the right button somewhere? To create the Toplink Java classes and descriptors, I used "Java objects from tables" in JDev 10.1.2, both "as is", and with some tinkering on indirection, transparency and bi-directional relationships. Also, I get same results in the Toplink 10.1.3 dp4.
    I must have missed the answer somewhere out there, but must post after trying really hard!
    Best regards to all of you,
    :) Ulf

    I could kick myself right now!
    The child setFatherid method takes an entire father object, so the code must be myDBChild.SetFatherid(myDBFather); instead of the myDBChild.SetFatherid(myDBFather.getId()); My apologies.
    With the issue still very present, I post some code from the auto-generated child-class and the child-class descriptor below, which might give some pointers.
    <JAVA-FRAGMENT>
    package dk.test.fatherchild.model;
    import oracle.toplink.indirection.ValueHolder;
    import oracle.toplink.indirection.ValueHolderInterface;
    public class Child {
    * Map fatherid <-> dk.test.fatherchild.model.Father
    * @associates <{dk.test.fatherchild.model.Father}>
         private ValueHolderInterface fatherid;
         private Double childid;
         private String childName;
    public Child() {
         super();
         this.fatherid = new ValueHolder();
    </JAVA-FRAGMENT>
    <Child.ClassDescriptor.xml-FRAGMENT>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>fatherid</instance-variable-name>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <get-method-handle>
    <method-handle empty-aggregate="true"/>
    </get-method-handle>
    <set-method-handle>
    <method-handle empty-aggregate="true"/>
    </set-method-handle>
    <reference-descriptor>dk.test.fatherchild.model.Father.ClassDescriptor</reference-descriptor>
    <private-owned>false</private-owned>
    <uses-batch-reading>false</uses-batch-reading>
    <maintains-bidirectional-relationship>true</maintains-bidirectional-relationship>
    <relationship-partner-mapping-name>childCollection</relationship-partner-mapping-name>
    <table-reference-mapping-reference-handle>
    <reference-handle>
    <reference-table>PERIODICA2.CHILD</reference-table>
    <reference-name>CHILD_FATHER_FK</reference-name>
    </reference-handle>
    </table-reference-mapping-reference-handle>
    <uses-joining>false</uses-joining>
    <one-to-one-mapping-indirection-policy>
    <indirection-policy>
    <uses-indirection>true</uses-indirection>
    </indirection-policy>
    </one-to-one-mapping-indirection-policy>
    <mapping-class>MWOneToOneMapping</mapping-class>
    </mapping>
    </Child.ClassDescriptor.xml-FRAGMENT>

  • Alerting about new records in to the database (in perticular table).

    Dear membsers,
    Alerting about new records in to the database (in perticular table).
    i have a sample application like this.
    A form based on purchase_requisitions, the data being entered from a network computer by a user with datanetry privileges. let's say the columns are
    req_id,req_date,red-from_dept,req_from_emp,req_item_req_qty,req_status. (initially by default req_status is 'NEW').
    next..
    i have a form based on Pending_requisitions_view for the managers who approves the requisitions, the columns are just req_date,req_from_dept,req_from_emp. all the pending requisitions will come here every 5 minitues it gets refreshed by a timer. and it is a multi record block. from here the manager selects the record and he changes the status to APPROVED or DENIED. this is common scenario.
    here is the main problem, the manager has to keep open his form all the time, or if he is working on any other things/forms, it is not possible for him to see requisiotns unless he has to open that form and timer re-freshes the records then only he can see. and again when the application in minimised state we cant see any updates/new entries into requissitions.
    im trying to make a full pledges online system. im using Oracle 8i,forms 6i under win 2000.
    is there any possibility if there is any new records gets into that table we can have alerts like Yahoo messenger it changes color to Blue when it gets new message if it is minimised state.
    Please im keen to get this type of environment.
    Thanks in advance

    Hi,
    i tested like this,
    create a table-1 with tow coumns
    table-2 clone to table-1, on table-1 i put on-insert trigger insert into table-2. so far it is good, table-2 is getting values.
    on table-2 i wrote a database trigger like this
    CREATE.. ON INSERT on each row..
    begin
    IF INSERTING THEN
    raise_application_error;
    END IF;
    end;
    now the data not at all getting inserted into any table raising_application_error, so i could not proceed into further..
    please advise me..
    Thanks a lot

  • Clueless NEWBIE DEVELOPER, NEEDS ASSIST with Insert Record Server Behavior

    Experienced DW designer learning CFMX7. I cannot seem to get
    beyond this error message when using the Insert Record server
    behavior to write data from a form into the database. Using MS
    Access 2002, CFMX7's internal server, DW 6.0. Please note that I am
    learning development for the first time and am using tutorials. I
    was able to connect at one point but now I cannot.
    See error message below:
    The following information is meant for the website developer
    for debugging purposes.
    Error Occurred While Processing Request
    Error Executing Database Query.
    Syntax error in INSERT INTO statement.
    Resources:
    Enable Robust Exception Information to provide greater detail
    about the source of errors. In the Administrator, click Debugging
    & Logging > Debugging Settings, and select the Robust
    Exception Information option.
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
    SV1; .NET CLR 1.1.4322)
    Remote Address 127.0.0.1
    Referrer
    http://localhost:8500/moosek/TMPu724j3nl2j.cfm
    Date/Time 07-Aug-06 07:23 PM
    Text
    Text

    MongoSlade,
    I had this exact same problem with a CFMX 7 datasource that
    was set up as Microsoft Access with Unicode. It turns out that
    "Password" is a reserved word in the Unicode driver. Or somewhere.
    I got around it by putting square brackets, i.e., [ ] around the
    column name, like this:
    update MyTable
    set [Password] = '#form.Password#'
    where UserID = '#form.UserID#'
    That solved the problem nicely. I hope this solution will
    work for you as well.

Maybe you are looking for

  • Can't install a font I need for work - please help! 10.4 ={

    Hello, So I am trying to install this font on my work computer, which is old and has os x 10.4.11 (tiger?). I have downloaded the TTF file onto the desktop. When I double click to install it, it says I need to choose an application and none of them I

  • HT201317 My photo's don't up in photo stream

    My computer shows that I have 8.8 gigs of data to icloud, all I have turned on for icloud is photo stream but I can't find my photo's?  Please help

  • Macbook pro screen seems loose

    we have two macbook pros in the house, the one we just bought, the screen tilts back about an inch further than the year old one. when the laptop is opened it seems the screen is loose, if that makes sense. it does not allow you to adjust the angle i

  • My lock button is jammed and I can't restore my iPhone

    I Need help

  • More of a thank you than a complaint.

    Yesterday my original iPhone finally gave up. For over 3 years this phone has been an example of the quality products Apple continues to create, maintain and release. This phone has worked through falling out of a second floor of an apartment, a dip