Deleting a Record in Database - Error Message

Hello.
I have made a database, where i can view, edit, add new
records and its all working fine. I am trying to also have a delete
feature on it. I have created the link for it to delete, and added
the commands but im getting an error message when i hit delete
saying :
"The web site you are accessing has experienced an unexpected
error.
Please contact the website administrator.
The following information is meant for the website developer
for debugging purposes.
Error Occurred While Processing Request
Element DEPART is undefined in QARTIST.
i have looked through my coldfusion pages over and over but i
cant see anything which is wrong and i cant figure out what line
there might be a mistake on! could someone inform me what this
error message is saying to me please?
Thanks very very very very much in advance

Hello.
Thanks very much for the response!
I have searched more on the missing variable but still cant
work out whats wrong.
Not sure why its saying 'depart' specfically as that is the
3rd row in the table.
Not too sure on where to go frm here. Could i ask for a bit
more specific help?
I have 3 an index page which displays the 7 rows + a link to
edit any of the returned data :
<td>#qArtists.CurrentRow#</td>
<td>#qArtists.FirstName#</td>
<td>#qArtists.LastName#</td>
<td>#qArtists.Depart#</td>
<td>#qArtists.Hotel#</td>
<td>#qArtists.Board#</td>
<td>#qArtists.Price#</td>
<td><a
href="updateartist.cfm?artistid=#qArtists.ArtistID#">Edit</a></td>
Then i have a :
artist.cfc which i added the delete code to :
<cffunction name="deleteArtist" access="public"
returntype="void">
<cfargument name="artistid" type="numeric"
required="yes">
<cfquery datasource="#application.datasource#">
DELETE FROM artists
WHERE ArtistID = #arguments.artistid#
</cfquery>
</cffunction>
then i have a delete.cfm file
<cfif IsDefined("form.artistid")>
<cfinvoke
component="cf8essentials.cfc.Artist"
method="deleteArtist">
<cfinvokeargument name="artistid"
value="#form.artistid#"/>
</cfinvoke>
<cflocation url="/cf8essentials/artists/index.cfm"
addtoken="no">
</cfif>
<cfform>
<cfinput type="submit" name="submit" value="Delete">
<cfinput type="button" name="cancel" value="Cancel"
onclick="history.back()">
<cfinput type="hidden" name="artistid"
value="#url.artistid#">
</cfform>
really not sure what part im doing wrong as i have fllowed
two different tutorials which do it different and both of theirs
work but im not sure what ive done wrong. Could you advise further
has ive been pulling my hair out over this for the past couple of
days now! thanks very much in advance again!

