Error running query database

I have a web application written in CF8 with Oracle 11 g as primary server. This application has been used very often for over 6 years. Currently, I'm moving to CF10 and you only a small code change CF. When I ran the new application in my test server, everything seems to work fine except when it calls an Oracle Package. This action generates an error: error running database query the strange thing is all work before and after the call to the procedure, I tested using cfabort this Package Oracle still works in the production server (CF8), but not when it is called by CF10. My question is: are there changes for CF10 when you call a procedure? or is there any fix that I don't know? The code is as follows: SELECT box trim (to_char (SYSDATE, 'DAY')) WHEN 'MONDAY' then '1' another '2' end HAVE double TodaysDate

SELECT Count (other_id) AS NoRecFound FROM gl_dup_ids_ssns WHERE Trim (create_date) =

SELECT Count (other_id) AS NoRecFound FROM gl_dup_ids_ssns WHERE (create_date) = CF Trim codes to stop the process and email admin

Error performing query of database appears when it hit to run cfstoredproc. The codes are exactly the same that in CF8, this model has not been changed. Exceptions 14:03:53.053 - database Exception: in /home/space/users/www/GL/glproc.cfm: line 93 runtime error query database.

I found the answer! In case someone out there also face the same question. In Administrator, Datasource Advance, go down and find: authorized SQL where there are checkboxes for Select, Update, Delete, Insert and one of them is to store the process checkbox. My box was not checked that's why ColdFusion is unable to call a stored procedure. I checked and recorded and I'm good to go.

Tags: ColdFusion

