Cfquery insert error

I am trying to use the attached code to insert records into a
table. BUT, it gives me the following error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression '[email protected]'.
The error occurred in
C:\ColdFusion8\wwwroot\silvereagles\manotify.cfm: line 94
92 : (rosterkey, eventnumber, playernumber, firstname,
lastname, emailaddr,
93 : notifieddate)
94 : VALUES (#matchkey#, #eventnumber#, #keymine#,
#playerfirst#, #playerlast#, #playeremail#, #today#)
95 : </cfquery>
96 : </cfif>
SQLSTATE 42000
SQL INSERT INTO matchroster (rosterkey, eventnumber,
playernumber, firstname, lastname, emailaddr, notifieddate) VALUES
(52, 5, 2, Art, Bushey, [email protected], {ts '2009-03-03
11:51:57'})
VENDORERRORCODE -3100
DATASOURCE connsilvereagles
If I remove the playerermail element (which has an @ in it)
it will insert without fail....this is happening on other scripts
as well for me......I have been on many forums seeking assistance
with this to no avail. Hopefully, someone in your organization will
be familiar with this issue.
Thanks in advance

You really should use the <cfqueryparam> tag.
You can read more about it on ColdFusio's documentation
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_p-q_18.html#1102474
See also:
http://www.adobe.com/devnet/coldfusion/articles/cfqueryparam.html
Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com

Similar Messages

  • Insert error message into session

    hi all,
    I need to Insert error message into the log of SM35 session.
    1. I have created a BDC that creates a session in SM35.
    2. The session is scheduled daily and gets executed automatically.
    3. there is a scenario where the session should be stopped manually with a error message.
    the system doesnt generate any error automatically for that scenario
    can any one pls tell me whether its possible to put a manual error into SM35 session log ?
    Thanks in Advance,
    Santhosini

    Hi,
    There's a few ways you could do this;
    Construct your message first (i.e. combine the message text and variables into one string, then move this into the table)
    or
    Don't store the text, instead store the message ID, number and variable parts of the message.  This has the advantage if you're running a multi-language system the log can be used by users of different languages.
    Regards,
    Nick

  • SQL Insert Error Error in allocating a connection. Cause: No PasswordCreden

    Friends,
    While testing my connection in the Sun java Application Server , I get the following error .
    "SQL Insert Error Error in allocating a connection. Cause: No PasswordCredential found "
    Can somebody please guide ?
    regards
    Dhiraj

    If you are using Netbeans, then this link might help:
    http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
    Otherwise, have you try this ?
    Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>
    <jndi-name>jdbc/pdisasdb</jndi-name>
    <default-resource-principal>
    <name>myname</name>
    <password>geheim</password>
    </default-resource-principal>
    </resource-ref>

  • I am getting ORA-20001: Seed insert error while seed translatable text step

    Hi,
    I am getting this error while English to Arabic translation in the Seed translatable text step
    ORA-20001: Seed insert error: WWV_FLOW_ICON_BAR.ICON_IMAGE_ALT ORA-00001: unique constraint (APEX_030200.WWV_FLOW_TRANSLATABLE_TEXT_PK) violated
    Can i get any suggetion from your side.
    Thanks,
    nar

    Did you ever figure this out. Because I also have this error.

  • Insert error in master-detail form

    Probably a stupid question. When I populate the master block of
    a master detail form from an LOV, I am asked to save the form.
    Since the information is loaded from the LOV, there are no
    changes to save. If I answer yes, it gives an Insert error due
    to the primary key violation in the master block table. If I
    answer no, it opens the detail block and gives the correct
    information. The problem is that when I enter information into
    the detail block and try to save it, I get the same error
    message regarding the primary key violation in the master block.
    The form works fine if I do not populate the master block from
    the LOV (or from select statements in triggers). Any suggestions
    will be appreciated.
    LS

    Hi,
    Check for the form or block status.Looks like the status has
    changed.Thats why u r getting the message.If any of the base
    table item has changed then u will get such a message.Try
    working on this an check it out.
    Thanks
    Vinod

  • 750GB Seagate External Drive - Disk Insertion error

    I have two 750 GB Seagate External hard drives, which are daisy chained to my PowerMac G5. I was transfering files between external hard drives, when all of a sudden the computer crashed. Once I restarted, the computer gave a disk insertion error:
    Disk Insertion
    The disk you inserted was not readable by this computer.
    The options are: "Initialize..." "Ignore" and "Eject"
    One of the external hard drives is fine, the one which was directly hooked up to the computer. However, the drive that was daisy chained still gives this error. I have tried connecting the drive to another mac, but it still gave this error. I also tried connecting it to a PC, and it was detected, but it did not show up under "My Computer."
    Is there a way that I could save or re-format the hard drive WITHOUT loosing the data?
    Please let me know. This is very urgent. I have a lot of important data on the hard drive. Any help/ideas/suggestions are greatly appreciated. Thank you very much.

    Hello! Sometimes a large file transfer will lock or crash a computer. With a crash or hard restart the disk's directory is damaged and if disk utility can't repair it then DISKWARRIOR is about the only utility that can fix the problem. The data usually isn't gone. The disk's directory (road map) of where every piece of info is located on the drive has become corrupt hence there's nothing for it to find. Diskwarrior is the best utility for repairing the directory. Regular use of DW will prevent "most" disk problems as it's the directory that gets messed up rather than a physical problem with the disk in most cases. In cases where DW can't fix the problem DataRescue II can sometimes recover valuable data. Tom

  • How do I resolve a disk Insertion error?

    Hello and thank you,
    I recently upgraded my G4 to The tiger OS. All went smooth during the upgrade but, when the computer restarted both of my 17.1 gb quantum Atlas hard drives went missing and I received two disk insertion errors. I selected initialize but was unable to select any options in the disk utilities. Both hard drives still appear.
    I decided to restarted my computer but this time my mac froze on the gray screen and told me to restart once more. I shut it down unplugged all cables and disconnected the hard drives thinking these where the problem and powered up. I saw a file folder with a question mark then it operated as normal.
    After some experimenting I've deduced that when both hard drives are connected the G4 will freeze at the gray screen 75% of the time. If both Hard drives are not connected the machine will run fine with the exception of showing the question mark file.
    Is there a way to have my mac recognize the two hard drives or is tiger not compatible with these hard drives?

    To cure the question mark at startup problem...
    System Preferences>Startup Disk, then select your boot drive.
    What kind of cases are these drives in? FW, USB, Internal, Other?

  • SQL 2005 Insert Error

    Hi Folks-
    It has been a while and I hope this finds you all doing well. 
    I am working oin a customer application and we are experiencing intermitment MS SQL 2005 insert errors.  We have isolated the cause as the use of the special character, the apostrophe (i.e. " " ") in a material/item description.  The underlying MES application can accept the apostrophe along with the SAP MM back-end, but not MII,  The MII version is 12.0.6 Build 14.  The application also uses the Java Plug-in version 1.6.0_07, which is also the Java Runtime version.  I am not sure of the SQL jdbc being used but was hoping that perhaps there was a version that could "handle" this special character issue or if there was a non-programmatic way to address this.  At this point we are anxious about changing Master Data.
    Any insights or suggestions would be appreciated.  Thanks in advance and I look forward to your responses.
    Kevin Fitzgerald
    Invensys Operation Management

    Hi Kedar-
    This is great information and I thank you for your insights.  I do have what I hope are 2 brief follow-on questions:
    1. Does the single quote/apostrophe represent a general escape character that can be used in all cases?  Are there others (i.e. \n, etc.)
    2. Your special characters cited above do not include the asterik, *.  My customer has also decided to use this special character in a new product description (go figure!!).  Can this be "escaped out" via the same means?
    I have been able to successfully use the java function stringreplace to alter the text as you suggest- even for a local and I hope transaction variable.  Any additional comments per my questions above would certainly advance the cause.
    Thanks again and I look forward to your comments.  Take care and be safe.
    Kevin

  • Inserting error: 100500: non-ORACLE exception

    Hi,
    I have bunch of inserts in post_update trigger in Forms. When I commit the changes , i notice the error message inserting error: 100500: non-ORACLE exception. I have 6 inserts and only one insert is fired. Please help. I am using forms 6.0.8
    Thanks,

    Hi,
    Thanks for the help. I had 6 inserts in one stored proc hence the problem. I split it into 3 different procs and it works now.Thanks Again.
    I didn't have any call to next-record etc...

  • How to Ignore Insert Errors in LKM.

    Hi,
    I would Like to know how to Ignore insert errors in Oracle Data Integrator (Something like flat file mechanism, where the errors are located into .bad and .error files). If My Step 'insert new records' thrown an error regarding to Wrong Data, Constraint, etc. I would like to redirect the records with error to another location without affect the performance.
    is this possible throws Interface configuration or something like that?
    Thanks in advance.

    Thanks for your reply. there is 'deprecation warnings' under Project Properties--> Compiler. These errors are not deprecation errors.
    The below code doesn't help either.
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    </jsp-property-group>
    </jsp-config>

  • G5 comes up with Disk Insertion Error

    My G5 will mount CDs and software DVDs without a problem but now when I insert a film DVD I get the 'Disk Insertion Error' and the disk won't mount. The disk appears when I run the Disk Utility but I can't do anything with it.
    Help!!!!!

    HI Tom,
    The error message that you are receiving indicate that your notebook is attempting to boot from the LAN connection rather than from its own hard drive or CD-ROM. I suggest you check that the boot sequence is correctly specified in your BIOS, or alternatively press F12 during your power on and you should get the boot device sequence menu appear so that you can specify that you want to boot from your hard drive.
    regards,

  • Error in cfquery insert

    I have a form that is submitting a list of values, The insert
    query worked fine until I needed a where clause in it and now it
    bombs out. Here is the code, and help would be appreciative.

    well, i am not so sure you do...
    first, you never mentioned your intention to check for
    duplicate
    records... hence i did not suggest how to do it best.
    second, all you said was that your query does not work - and
    i gave you
    an exact reason why it didn't - your where clause in the
    insert query.
    third, my saying "the record does not exist yet" refers to
    the record
    you are inserting, not *any* record in your table. the one
    you are
    inserting (which means you are creating a new record) surely
    does not
    yet exist in your db. there could be ANOTHER record with
    exactly the
    same info you are inserting, true.
    it will also be nice if you post your solution to your
    problem instead
    of just posting "i fixed it, nevermind"... when someone else
    has a
    similar problem they can then find your thread and have an
    answer
    instead of asking the same question again.
    as for your trying to check for duplicate records, the way to
    do it
    would be to use a select query inside your loop first to
    check if a
    record with same data as in the loop's row exists, and if
    that query
    returns 0 rows, then run your insert query (definitely
    without any where
    clause).
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Sql date time insert error

    Hi i am having trouble entering a date in to a sql stored
    procedure.
    first i convert the date to the users current datetime using
    <cfscript>
    userTZ="#qGetClubDetails.LocalTime12#"; // or whatever tz ID
    you need
    tz=createObject("component","timeZone");
    userDateTime=tz.castFromServer(today,userTZ);
    </cfscript>
    then i need to insert this into a stored procedure using
    <cfstoredproc procedure="xsp_InsertSmsRecords"
    datasource="#application.ds#">
    <cfprocparam type="In" cfsqltype="CF_SQL_DATETIME"
    dbvarname="UsersDate" value="#CREATEODBCDATETIME(userDateTime)#"
    null="No">
    </cfstoredproc>
    but i am getting a error of
    Macromedia][SQLServer JDBC Driver][SQLServer]Error converting
    data type varchar to datetime.
    any ideas what i need to do?

    quote:
    Originally posted by:
    craiglaw98
    ok i have tried that with no luck, i did a cfdump on
    userDateTime and i got
    {ts '2008-01-21 05:16:04'}
    any ideas what i need to do to insert this to sql server
    Looks ok to me. To troubleshoot this, try using cfquery for
    your insert instead of a stored procedure.

  • After record insertion error!! Help please!!

    I get this error after I insert fields into database.
    Error Executing Database Query.
    Syntax error in INSERT INTO statement.
    The error occurred in D:\Hosting\derekwit\more.cfm: line 100
    98 : <cfelse>
    99 : NULL
    100 : </cfif>
    101 : )
    102 : </cfquery>
    SQL INSERT INTO DBTANGLEWOOD (First, Last, Industry, Title,
    Company, Address1, Address2, City, State, Zip, Country, Phone, Fax,
    Email, SiteInterest, TimeFrame) VALUES ( NULL , NULL , NULL , NULL
    , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL ,
    NULL , NULL , NULL )
    DATASOURCE derekwit_accesscf_TanglewoodDB
    VENDORERRORCODE 3092
    SQLSTATE  
    Resources:

    It doesn't look like the query is inserting any values other
    than NULL. You may want to look into that.
    Some of your column names may be reserved words. For example
    FIRST and LAST. If those are reserved words for your db type,
    either rename the columns permanently (recommended) or escape them.
    The escape syntax is db dependent.
    Access or MS SQL use square brackets around the name:
    [ColumnName]
    MySQL try back tics: `ColumnName`
    ...

  • How can I debug a Bulk Insert error?

    I'm loading a bunch of files into SQL server.  All work fine, but one keeps erroring out on me.  All files should be exactly the same in structure, but they have different dates, and other different financial metrics, but the structure and field
    names should be exactly the same.  Nevertheless, one keeps konking out, and throwing this error.
    Msg 4832, Level 16, State 1, Line 1
    Bulk load: An unexpected end of file was encountered in the data file.
    Msg 7399, Level 16, State 1, Line 1
    The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
    Msg 7330, Level 16, State 2, Line 1
    Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
    The ROWTERMINATOR should be CRLF, and when you look at it in Notepad++ that's what it looks like, but it must be something else, because I keep getting errors here.  I tried the good old:  ROWTERMINATOR='0x0a'
    That works on all files, but one, so there's something funky going on here, and I need to see what SQL Server is really doing.
    Is there some way to print out a log, or look at a log somewhere?
    Thanks!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    The first thing to try is to see if BCP likes the file. BCP and BULK INSERT adhere to the same spec, but they are different implementations, but there are subtle differences.
    There is an ERRORFILE option, but it more helps when there is bad data.
    You can also use the BATCHSIZE option to see how many records in the file it swallows, before things go bad. FIRSTROW and LASTROW can also help.
    All in all, it can be quite tedious find that single row where things are different - and where BULK INSERT loses sync entirely. Keep in mind that it reads fields on by one, and it there is one field terminator to few on a line, it will consume the line
    feed at the end of the line as data.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Can't scan to mac

    I have tried all the tips in the messages but I cannot scan to my Mac.  I tried also using the HP utility and it says it scans an overview, but I cannot find the files on the computer.  Here is the message I am getting.  The printer function works fi

  • Error when drill down with essbase hierarchy

    Hi , I am displaying one bar chart with, one Ragged hierarchy dimension "Region" ( structure : total region - > India , US -> India south , US south -> chennai , California) and "revenue" (measure) . Sometime's the drill down is happening smoothly (r

  • [svn:fx-4.0.0] 13560: FlexPrintJob didn't know that in Flex 4, width no longer factors in the scaleX and height no longer factors in scaleY

    Revision: 13560 Revision: 13560 Author:   [email protected] Date:     2010-01-17 21:09:32 -0800 (Sun, 17 Jan 2010) Log Message: FlexPrintJob didn't know that in Flex 4, width no longer factors in the scaleX and height no longer factors in scaleY QE N

  • Importing and XML export back Oracle

    Is there a generic way in which I can reimport an XML database dump document back to a 9i instance? I am also not sure how this XML dump was created - any advice welcome!

  • SAML and CF8

    A partner client asked about automatically authenticating users from their web site to ours using SAML. I googled for a while today and came across one older 6 part tutorial where most of it seemed to be relatively specific to CF7. Knowing all of the