Error with MS Access

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Error with MS Access

    Excuse me for my English! :)
    I have GoldFusion 6.1 installed and a form in *.cfm file. Database - MS
    Access. The connection with database is ok, but when I try to insert record to
    base, I have:

    The Error Occurred in C:\CFusionMX\wwwroot\Site\index.cfm: line 71
    69 : </cfif>
    70 : )
    71 : </cfquery>
    72 : </cfif>
    73 : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    What does it mean and what to do, to insert record to base succesfully?
    Please. help!!!!


    pastux Guest

  2. Similar Questions and Discussions

    1. Error "creating file: 1008:5, -5000 Access Denied Error"
      I'm unable to install Flash Player 9 in OS X (10.4.8). I followed the following tech note: http://www.adobe.com/go/4aa64290 * I uninstalled Flash...
    2. [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
      I have a query I want to run using DBQwiksite siftware, which produces the syntax error (missing operator) in query expression error when...
    3. Web Service + Anon Access, but getting 401 Access Denied Error
      I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous...
    4. Java Script error (error 3) when trying to access Commands
      Hello folks: I have been a long time lurker/reader of this forum. As of yesterday, out of nowhere, when accessing 'Commands' from the top level...
    5. Error 711 and Error 5, Remote access connection manager service
      I'm trying to set up a dial-up connection, but my computer will not start Remote Access Connection Manager or Remote Access Auto Connection...
  3. #2

    Default Re: Error with MS Access

    Not enough information to be able to help you. How about your code, and the entire error message, etc.?
    paross1 Guest

  4. #3

    Default Re: Error with MS Access

    ok! The source code is:::

    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "Return
    Form">
    <cfquery datasource="Data">
    INSERT INTO Return (Treaty_N, Treaty_from, Return_N, Return_from, Customer,
    Aim, Bank, Object_class, Value_type, Detention, Description) VALUES (
    <cfif IsDefined("FORM.Treaty_N") AND #FORM.Treaty_N# NEQ "">
    '#FORM.Treaty_N#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Treaty_from") AND #FORM.Treaty_from# NEQ "">
    '#FORM.Treaty_from#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Return_N") AND #FORM.Return_N# NEQ "">
    '#FORM.Return_N#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Return_from") AND #FORM.Return_from# NEQ "">
    '#FORM.Return_from#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Customer") AND #FORM.Customer# NEQ "">
    '#FORM.Customer#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Aim") AND #FORM.Aim# NEQ "">
    '#FORM.Aim#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Bank") AND #FORM.Bank# NEQ "">
    '#FORM.Bank#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Object_class") AND #FORM.Object_class# NEQ "">
    '#FORM.Object_class#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Value_type") AND #FORM.Value_type# NEQ "">
    '#FORM.Value_type#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.Detention")>
    'Y'
    <cfelse>
    'N'
    </cfif>
    ,
    <cfif IsDefined("FORM.Description") AND #FORM.Description# NEQ "">
    '#FORM.Description#'
    <cfelse>
    NULL
    </cfif>
    )
    </cfquery>
    </cfif>

    And Error message:

    Error Executing Database Query.
    [MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][??????? ODBC Microsoft
    Access] ?????????????? ????? ?????? ? ????????? ??????? ??????.

    The Error Occurred in C:\CFusionMX\wwwroot\Alfa-Invest\index.cfm: line 71

    69 : </cfif>
    70 : )
    71 : </cfquery>
    72 : </cfif>
    73 : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    SQL INSERT INTO Return (Treaty_N, Treaty_from, Return_N, Return_from,
    Customer, Aim, Bank, Object_class, Value_type, Detention, Description) VALUES (
    NULL , NULL , NULL , NULL , NULL , '??????????????...' , '??????????????...' ,
    '??????????????...' , '??????????????...' , 'N' , NULL )
    DATASOURCE Data
    VENDORERRORCODE -3030
    SQLSTATE 22018

    Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.5)
    Gecko/20041108 Firefox/1.0 Mnenhy/0.7
    Remote Address 127.0.0.1
    Referer [url]http://localhost:8500/alfa-invest/index.cfm[/url]
    Date/Time 20-May-05 04:24 PM

    pastux Guest

  5. #4

    Default Re: Error with MS Access

    I wonder if this is a character set issue between CF, ODBC, and Access. The
    data that you are attempting to insert is definitely not ASCII. I am assuming
    that all of the fields in the database that you are attempting to insert into
    are text-type fields, and allow NULL (required=no). Is this correct?

    Phil

    paross1 Guest

  6. #5

    Default Re: Error with MS Access

    I use Dreamweaver to create form: how to make data in ASCII???
    I corrected all text-type fields (not all fields are text-type) and made them NOTNULL, but it doesn't work!!! :(
    pastux Guest

  7. #6

    Default Re: Error with MS Access

    Make sure that you do not enclose your parameters in single quotes (') for any numeric database fields.

    Phil
    paross1 Guest

  8. #7

    Default Re: Error with MS Access

    I have no numeric fields.
    Here are all my files from form (80 kBt) - please, look at them.
    [url]http://www.webfile.ru/313968[/url]
    (Alfa-Invest.zip)
    pastux Guest

  9. #8

    Default Re: Error with MS Access

    Please, help me with form. I tried all variants, but it stil doesn't work.
    And what does it mean:

    Stack Trace
    at
    cfindex2ecfm1485848882.runPage(C:\CFusionMX\wwwroo t\Alfa-Invest\index.cfm:71)
    at cfindex2ecfm1485848882.runPage(C:\CFusionMX\wwwroo t\Alfa-Invest\index.cfm:71)

    java.sql.SQLException: [MERANT][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][??????? ODBC Microsoft Access] ?????????????? ????? ?????? ?
    ????????? ??????? ??????.
    at com.merant.sequelink.ssp.Diagnostic.toSQLException (Unknown Source)
    at com.merant.sequelink.ssp.Chain.cnvDiagnostics(Unkn own Source)
    at com.merant.sequelink.ssp.Chain.decodeDiagnostic(Un known Source)
    at com.merant.sequelink.ssp.Chain.decodeBody(Unknown Source)
    at com.merant.sequelink.ssp.Chain.decode(Unknown Source)
    at com.merant.sequelink.ssp.Chain.send(Unknown Source)
    at com.merant.sequelink.ctxt.stmt.StatementContext.se nd(Unknown Source)
    at com.merant.sequelink.ctxt.stmt.StmtCtxtState._getD escribeInfo(Unknown
    Source)
    at com.merant.sequelink.ctxt.stmt.CreatedStmtCtxt.get DescribeInfo(Unknown
    Source)
    at com.merant.sequelink.ctxt.stmt.StatementContext.ge tDescribeInfo(Unknown
    Source)
    at com.merant.sequelink.ctxt.stmt.StmtCtxtState._exec Direct(Unknown Source)
    at com.merant.sequelink.ctxt.stmt.CreatedStmtCtxt.exe cDirect(Unknown Source)
    at com.merant.sequelink.ctxt.stmt.StatementContext.ex ecDirect(Unknown Source)
    at com.merant.sequelink.jdbc.SequeLinkStatement._exec ute(Unknown Source)
    at com.merant.sequelink.jdbc.SequeLinkStatement.execu te(Unknown Source)
    at jrun.sql.JRunStatement.execute(JRunStatement.java: 304)
    at coldfusion.sql.Executive.executeQuery(Unknown Source)
    at coldfusion.sql.Executive.executeQuery(Unknown Source)
    at coldfusion.sql.SqlImpl.execute(Unknown Source)
    at coldfusion.tagext.sql.QueryTag.doEndTag(Unknown Source)
    at
    cfindex2ecfm1485848882.runPage(C:\CFusionMX\wwwroo t\Alfa-Invest\index.cfm:71)
    at coldfusion.runtime.CfJspPage.invoke(Unknown Source)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(Unkno wn Source)
    at coldfusion.filter.CfincludeFilter.invoke(Unknown Source)
    at coldfusion.filter.ApplicationFilter.invoke(Unknown Source)
    at coldfusion.filter.PathFilter.invoke(Unknown Source)
    at coldfusion.filter.ExceptionFilter.invoke(Unknown Source)
    at coldfusion.filter.ClientScopePersistenceFilter.inv oke(Unknown Source)
    at coldfusion.filter.BrowserFilter.invoke(Unknown Source)
    at coldfusion.filter.GlobalsFilter.invoke(Unknown Source)
    at coldfusion.filter.DatasourceFilter.invoke(Unknown Source)
    at coldfusion.CfmServlet.service(Unknown Source)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:241)
    at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
    at jrun.servlet.http.WebService.invokeRunnable(WebSer vice.java:172)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:348)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:451)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)

    May be because character encoding is windows-1251 (Russian) ???


    pastux Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139