Similar Questions

  • Error running query of queries

    Hello

    I am in the process of updating my site in CF5 to CF9 and I get a "query of query error" on the following code each time I have add the first point to my shopping cart. If I add a second element, the error disappears. Here are two pieces of keys to the code where I pull the item from the database information and then use the query requests to merge the query with the amount of shopping cart.

    <!-get-> Product Details

    < CFQUERY NAME='GetDetails'

    DATASOURCE = ' #request.ds # '

    Username = ' #request.dsuser # '

    PASSWORD = ' #request.dspass # ' >

    SELECT
    ItemNo,

    Agenda,

    Grades,

    Price,

    ImageSmall

    DE Products
    ItemNo IN (#QuotedValueList(GetCart.ItemNo) #)
    < / CFQUERY >

    <!-add the column "OrderQty"->

    < CFQUERY NAME="GetList" DBTYPE="query">

    SELECT
    GetDetails.ItemNo YOU ItemNo,

    GetDetails.Item point, AS

    GetDetails.Grades AS Grades,

    AS price, GetDetails.Price

    GetDetails.ImageSmall AS ImageSmall,

    GetCart.Quantity AS OrderQty

    DE GetDetails, GetCart
    GetDetails.ItemNo = GetCart.ItemNo
    < / CFQUERY >

    This is the error I get. The line number refers to the Q of Q above.

    Error running query of queries.

    Comparison = runtime exception.
    Comparison of Type incompatible Exception: on the left side and right side of the comparison operator "=" have incompatible types.
    Type of expression left side = "VARCHAR".
    Expression type side right hand = "DATE".

    I tried a lot of things affect a 'string' type to the right, but nothing seems to work.

    I would be very happy any help that I can get as I've spent countless hours trying to figure this.

    Thank you
    Steve

    Looks like the GetCart query is generated with functions to query coldfusion as opposed to a database query.  It also seems that the QueryNew function has the names of the fields, but not the types of data.  This means some trys to ColdFusion for the type of basic data on the first rows of data.

    Or it could be something else.

  • "Error running query: the real member does not exist in the application.

    Hi all

    I have a HFM EN users need to run, but somehow they started getting this error "error running query: real member does not exist in the application". I traced their levels of access to mine, and I am able to run the same report without any problem but the user still getting the same error. what may be the possible cause. Please help me so that I can ensure the debugging.

    Thank you

    Zitouni

    I was able to solve this problem by checking the user of security principals class was trying to run the report for. The user did not have acesss on the class of the said security and change all, solve the problem.

    Thanks, Sattu

  • Error performing query database

    Hello

    I do an upgrade in "trial" from ColdFusion 5 to ColdFusion MX with Oracle 9.i and this line:

    < CFPROCPARAM TYPE = 'Out' variable = "F_REF_CURSOR" cfsqltype = "CF_SQL_REFCURSOR" >

    origin of this error

    Run database query error. [DataDirect] [SequeLink JDBC Driver] The specified SQL type is not supported by this driver.

    I tried to delete this line as suggested in an article, but it did not work. Is there a solution to fix? All of our applications rely on it and rewriting would be a huge effort.

    Help, please.

    Heck, if you use CF MX Enterprise and an oracle 9i database, why you use an ODBC socket connection? Why don't you just set up your data source using the driver Oracle provided instead? The performance is much better than using ODBC.

    Phil

  • Error running query of database only with goDaddy

    A that someone already had this problem...

    I have an installation of Access db with a Memo field to place some articles on a page. Whenever we try to write more than 500 characters, it throws the below error. Under 500 characters or with any other hosting company, it works fine.

    Run database query error.
    Application uses a value of the wrong type for the current operation.

    The error occurred in D:\Hosting\whateverpath\add-news.cfm: line 3

    1: < cfinclude template = "include_CheckAuthority.cfm" >
    4.
    3: < cfinsert datasource = "whateverdatasource" tablename = "News" >
    4:
    5: < cfset login = "news.cfm?" Message ="and URLEncodedFormat ("News item added!") >

    SQL insert into News (NEWSAUTHOR, NEWSCONTENT, NEWSTITLE) values ((param 1), (param 2), (param 3))
    Whateverdatasource DATA source
    SQLSTATE

    I spent hours on the phone with these people and it is clear that no one he knows nothing cfserver at all. They should not yet be running in my opinion.

    Thank you!
    David

    Thanks for the reply Ken, who well fix. I'll have to remember that one!

  • Error in querying database using OSB

    Hello

    I'm querying the database. After the vote, I call you a split join which inturn has some service SOA calls. Everything worked fine until recently I observed that the polling stops after a few attempts and I get an error like:

    # < 6 March 2013 14:49:03 this > < error > < BPEL Kernel > < edadapp01 > < osb_server1 > < ExecuteThread [ASSET]: '20' to queue: '(self-adjusting) weblogic.kernel.Default' > < < anonymous > > <>< 84653bbbef33069c:-6fd16400:13d3f9fe982: - 8000-0000000000000257 > < 1362577743258 > < BEA-2032000 > < error during the invocation of 'Splitjoin/PROJ/SplitJoin' for the event "JobEvent". ': Use button [56] ' type 'com.bea.bpel.interpreter.internal.scheduler.JobEvent '.
    java.lang.IllegalStateException: 13 Thread already has a job in the job queue.
    at com.bea.bpel.services.state.InMemoryJobQueue.offer(InMemoryJobQueue.java:113)
    at com.bea.bpel.interpreter.internal.concurrent.BlockedListener.queueBlockedJob(BlockedListener.java:59)
    to com.bea.bpel.interpreter.internal.concurrent.BlockedListener. < init > (BlockedListener.java:50)
    to com.bea.bpel.interpreter.internal.concurrent.BlockedListener. < init > (BlockedListener.java:39)
    at com.bea.bpel.interpreter.internal.concurrent.LockTransactionImpl.lock(LockTransactionImpl.java:91)
    at com.bea.bpel.interpreter.internal.program.StackFrameImpl.lockObject(StackFrameImpl.java:275)
    at com.bea.bpel.interpreter.internal.program.StackFrameImpl.findVariable(StackFrameImpl.java:184)
    at com.bea.bpel.interpreter.internal.instruction.assign.VariableDataResolver.getExclusiveKeys(VariableDataResolver.java:35)
    at com.bea.bpel.interpreter.internal.instruction.assign.AssignExtensionOperation.getExclusiveKeys(AssignExtensionOperation.java:38)
    at com.bea.bpel.interpreter.internal.instruction.concurrent.ExclusiveDataHandler.lock(ExclusiveDataHandler.java:47)
    at com.bea.bpel.interpreter.internal.instruction.concurrent.LockInstruction.enter(LockInstruction.java:43)
    at com.bea.bpel.interpreter.internal.process.ProcessNodeImpl.enter(ProcessNodeImpl.java:181)
    at com.bea.bpel.interpreter.internal.Interpreter.interpret(Interpreter.java:155)
    at com.bea.bpel.interpreter.internal.Interpreter.invoke(Interpreter.java:87)
    at com.bea.bpel.internal.dispatcher.EngineManagerImpl.dispatch(EngineManagerImpl.java:66)
    at com.bea.bpel.internal.dispatcher.EngineManagerImpl.dispatch(EngineManagerImpl.java:44)
    at com.bea.bpel.internal.dispatcher.SchedulerServiceContextImpl.fireEventJobScheduled(SchedulerServiceContextImpl.java:87)
    at com.bea.bpel.internal.dispatcher.SchedulerServiceContextImpl.fireEvent(SchedulerServiceContextImpl.java:68)
    to com.bea.alsb.flow.scheduler.SchedulerServiceImpl$ 1.run(SchedulerServiceImpl.java:32)
    at weblogic.work.ContextWrap.run(ContextWrap.java:41)
    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)


    Now, the error repeats only inside the error 'event' gets changed sometimes, but except that everything is the same. Thus, database is not get questioned.

    It works after after you remove and redeploy the code on the server, but after 3-4 rounds of the same question.

    Anyone has an idea about this, please help.


    Thanks in advance,
    Tarun

    Published by: Tarun Rousseau on March 7, 2013 01:29

    This is a Bug related to the updated global vars in different branches of a join split catch block.
    Take a look at BugID:13627312 in Metalink and request the hotfix.

    Kind regards
    Fabio Douek.

  • Error performing query database (met [nullstring])

    The attached code gives an error message. I had nullstrings been submitted in 'notes' and 'internal notes', but I removed them in an (unsuccessful) attempt to solve this problem. This can be corrected? Thank you! quote from
    :
    Run database query error.
    Syntax error: encountered ' ' at line 9, column 43.

    The error occurred in C:\ColdFusion8\wwwroot\Example\init.cfm: line 6

    4: < / head >
    5: < body >
    6: < CFQUERY NAME = "init" DATASOURCE = "Example" >
    7: CREATE TABLE programs)
    8: ID int,

    SQLSTATE 42 X 01
    Programs SQL CREATE TABLE (ID int, int program_ID, name varchar (20), long_name varchar (50), creator_email varchar (50), notes varchar (50), internal_notes varchar (50), bool is_public); INSERT INTO programs (name, ID, program_ID, long_name, creator_email, is_public) VALUES (0, 1, 'Basic', '(shortlisted) Basic', '[email protected]', true); SELECT * FROM programs;
    VENDORERRORCODE 30000
    Example of DATA source
    Resources:

    * See 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/5.0 (Windows; U; Windows NT 5.1; en-US; RV:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
    Remote address 127.0.0.1
    Referrer
    Time February 20 08 23:53
    Stack trace
    (to cfinit2ecfm949254281.runPage(C:\ColdFusion8\wwwroot\Example\init.cfm:6) at cfinit2ecfm949254281.runPage(C:\ColdFusion8\wwwroot\Example\init.cfm:6)

    [ginormous Java stacktrace omitted]
  • Error running of CFCS. Parameter index out of range (2 &gt; number of parameters, which is 1)

    Hello

    My CFC component is defined as:

    < name cffunction output = "updateNote" = "false" access = "remote" returntype = 'Cancel' >

    < name cfargument = "notedetails" required = "true" type = "string" >

    < name cfargument = "notename" required = "true" type = "string" / >

    < cfquery name = "qupdateNote" datasource = "notes_db" >

    UPDATE

    Notes

    SET

    Notes.notedetails = < CFQUERYPARAM CFSQLTYPE = "CF_SQL_VARCHAR" VALUE = "#ARGUMENTS.notedetails #" >.

    WHERE

    notename = "< CFQUERYPARAM CFSQLTYPE ="CF_SQL_VARCHAR"VALUE =" #ARGUMENTS.notename # "" > ""

    < / cfquery >

    < / cffunction >

    In Flash builder when I test the operation I get this error:

    "There was an error when calling the operation. Check your server settings and try to call again the operation.

    Reason: Server error unable to invoke CFC - error running query database. Parameter index out of range (2 > number of parameters, which is 1). »

    IM quessing that it really is something small, but now its making me pull my hair on my head! Arghhh. Tried a lot of things but I know thik im stuck.

    Help would be very much appreciated.

    Thank you

    The sql error is a comma.

  • Characters not visible (caused by hitting the bar space or TAB in PL/SQL developer tool) causing slow running query? and database with low performance?

    Hi all

    I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue

    Oracle_Isssue.png

    Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool

    I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).

    Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2

    Oracle_Isssue_2.png

    So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.

    My application uses SQL server 2008-2012 at the backend to store data from different sources.

    Character set used: SQL_Latin1_General_CP1_CI_AS


    To write and test queries: PL/SQL developer tool

    My Client use Oracle 11 g

    Character set used: Normal character: NLS_CHARACTER: AL16UTF16

    National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521

    I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.

    Please let me know if I'm missing something or you need more information on this issue.

    Thanks in advance,

    HP

    Simple answer. No.

    Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.

  • Error when running oracle database synchronization project

    Hi all

    We have created a connection to the oracle database with native database connector in the Dell One Identity Manager 7.0.1.

    We created the project of synchronization for the initial synchronization. working server have been defined with the Native Database Connector service. but when the synchronization of the project executing its gives me error. below

    "[2161006] a full synchronization runtime error!"

    VI. Projector.Editor.Internal.GlobalActionHandler.HandleEvent (Object sender, eventName, String, Object [] args)
    VI. Projector.Editor.Internal.GlobalActionHandler._ExecuteStartInfo (IProjectionStartInfo startInfo)

    [810103] error generating processes to the event being handled.
    VI. DB. . Entities.PermissionsUnitOfWork d__2b. MoveNext()
    VI. DB. Entities.UnitOfWorkImpl. d__13.MoveNext)
    VI. DB. JobGeneration.JobGeneratorImpl. d__0.MoveNext)

    [810222] error running script "Event_Run".
    VI. DB. JobGeneration.JobGeneratorImpl. d__0.MoveNext)
    VI. DB. JobGeneration.JobGeneratorImpl. <_CreateChainsForSingle>d__10.MoveNext)
    VI. DB. Scripting.ScriptInstance.Eval (String key, Object [] parameters)

    [810108] error generation process step Run event.
    at DynScripts.JobGen_DPRProjectionStartInfo_203oMa0Utun7HUiP7JfLSY2TsE.Event_Run (JobGenContext context)

    [810109] error generating process DPR_DPRProjectionStartInfo_Run_Synchronization.
    at DynScripts.JobGen_DPRProjectionStartInfo_203oMa0Utun7HUiP7JfLSY2TsE.Event_Run (JobGenContext context)
    at DynScripts.JobGen_DPRProjectionStartInfo_203oMa0Utun7HUiP7JfLSY2TsE.Chain_DPR_DPRProjectionStartInfo_Run_Synchronization (JobGenContext context, String EventName)

    [810110] error generating process step run the synchronization.
    at DynScripts.JobGen_DPRProjectionStartInfo_203oMa0Utun7HUiP7JfLSY2TsE.Chain_DPR_DPRProjectionStartInfo_Run_Synchronization (JobGenContext context, String EventName)
    at DynScripts.JobGen_DPRProjectionStartInfo_203oMa0Utun7HUiP7JfLSY2TsE.Job_DPR_DPRProjectionStartInfo_Run_Synchronization_Run_Synchronization (JobGenContext context, String EventName, JobChain myChain, IVarContext chainValues)

    [810112] there is no server that can perform server mask and/or my script from selection of an entry-level server.
    VI. DB. JobGeneration.JobGenContext. <> c__DisplayClass1. <_GetJobServer>b__0 > d__3.MoveNext)

    Please help me in this.

    Kind regards

    Hello

    In your synchronization project, go to Setup > Basic objects...

    If you do not have a base object that defines the working server where synchronization has to be performed then you will get the above error.

    Create a base object and try again.

    HTH, B.

  • Error Windows Update Database that can be 0 x 80070490

    Original title:

    Update of Windows, Java and some problems

    Hello

    My Java and Windows 8 will not get automatically updated.  When I go to all the work this symbol [[[comes in. I have updated Java, nevertheless a message shows to update when I put a cursor over any word of an open page of the internet. I have troubleshooted illustrated message"

    Error Windows Update Database that can be 0 x 80070490

    Miniport Wan (Network Monitor) # 2 has a driver problem

    Windows Update configured to never install drivers '  

    Some keys on the keyboard do not work.  How can I fix these problems?

    Hello Arif,

    Thanks for posting your query on Microsoft Community forum.

    If you receive Windows Update error 80070490, it means that a file (CBS Manifest) that is needed to install updates is corrupt.

    Try it out below mentioned methods and see if it helps.

    Method 1

    Try to follow the steps mentioned in the article below.

    Windows Update, error 0 x 80070490

    Method 2

    Try to run the Troubleshooting Windows Update tool.

    This utility is used to and check if the network card and Windows Update services are running properly.

    Problems with installing updates

    Try other steps mentioned in this article if the issue that you are facing is mentioned in one of the mentioned option it.

    Method 3

    If the problem persists I suggest to reset the Windows Update components and for this, try to run the fixit described in the following article. If you already tried the fixit even before that I ask of you rerun the fixit.

     

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058/en-us#LetMeFixItMyselfAlways

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • Using bulk collect into with assistance from the limit to avoid the TEMP tablespace error run out?

    Hi all

    I want to know if using bulk collect into limit will help to avoid the TEMP tablespace error run out.

    We use Oracle 11 g R1.

    I am assigned to a task of creating journal facilitated for all tables in a query of the APEX.

    I create procedures to execute some sql statements to create a DEC (Create table select), and then fires on these tables.

    We have about three tables with more than 26 million records.

    It seems very well running until we reached a table with more than 15 million record, we got an error says that Miss tablespace TEMP.

    I googled on this topic and retrieve the tips:

    Use NO LOG

    Parallel use

    BULK COLLECT INTO limited

    However, the questions for those above usually short-term memory rather than running out of TEMPORARY tablespace.

    I'm just a junior developer and does not have dealed with table more than 10 million documents at a time like this before.

    The database support is outsourced. If we try to keep it as minimal contact with the DBA as possible. My Manager asked me to find a solution without asking the administrator to extend the TEMP tablespace.

    I wrote a few BULK COLLECT INTO to insert about 300,000 like once on the development environment. It seems.

    But the code works only against a 000 4000 table of records. I am trying to add more data into the Test table, but yet again, we lack the tablespace on DEV (this time, it's a step a TEMP data)

    I'll give it a go against the table of 26 million records on the Production of this weekend. I just want to know if it is worth trying.

    Thanks for reading this.

    Ann

    I really need check that you did not have the sizes of huge line (like several K by rank), they are not too bad at all, which is good!

    A good rule of thumb to maximize the amount of limit clause, is to see how much memory you can afford to consume in the PGA (to avoid the number of calls to the extraction and forall section and therefore the context switches) and adjust the limit to be as close to that amount as possible.

    Use the routines below to check at what threshold value would be better suited for your system because it depends on your memory allocation and CPU consumption.  Flexibility, based on your limits of PGA, as lines of length vary, but this method will get a good order of magnitude.

    CREATE OR REPLACE PROCEDURE show_pga_memory (context_in IN VARCHAR2 DEFAULT NULL)

    IS

    l_memory NUMBER;

    BEGIN

    SELECT st. VALUE

    IN l_memory

    SYS.v_$ session se, SYS.v_$ sesstat st, SYS.v_$ statname nm

    WHERE se.audsid = USERENV ('SESSIONID')

    AND st.statistic # nm.statistic = #.

    AND themselves. SID = st. SID

    AND nm.NAME = 'pga session in memory. "

    Dbms_output.put_line (CASE

    WHEN context_in IS NULL

    THEN NULL

    ELSE context_in | ' - '

    END

    || 'Used in the session PGA memory ='

    || To_char (l_memory)

    );

    END show_pga_memory;

    DECLARE

    PROCEDURE fetch_all_rows (limit_in IN PLS_INTEGER)

    IS

    CURSOR source_cur

    IS

    SELECT *.

    FROM YOUR_TABLE;

    TYPE source_aat IS TABLE OF source_cur % ROWTYPE

    INDEX BY PLS_INTEGER;

    l_source source_aat;

    l_start PLS_INTEGER;

    l_end PLS_INTEGER;

    BEGIN

    DBMS_SESSION.free_unused_user_memory;

    show_pga_memory (limit_in |) "- BEFORE"); "."

    l_start: = DBMS_UTILITY.get_cpu_time;

    OPEN source_cur.

    LOOP

    EXTRACTION source_cur

    LOOSE COLLECTION l_source LIMITED limit_in;

    WHEN l_source EXIT. COUNT = 0;

    END LOOP;

    CLOSE Source_cur;

    l_end: = DBMS_UTILITY.get_cpu_time;

    Dbms_output.put_line (' elapsed time CPU for limit of ')

    || limit_in

    || ' = '

    || To_char (l_end - l_start)

    );

    show_pga_memory (limit_in |) "- AFTER");

    END fetch_all_rows;

    BEGIN

    fetch_all_rows (20000);

    fetch_all_rows (40000);

    fetch_all_rows (60000);

    fetch_all_rows (80000);

    fetch_all_rows (100000);

    fetch_all_rows (150000);

    fetch_all_rows (250000);

    -etc.

    END;

  • Problem using the command oraext:query-database() in the xslt file

    Hello

    I ask a function through the query command - database () in a certain xslt in a BPEL process as below:

    < name of xsl: variable = "Company" >

    < xsl: value - of select = "string ('CORPORATION')" / >

    < / xsl: variable >

    < name of xsl: variable = "CustAccIdFrmDB" >

    < xsl: value-of select ='orext:query - database (concat ("select xx_egytrans_integration.get_xid(",$getCustAccID,",",$Corporation,") from the dual"), false (), false (), string("jdbc/otmdatasource")) "/ >"

    < / xsl: variable >

    But, after the deployment of the BPEL process and when running it, I get the error at run time.

    Here is the error,

    " < bpelFault > < faultType > 0 < / faultType > < subLanguageExecutionFault xmlns =" http://schemas.Oracle.com/BPEL/extension "> < a name ="summary"part > < summary > XPath expression cannot run." An error occurs during the processing of the XPath expression; the term is ora: OutputVariable.OutputParameters). the XPath expression cannot run; the reason was: javax.xml.transform.TransformerException: XML-22900: (Fatal Error) an internal error condition has occurred. Check the detailed origin described in the text of the exception message and verify that the XPath query is correct. < Summary / > < / part > < part name = "code" > < code > XPathExecutionError < / code > < / piece > < / subLanguageExecutionFault > < / bpelFault >


    Could if it you please let me know the probable reason for the error? Please help as soon as possible.


    Thank you

    Imane

    Hello

    The problem is now solved by adding an alias for the columns like below:

    Select xx_egytrans_integration.get_xid (21468, 'CORPORATION') result of double;

    Now, it could be used in xsl.

    Thank you

    Imane.

  • MS SQL - error in query syntax is valid

    I have a problem with the second query in this code (gives me a syntax error in my HAVING line)

    < name cfquery = "getDupes" datasource = "#application. "ODBC1 #" dbtype = "ODBC" username = "" #application.userNameODBC1 # "password =" #application.userPassODBC1 # ">"
    SELECT *.
    OF view_FormCount
    WHERE formCount > = 2
    ORDER BY formNum
    < / cfquery >

    < cfset variables.lstForms = "" > "".

    < cfoutput query = "getDupes" >
    < cfset variables.lstForms = listAppend(variables.lstForms,"'#getDupes.formNum#'") >
    < / cfoutput >

    < cfset variables.whereClause = "(formNum = #ReplaceNoCase(variables.lstForms,',',' OR formNum = ','ALL') #)" > ".

    < name cfquery = 'getDetails' datasource = '#application. "ODBC1 #" dbtype = "ODBC" username = "" #application.userNameODBC1 # "password =" #application.userPassODBC1 # ">"
    SELECT tblForms.formNum, tblForms.formName, tblForms.formCustNum, tblCompanies.companyAbbr
    FROM tblForms INNER JOIN tblCompanies ON tblForms.formCustNum = tblCompanies.companyNum
    GROUP OF tblForms.formNum, tblForms.formName, tblForms.formCustNum, tblCompanies.companyAbbr
    WITH #variables.whereClause #.
    ORDER BY tblForms.formNum, tblForms.formCustNum
    < / cfquery >

    Now, the really strange thing is that if I just take the text of the query on the CFQUERY tags and use CFOUTPUT rather (to see in my browser which application is getting executed) I have a query that I can paste into Enterprise Mgr and works very well.

    I can even paste the text from a CFQUERY and CF in my code it will work very well.

    In other words, the application of the dynamic version gives me an error, but if I've just out of the SQL statement, copy - paste in the CFQUERY which is less out error (which replaces what is there) to run as a static query, it works very well (sample static query below).

    The error I get when I try to do it dynamically is "runtime error query database. [Macromedia] [SQLServer JDBC Driver] [SQL Server] Line 4: Incorrect syntax near '10169318'. The error occurred on line 21. "that is where begins the HAVING clause.

    SELECT tblForms.formNum, tblForms.formName, tblForms.formCustNum, tblCompanies.companyAbbr FROM tblForms INNER JOIN tblCompanies ON tblForms.formCustNum = tblCompanies.companyNum GROUP BY tblForms.formNum, tblForms.formName, tblForms.formCustNum, tblCompanies.companyAbbr HAVING (formNum = '10169318 ' OR formNum = "1016CONCERTA" OR formNum = "1016NSAIDS" OR formNum = "1016STRATTERA" OR formNum = "1016WELLBUTRIN" OR formNum = '18504211' OR '185093807' OR formNum = ' 73208565 = formNum' GOLD formNum = ' 732120027' GOLD formNum = ' 7322154' GOLD formNum = ' 7323402' GOLD formNum = ' 7323522' GOLD formNum = ' 73238900' GOLD formNum = ' 7324211' = '7324211S' formNum = ' 7324265 GOLD formNum GOLD ' GOLD formNum = ' 73242891' GOLD formNum = ' 732434341' GOLD formNum = ' 732434342' GOLD formNum = ' 73243435' OR) formNum = '73243436' OR formNum = '73243439' OR formNum = '73243440' OR formNum = '73243441' OR formNum = '73243442' OR formNum = '73243443' OR formNum = '7324359' OR formNum = '7324360' OR formNum = '7324370' OR formNum = '7324560' OR formNum = '7324959' OR formNum = '7326411ptreg' OR formNum = '7326599' OR formNum = '7326600' OR formNum = '7326620' OR formNum = '7326707' OR formNum = '7326931' OR formNum = '7328410' OR formNum = '732851031TOP' OR formNum = '7328512' OR formNum = '7328548' OR formNum = '7328548P2' OR formNum = '7328548P3' OR formNum = '7328548P4' OR formNum = '73289400' OR formNum = '73290D' OR formNum = '7329154' OU formNum = « 73291544JHS » OR formNum = « 73291545JHS » OR formNum = « 73291546JHSMH » OR formNum = « 73291547JHSMH » OR formNum = '7329174' OR formNum = '7329308' OR formNum = '7329402' OR formNum = '7329424' OR formNum = '7329455' OR formNum = '7329520' OR formNum = '7329539' OR formNum = « 73297701JH » OR formNum = '73298273' OR formNum = '73298400' OR formNum = '73298403' OR formNum = '73298404' OR formNum = '7329883' OR formNum = '73298860' OR formNum = '7329887' OR formNum = '73298974' OR formNum = '7329899' OR formNum = « 7329899S » OR formNum = '73299190' OR formNum = '7329987' OR formNum = « 7329999PTO » OR formNum = « 732AV5160 » OR formNum = ' 732CMHFRAZ' GOLD formNum = "732HIPAA" OR formNum = "732HIPAAFLYERS" formNum = "734HEART" formNum = ' 7444711 GOLD GOLD ' GOLD formNum = ' 7449230' GOLD formNum = ' 744 HR 4991' formNum GOLD = 7538014 MI' formNum = ' 77511044 GOLD ' GOLD formNum = ' 77511045' OR formNum = "775stampnochange" OR formNum = "80851001BLUE" OR formNum = "80MR4200" OR formNum = "80MR4273" OR formNum = "80MR4274" OR formNum = "80MR4300" OR formNum = "80MR9934" OR formNum = "80MR9935" OR formNum = "80SHC100" OR formNum = "80SHC4301" formNum = "80SHC9830" GOLD formNum GOLD = '80SHC9832') ORDER BY tblForms.formNum tblForms.formCustNum

    Use the function preservesinglequotes for your whereclause variable.

  • Format XP Microsoft JET Database Engine error 80004005 unrecognized database would be...-

    XP Microsoft JET Database Engine error '80004005' Unrecognized database format would be... -Is a message I get. Don't know how to fix it?

    Hello

    Welcome to the community forums of Microsoft and thanks for posting the question. He would be grateful if you could answer a few questions to refine the question.

    1. Once you get this error?

    2. are you aware of changes to the computer before the show?

    3. you use ActiveX Data Objects (ADO) or ODBC to connect to a Microsoft Access database?

    4. This error occurs when you run a specific program or out of order?

    5 are logged as administrator?

    "Your question contains all the required information necessary for us to help you. Please re - write your question, this time make sure you have all the information necessary and we will try to help. »
     
    See this link for more information on:
     
    http://support.Microsoft.com/kb/555375

    Provide more information about the issue so that we can help you.

Maybe you are looking for

  • office 2010 product activation

    Hello I recently bought an Ideapad z580 who had microsoft office pre-installed on it. When I tried to activate the product with the windows product key on the sticker on the base of the laptop computer, windows tells me that the activation key is 'no

  • Media center guide ads download problem

    My media center 2005 with Rollup 2 installed, will not update my guide channel registrations beyond this Sunday afternoon (14/08/11) download?  I went to windows update. Nothing to update. Help!

  • The music changes when I 'publish '.

    I made a movie & trimmed a clip of music because I don't want the music to start until the chorus, t begins in the perfect location and I've recorded.But when I published the film music is different and he's starting to halfway through the first vers

  • NY printer is not powered running on offline. How do online

    Under Vista, my printer is offline, and I want to spend online.

  • HP LaserJet Pro M201, PCL: Copy of M201 guard auto install printer

    Microsoft SP3, WIN 8.1;  HP laserJet Pro M201 USB directly to the port of docking and wireless to accommodate off-site (in-NETWORK) printing.   Also have HP AIO, which has only one version of the driver.  No copy is created at startup or the awakenin