Similar Messages

  • How to delete a record in database it should be effect in XML

    In my application wheni insert a record in database it automatically inserted in XML now my problem is when i delete a record in database it should also effect in XML
    plz anybody anything knows about this reply me

    First up all, when u insert a record in database, how the data is inserted in xml file. Is there any application written for that?
    So when u delete the record from database,and want that same data should be deleted from the xml file, write a application to delete data from xml, and call that when u delete record from database.
    U can Write application using DocumentBuilderFactory.
    And using XQuery, you can delete data from xml.
    Hope this will help u.
    .....yogesh

  • Incomplete list Oracle Database Error Messages Part Number B14219-01

    The following regards documentation on Oracle® Database Error Messages Part Number B14219-01 as read on http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14219/intro.htm
    Reading an example on Message Stacks in section 1 Using Messages, the following error description is nowhere to be found in the main list: ORA-06502. So are many other very common errors like ORA-00942 ¿Are these described in another book?
    Thanks,

    Hello again. I have learned that some of these older low-number error messages were present in the code in a different and abbreviated format than the one eventually agreed upon. These messages were entered by hand in the Error Messages book. When we began generating the messages directly from the code, some of these older messages were inadvertently dropped. We hope to fix this problem in the next release by changing the code. I apologize for any inconvenience this causes. For now the only workaround is to go back to an earlier version of the documentation, as the meaning of the messages has not changed.

  • Customizing Oracle Database Error Message Using Oracle JVM

    Avi (that everybody on this forum knows) has just written the following article:
    http://www.oracle.com/technology/tech/java/jsp/parameterized_custom_messages.html
    Check it out, Kuassi

    I got blank space when try to access Oracle Database Error Messages 11g release 2 pdf version. Not sure if it is because of my browser or not. I'm using firefox 6.0.2 in Slackware 13 64 linux.I do not see any PDF link for "Oracle Database 11gR2 Error Messages" Guide, only the HTML version is available.
    Error Messages
    http://www.oracle.com/pls/db112/to_toc?pathname=server.112/e17766/toc.htm
    11gR2 Docs
    http://www.oracle.com/pls/db112/homepage

  • HT1923 In trying to delete the Apple file in the Program/Common File I can delete all contents except the Internet Services folder.  Thus preventing me from deleting the Apple FIle.  Error message says I need permission to delete this file.  How do I proc

    Trying to delete the Apple Folder from Program Files/Common Files.  I can delete all the contents except for the Internet Services folder which prevents me from making the deletion.  The error message says "you need permission to delete this file".
    Discovered this problem when trying to upgrade from my 3G iPhone to a new 5S iPhone unsucessfully.

    See note 3 of Troubleshooting issues with iTunes for Windows updates.
    tt2

  • How to delete a record in Database View?

    HI All,
    I have created a Database  View using tables LIKP,LIPS,VBUK,VBUP.
    In that view I am getting a extra record which is not exit in any tables
    but its getting in database view.
    I tried buffer memory refresh and even tried SE16n , SE11(thro CODE(DELE))..But record has not been
    deleted.
    Plz suggest wat shud i have to do to delete the record.
    Thanks in advance and help realy appriciate.
    Regards
    Steve

    >
    Steve Johnson wrote:
    > In that view I am getting a extra record which is not exit in any tables
    > but its getting in database view.
    Your intention should be in search of the root of that extra record. Not the deleting it without knowing anything.
    Sure, You have put join conditions correctly?
    Cheers

  • Deletion marked material should give error message while creating proc ord

    Hello,
    i had marked the material for deletion through T-code MM06 & saved.
    Now when i'm creating the process order for the deleated material, System is giving only Warning message that " Material XXXX in plant XXXX has been marked for deletion."
    But my requirement is system shold give an ERROR message while creating Process Order for the deleted material.

    Yes Brahman is Right,
    Check the followig..
    Go to OMCQ and change the message category  to E- Error message instead of W- Waring message in Message no M7 127, but
    not  M7 121.
    and check it,
    Regards,
    Pavan idlur.

  • Deletion Indicator cannot be unset" error message in PO

    Hi Experts!
    I have a PO in which I deleted a line item, which has been invoice verified, delivered, etc.  Now when I choose to unblock/undelete the line item, it give me error message:  "Deletion Indicator cannot be unset".  Is this a major problem or can it be fixed.  Any information would be greatly appreciated.  Urgent!  Thank you for your time!
    Best Regards,
    WC

    Hi,
    I would say that system should prevent you to delete a line item po with a GR and or invoice entered. For me it should be a bug.
    Now you have done the line item deletion, inconsistency may occur...
    Did you try first to uncheck the final invoice indicator in the PO ?
    Did you check OSS note 1023130 ?
    Kind regards,
    Yann

  • How configure 9iAS logon to return database error messages (i.e., user locked)

    When the database user is in locked status or the user's password has expired the Apache logon returns a generic screen 'Database Log In Failed' after three attempts. When you logon outside the web interface then you get the error number and message returned. How can Oracle Apache be configured to return the database errors at logon.

    Mayu,
    Look at what is done in the UpdateAction code.
    try
    catch (JboException ex)
    errors = buildErrorsFromException(request, ex);
    Then call saveErrors on the action:
    saveErrors(request, errors);
    In the html you need to display the error using the errors tag:
    <html:errors/>
    An other way to do it but not as flexible is to use a global exception.
    <global-exceptions>
    <exception type="oracle.jbo.JboException" path="/errorpage.jsp" key="globalerror.jboException"/>
    </global-exceptions>
    You would list the specific exception and errorpage needed.
    Charles.

  • Auto attendant console database error message

    Hello,
    While I add the Speed Dial  numbers, I get "database update error" error message. On Cisco website  the solution is disabling the Antivirus. But it still gives me the same  error message although I disabled my antivirus!!!
    I use CUBAC Version 3.1.1.519
    Any other  solution?
    Thanks,
    Mehdi

    Hi,
    Have you tried rebooting the CUBAC server?
    Regards,
    Tere.

  • Trying to delete widget code and stop Error message

    I am a little new to CS4:  and receiving an validation error message  on a page about a accordion widget still being on my page and ppotential  problems at runtime.  I look and it is greyed out so i  am not able to remove(delete) the error offending line.  I had  originally removed the accordion widget on purpose but in the process of  removing everything else ( script, etc.) I think I did the removal in  the wrong  sequence or something.
    Can anyone please give  me suggestions on how I might fully remove this widget error line so I  can clean up my code and ensure a clean run.
    thx

    here is the message  I receive when I open the page in CS4
    This document contains javascript code of a widget that no longer exists.
    If you don't remove the code, the browser might displayjavascript errors when loading the page.
    would you like Dreamweaver to find all instances of this code for you???
    widget:var Accordion1=newSpry.Widget.Accordion("cmp_panningcards")
    then shows line inside code, but grayed out so I cannot delete....

  • Customizing Predefined Database error messages

    Hi,
    I've a ADF table from the view object in my page. The table has two columns and column 2 is mandatory from entity side (in db not null). While filling the table from the page, I kept 3 row's value empty in 2nd column.
    Now on submit, it throws validation message which is as expected. But as I left 3 field in column 2 blank, in the message it says "Column 2 : Please enter a value" three times.
    My customer wants that instead of three message string, it should display one message string like "Please enter values for column 2"
    Is there any possibility to concatenate the 3 message string into single message? If yes what is the way to achieve it?
    We are using JDeveloper 11.1.1.4
    Thanks in Advance
    Arunava

    Hi,
    I'm also facing same problem since many days..I'm unable to concatenate multiple duplicate error messages into a single message.I've a ADF table from the view object in my page.When I'm entering multiple row values in a single column as a blank values(which are mandatory), and after When i click the commit,AttrValException is being occured and predefined error messages are being displayed in a dialog box.As the entered blank values are from same column, the error messages are duplicate as shown below::
    (For example):
    Error:
    EmployeeId :You Must enter a Value
    EmployeeId :You must enter a Value
    EmployeeId :You must enter a Value.
    When I click the commit button,Is there any way to handle the exception and concatenate these error messages into a single message.
    I'm using JDeveloper 11.1.1.4.0
    Thanks in Advance
    Krishna Murthy

  • How do I resolve "Parse Failed: Bad Connect String: Database" error message

    I have a user who is editing a select statement in a BOXI 3.1 Web Intelligence query.  He is gettng the error message in the subject line.

    Hi
    can you please try to run the edited SQL statement directly against the SQL server? Do you get any errors then?
    Regards,
    Stratos

  • URGENT: how to get the database error message into application?

    Hi, pls give some idea:
    For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
    So, how to get this message in our application?

    instead of using the getMessage method, have you tried something like this:
             try {
             } catch (Throwable t1) {
                System.out.println(t1.toString());
             }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
    ;o)
    V.V.

  • Insert and delete same record from database immediately

    Hi,
    I am using Tomcat 4.1.12 and Oracle 9i. Since there is no transaction management in tomcat, except via third party tools, i have to do the following to simulate transaction management :-
    insert a particular record
    <some other problem occured so must...>
    Delete the same record (which i just inserted)
    However, my record was not deleted even though there is no error thrown out. everything seems to work perfectly. Is it because i just inserted the record and then straight away deleted that's why the delete fails to delete ? I tried to setAutoCommit(false) and then commit in the delete method, but it fails. I also tried to commit after i delete, and again, it doesn't work.
    What's the remedy ?
    Thanks!

    if i am using a datasource, is that considered as a
    connection pool ? (I dont think so ? )
    Will the code work in Tomcat since there is no
    transaction management ? Thus, without transaction
    management(explicitly have a start transaction) will
    the concept of commit and rollback still be applicable
    ?Sorry for delay - I only pop into the forums occassionally.
    It seems to me that Tomcat is not your issue with regards to transaction management. You just need to manage transactions at the application level. A more relevant question is what DBMS are you using and does it support setAutoCommit, commit, or rollback using a JDBC connection?
    A connection on a datasource (DSN) is not a pool, but just a single connection. Many different threads/clients may want to use a connection to perform a transaction. You need to manage/control concurrency on your connection(s) to avoid a situation where 2 separate clients are using the same connection to perform transactions at the same time.
    The concept of commit and rollback are totally relevant here and have nothing to do with Tomcat, but with the underlying DBMS. If a client calls setAutoCommit, commit, or rollback, it will cause the DBMS commit or rollback all statements processed by the connection since the last commit. If 2 clients are using the same connection it is possibile that 1 client can accidentially commit or rollback another client's transaction.
    The jdk 1.4 javax.sql package contains classes that provide implementations for management of connection pools, although I have not used them yet as I have previously coded my own.

Maybe you are looking for