Coldfusion Query Delay Problem

Folks we are having some intermittent problems with our
application web servers.
We are using coldfusion to serve data from Oracle databases.
SELECT statements only, no updating of the database is done. The
coldfusion application server and the oracle database server are
seperate servers,
The problem we are having is as follows.
When the user opens the app for the 1st time a query is run
to work out what access level they have. 95% of the time the query
is instant. We have been logging this using getticktick()
often the time taken is 0ms we also see 16ms and 31ms. The query
returns
1 row with 1 field in it to size of data returned is not an
issue.
Occasionally we get this query reportedly taking between 5
and 120 seconds using gettickcount() either side of it.
We turned on some logging at the Oracle end and this reported
that EVERY time a query of this type it is taking absolutely no
time all.
Our next port of call was the network. We have sniffed
packets between the coldfusion server and the oracle server.
We managed to trap one of the requests where the response
time is slow and the scenario was as follows :
1. Coldfusion -> Oracle. Hello i've got some work for you
to do. Completed in millisenconds
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in millseconds.
3. Coldfusion -> Oracle Acknowledged......... delay of 17
seconds (delay times vary)..... it's this query
4. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
5. Coldufsion -> Oracle. Acknlowledged. completed in
millseconds.
So it appears that internally within coldfusion a delay is
occuring as the database and the network have been eliminated.
The delay time is never the same and can range from a couple
of seconds to over a minute. The times of day that these delays
occur at is not uniform.
The server is busiest between 0800 and 1700. But this server
is NOT under heavy load at all, it is however query intensive. It
is up 24 hours a day and there is a constant user base.
We have tuned all our queries and cached them as best we can.
However i'm not sure how much this helps as we get delays on
queries we know are performant.
We are currently upgrading one of our servers to CF8 using
oracle thin jdbc drivers rather than the odbc to see if this makes
a difference.
If anyone has previous experience of this or knows of
anything settings we need to tweak at a java level that would be
great.
Spec of what we are running is as below :
Windows 2003 Server
Coldfusion MX 7.0.2 Standard
Oracle 10g ODBC Drivers
Any help gratefully received as the users are starting to get
fed up of having these delays for no apparent reason.

> 3. Coldfusion -> Oracle Acknowledged......... delay
> of 17 seconds (delay times vary)..... it's this query
Do you mind elaborating here?
It kind of appears as if there are two requests.
Meaning, is it just as correct to state it this way:
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in millseconds.
3. Coldfusion -> Oracle Acknowledged. it's this query.
delay of 17 seconds (delay times vary)
4. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
If this is how it happened, then I would guess that
it's a database issue.
Or perhaps this is the more correct way to state it:
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in milliseconds.
3. Coldfusion -> Oracle Acknowledged. Completed in ???
4. Coldfusion -> Oracle it's this query. Completed in ???
5. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
If this is how it happened, then I would think you
need to determine which step took 17 seconds.

Similar Messages

  • Problem with return a ColdFusion query object from a Java class

    Hi!
    I need to return a ColdFusion query object from a Java class
    using a JDBC result set ( java.sql.ResultSet);
    I have tried to pass my JDBC result set in to the constructor
    of the coldfusion.sql.QueryTable class with this code:
    ColdFusion code
    <cfset pra = createObject("java","QueryUtil").init()>
    <cfset newQuery = CreateObject("java",
    "coldfusion.sql.QueryTable")>
    <cfset newQuery.init( pra.getColdFusionQuery () ) >
    My java class execute a query to db and return QueryTable
    Java code (QueryUtil.java)
    import coldfusion.sql.QueryTable; // (CFusion.jar for class
    QueryTable)
    import com.allaire.cfx //(cfx.jar for class Query used from
    QueryTable)
    public class QueryUtil
    public static coldfusion.sql.QueryTable
    getColdFusionQuery(java.sql.ResultSet rs)
    return new coldfusion.sql.QueryTable(rs);
    but when i run cfm page and coldfusion server tries to
    execute : "<cfset pra =
    createObject("java","QueryUtil").init()>" this error appears:
    Object Instantiation Exception.
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    If i try to execute QueryUtil.java with Eclipse all it works.
    Also I have tried to return java.sql.ResultSet directly to
    coldfusion.sql.QueryTable.init () with failure.
    Do you know some other solution?

    ok
    i print all my code
    pratica.java execute a query to db and return a querytable
    java class
    import java.util.*;
    import java.sql.*;
    import coldfusion.sql.*;
    public class Pratica {
    private HashMap my;
    private String URI,LOGIN,PWD,DRIVER;
    private Connection conn=null;
    //funzione init
    //riceve due strutture converite in hashmap
    // globals
    // dbprop
    public Pratica(HashMap globals,HashMap dbprop) {
    my = new HashMap();
    my.put("GLOBALS",globals);
    my.put("DBPROP",dbprop);
    URI = "jdbc:sqlserver://it-bra-s0016;databaseName=nmobl";
    LOGIN = "usr_dev";
    PWD = "developer";
    DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    try{
    // Carico il driver JDBC per la connessione con il database
    MySQL
    Class.forName(DRIVER);
    /* Connessione alla base di dati */
    conn=DriverManager.getConnection(URI,LOGIN,PWD);
    if(conn!=null) System.out.println("Connection Successful!");
    } catch (ClassNotFoundException e) {
    // Could not find the database driver
    System.out.print("\ndriver non trovato "+e.getMessage());
    System.out.flush();
    catch (SQLException e) {
    // Could not connect to the database
    System.out.print("\nConnessione fallita "+e.getMessage());
    System.out.flush();
    //funzione search
    //riceve un hash map con i filtri di ricerca
    public QueryTable search(/*HashMap arg*/) {
    ResultSet rs=null;
    Statement stmt=null;
    QueryTable ret=null;
    String query="SELECT * FROM TAN100pratiche";
    try{
    stmt = conn.createStatement();// Creo lo Statement per
    l'esecuzione della query
    rs=stmt.executeQuery(query);
    // while (rs.next()) {
    // System.out.println(rs.getString("descrizione"));
    catch (Exception e) {
    e.printStackTrace();
    try {
    ret = Pratica.RsToQueryTable(rs);
    } catch (SQLException e) {
    e.printStackTrace();
    this.close();
    return(ret);
    // ret=this.RsToQuery(rs);
    // this.close(); //chiude le connessioni,recordset e
    statament
    //retstruct CF vede HashMap come struct
    //METODO DI TEST
    public HashMap retstruct(){
    return(my);
    //conversione resultset to querytable
    private static QueryTable RsToQueryTable(ResultSet rs)
    throws SQLException{
    return new QueryTable(rs);
    //chiura resultset statament e connessione
    private void close(){
    try{
    conn.close();
    conn=null;
    catch (Exception e) {
    e.printStackTrace();
    coldfusion code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Test JDBC CFML Using CFScript</title>
    </head>
    <body>
    <cftry>
    <cfset glb_map =
    createObject("java","java.util.HashMap")>
    <cfset dbprop_map =
    createObject("java","java.util.HashMap")>
    <cfset glb_map.init(glb)> <!---are passed from
    another page--->
    <cfset dbprop_map.init(glb["DBPROP"])>
    <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    <cfset ourQuery
    =createObject("java","coldfusion.sql.QueryTable").init(pra.search())>
    <cfcatch>
    <h2>Error - info below</h2>
    <cfdump var="#cfcatch#"><cfabort>
    </cfcatch>
    </cftry>
    <h2>Success - statement dumped below</h2>
    <cfdump var="#ourQuery#">
    </body>
    </html>
    error at line <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    -----------------------------------------------------------------------

  • About query related problem

    hi ,
           we are generate query in 2005b,and procced for execuite query.following problem occure'<b>odbc sql server driver'[sql server] syntax error the converting the nvarchar value' 70302/20307' to column of data type int received alert OAIB</b>
    QUERY SHOWN BE AS FOLLOW.
    SELECT T5.DocNum as'Po. No. ', T5.DocDate as 'Po Date',T0.CreateDate,T5.NumAtCard as 'Man.PO. No/ Dt.', T0.DocNum as'AP No. ', T0.DocDate as 'AP Date',T0.NumAtCard as 'Vendor Ref. No.', T0.U_vbdt as 'Vendor Ref. Date', T0.CardName as 'Vendor', T1.Dscription as 'Item',  T1.Quantity AS 'QTY'  , T1.Price as 'Basic Rate', (T1.Price *T1.Quantity) as 'Value',T0.Comments as 'Po No. & Po.Dt.' FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN OPDN T3 ON T2.CardCode = T3.CardCode INNER JOIN PDN1 T4 ON T3.DocEntry = T4.DocEntry INNER JOIN OPOR T5 ON T2.CardCode = T5.CardCode INNER JOIN POR1 T6 ON T5.DocEntry = T6.DocEntry INNER JOIN OITM T7 ON T1.ItemCode = T7.ItemCode INNER JOIN OITB T8 ON T7.ItmsGrpCod = T8.ItmsGrpCod WHERE (  T1.BaseRef  =  T3.DocNum )  AND ( T4.BaseRef =  T5.DocNum ) AND (  T0.U_vbdt >=[%25]AND  T0.U_vbdt <=[%26]) AND ( T4.Dscription =T1.Dscription ) AND ( T4.Dscription = T6.Dscription  ) AND  (( T1.Dscription=[%0] OR T1.Dscription=[%1] OR T1.Dscription=[%2] OR T1.Dscription=[%3] OR T1.Dscription=[%4] OR T1.Dscription=[%5] OR T1.Dscription=[%6] OR T1.Dscription=[%7] OR T1.Dscription=[%8] ) OR ( T0.CardName=[%10] OR T0.CardName=[%09] OR T0.CardName=[%27] OR T0.CardName=[%28] ) OR ((  T8.ItmsGrpNam =[%11]  oR T8.ItmsGrpNam =[%12] OR T8.ItmsGrpNam =[%13] OR T8.ItmsGrpNam =[%14] OR T8.ItmsGrpNam =[%15] OR T8.ItmsGrpNam =[%16] OR T8.ItmsGrpNam =[%17] OR T8.ItmsGrpNam =[%18] OR T8.ItmsGrpNam =[%19] ) and  ( T7.U_FirmName =[%20] OR T7.U_FirmName =[%21] OR T7.U_FirmName =[%22] 
    oR T7.U_FirmName =[%23] OR T7.U_FirmName =[%24] )) )

    Hi Vishal,
    the value '70302/20307' is not an whole number so converting it to an int is not possible.
    You should check your data for this value an change your query or data.
    Regards
    Ad

  • Query designing problem while applying cell properties

    Hello Experts,
    I have a problem while designing query. Problem is as follow:
    I have a calculated field on key figure column. This key figure calculates variance between 2 columns.
    for E.g I have 2 columns Budget and Actual and third column is %Variance which should be          
    1. ((Actual - Budget)/Budget) *100 or
    2. ((Budget -Actual)/Budget)*100, depening on some values on the row i should use any of these 2 formulas but the result should be dispalyed in single column % Variance.
    how can i change the formula in key figures depending on these conditions. I can achieve this by applying cells but i dont want to do so as it is very complex way to desing these queries.
    also let me know applying cells on query affects its performance or not?
    Regards,
    Nirav

    Hi Nitin,
    Your reply may help me.
    But my exact requirement is not that. Requirement is as follow:
    I have created Char. Structure in row which contains few rows as revenue and few rows as expense.
    I created them by creating selections. Now in case of expense the variance should be                (Budget-Actual)/Budget *100.
    In case of revenue variance should be (Actual-Budget)/Budget *100.
    So, here i have to find out revenue & expense char. iresspective of which one is greater.
    Regards,
    Nirav

  • Query has problem

    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --

    848478 wrote:
    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --Consider getting the asterisk key fixed, since it results in invalid SQL syntax

  • PSE 7+ Sudden Animation Time Delay problem?

    I've been using Photoshop Elements 7+ for a long time now. And I've been able to make animations with it. Such as can bee seen on this url: http://i47.tinypic.com/35iumww.gif I know how to change the Time/Frame delay settings quite fine. But as of today my time delay hasn't been working. This is quite random considering I haven't done any kind of updating or editing to the program in general. When trying to set the time delay to 0.15 and clicking the preview button, I find that my animation is as at the default number's speed, 2. Upon changing the time delay many different times, from 0 to 10 (the min and the max), the animation's speed still doesn't change.  I'm at the end of my rope with this and none of my PSE educationed associates know what could possibly be wrong. I did download two fonts today, but that's it. So unless someone might be able to figure out what's changed, then I might have to try and re-install the program. Something I don't want to do. I have a visual if that's of any help.
    http://i47.tinypic.com/e9w64k.png
    Also, I am using a Mac.

    Which version are you using now? You can't be using PSE 7 on a mac, because there is no PSE 7 for mac. The frame delay problem exists in the mac versions 6 through 10. You can either upgrade to PSE 11 or use a program like the free giffun from stone.com to assemble the gif and set the frame rate.

  • What I've noticed about the Video Delay Problem of...

    I was able to take a look at my old vids from way back V110. I've noticed everytime they improved the camera pictures, the video & audio sync suffer. My old videos didn't have audio delay problems even if they were more than a minute long.

    I ordered 2 iPhone 4's from the AT&T Premier site on July 9 (my company has an agreement with AT&T). My credit card company immediately flagged the purchase as possible fraud, so it took a day or two to clear that up. The order went to "Processing" status on the AT&T Premier site on July 12. It stayed in that status until yesterday, July 20, when it changed to a status of "Shipped" and I got an email from AT&T with the FedEx tracking number. FedEx says that the phones shipped from Texas yesterday night and are on schedule to be delivered to me in Connecticut today (July 21). That's only 8 business days and includes the screw up from my credit card company - better than I expected. The "Processing" time probably included the time it took to ship the phones from Apple's factory in China to the AT&T facility in Texas.
    By the way, here's the deal I got from AT&T Premier:
    $38.50 - 550 shared minute plan (1st iPhone)
    $ 9.99 - Additional line (2nd iPhone)
    $19.25 - 2Gb personal data (1st iPhone)
    $19.25 - 2Gb personal data (2nd iPhone)
    $ 0.00 - pay as you go texting

  • Converting an Ultra Search result to a ColdFusion query

    Hello,
    I'm trying to convert an Ultra Search result into a ColdFusion query.
    There's a java class for CF which turns a java result into a CF query, coldfusion.sql.QueryTable(java.sql.ResultSet), but is there anything which will convert an Ultra Search result to a java result or a CF query?
    Thanks.

    HOMEWORK ALERT HOMEWORK ALERT
    You can't cast from a character to a String. That doesn't work.
    However, in a fit of being helpful.
    Look at the constructors for the String object in the API
    Link ===> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#String(char[])
    char[] charA = {'H', 'E', 'L', 'L', 'O', ' ', 'W', 'O', 'R', 'L', 'D' } ;
    String a = new String(charA) ;
    System.out.println(a) ;There's a price for my help, and it's this. Now that you understand what you can do, is it a good idea or a bad idea and why ???
    Explain.

  • How to fix the delay problem while recording? Can't set the Latency to 0. Win7, CS6,Realtek,C03u Mic

    I am using Win7, with CS6, Realtek soundcard and Samson C03U microphone.
    There is a problem that's really been bothering me. When I record songs the recorded audio always comes 0.1 seconds after where it's supposed to be and I need to fix the problem every time. How to fix the delay problem while recording? I can't set the Latency to zero. The minimum is 30ms and I still get an obvious delay.
    I saw some previous discussions saying that installing ASIO would help. Is it gonna work on my PC?
    Thank you in advance guys.

    You probably should look at a more 'serious' audio interface rather than the Realtek
    Yes ASIO drivers are the way to go
    If you want zero latency you need to monitor via your audio hardware (hence the 'serious' audio interface suggestion)
    There are a heap of reasonable audio interfaces which will do the job for you that are pretty inexpensive and I'm sure that someone will jump in with a suggestion

  • HT6114 Delaying problem when switching desktop

    After upgrading to Mavericks v10.9.2 Update my "Macbook pro Retina, 15-inch, Early 2013" is delaying when switching desktops or switching to mission control. An overall delay problems occured. I need help!

    First off, I meant to title this "When switching spaces application window is not showing."
    Just in case anyone else runs into this problem or any other weirdness with switching between spaces, the answer seems to be trashing the com.apple.dock.plist file and then restarting the dock. The preferences file can evidentially get corrupted and create some problems. Spaces does not have it's own plist file but stores it's data in the dock's plist file. Be warned that this will reset all of your dock preferences including which apps you have on the dock.
    Mark

  • Failure to search - query window problem

    Hello again,
    Have anyone of you came across a problem with SAP search mechanism in query window attached to document field? I've created a simple query of "Select acctcode,acctname from OACT where acctcode like '2%' and postable='Y' order by acctcode" and attached it to one of document fields (doesn't matter which one). When I run this query a usual window poped up with a search field on the top, but when I typed "2" in it, selection bar moved right into first 231 account ignoring any of the lesser numbers. There is more - when I changed query to search for '5%' like accounts, I gained the same result - accounts less than 530 were ignored even if I typed "50" or "51". BUT - when I changed query sort order to "desc", all account became "findable".
    I got this problem in one database only which is SAP 8.8 PL10 version upgraded recently from 2007A one. I've checked with a newly created 8.8 and such problem hasn't occured.

    Hello Thomasz,
    I might be off base here, what happens when you use this??? 
    Do you get the same types of query window problem???
    Select
    acctcode,
    acctname,
    segment_0
    from OACT
    where Segment_0 like '2%'
    order by acctcode
    for browse
    Regards,
    Zal

  • Query BI7: problem in using the variables of referenced caracteristics.

    Dear Experts,
    I have posted a question in "BI General" yesterday. Untill now, I haven't got any reply. So i decide to post it under this subject. And I hope somebody can help me.
    A query was created on the basis of an Infoset, in which there are many caracteristics created with reference to some existed caracteristics.
    However, in the new query, I was not able to use those variables which are already created and attached to the existed caracteristics. What's more, some variables are declared in the SAP exit, and they are compulsory in the new query.
    Given a very short delay in the project, it seems to me impossible to create all the variables for my new query.
    Is there anybody who has a solution or an idea for this problem?
    Thanks in advance!!!

    I was not able to use those variables which are already created and attached to the existed caracteristics.
    Ya,you cannot use the same variable to two(or more) infoobjects (though they use same reference) but what I observed in was eventhoug you get Error messaga when you do check in query designer.If you ignore and just execute the query it simply works.Just give it a try.
    Else you need to create new variables similar to existing one and use it.

  • Coldfusion query of queries error

    I have a long query named "Results.Itinerary" in a CFC which
    I have to add this query to.
    <CFLOOP QUERY = "Results.Itinerary">
    <CFQUERY NAME = "GetPorts" DATASOURCE="x">
    SELECT *
    FROM Itinerary_Ports
    WHERE (ItineraryID = #ItineraryID#)
    AND (Name NOT LIKE '%At Sea%')
    </CFQUERY>
    <CFSET ThisPortList = ValueList(GetPorts.Name)>
    <CFSET QuerySetCell(Results.Itinerary,
    "PortList","#ThisPortList#", CurrentRow)>
    </CFLOOP>
    Now this query below gives me an error, I know I need to have
    the single quotes around PortList for it to work , but coldfusion
    is getting confused and throwing errors.
    <cfquery name="Search.Results.ThisShip" dbtype="QUERY">
    SELECT *
    From Search.Results.Itinerary
    Where ShipID = #ShipID#
    AND NumberOfNights = #NumberOfNights#
    AND PortList = '#PortList#' < - Coldfusion will sometimes
    get screwed up on this line.
    ORDER BY DepartureDate ASC
    I need to know a different way to write this. Thanks.

    Thanks to you and Dan. I think the key was getting rid of the
    apostrophies that coldfusion added. I still dont know if its a
    QuerySetCell that adds them or what, but having them makes
    problems.
    Here is what I did to fix it
    In the query I used QuotedValueList and used a delimiter.
    Then I stripped out the apostrophies that coldfusion added.
    Then I reset the QuerySetCell with the apostrophies removed.
    <CFLOOP QUERY = "Results.Itinerary">
    <CFQUERY NAME = "GetPorts" DATASOURCE="Cruises">
    SELECT *
    FROM Itinerary_Ports
    WHERE (ItineraryID = #ItineraryID#)
    AND (Name NOT LIKE '%At Sea%')
    </CFQUERY>
    <CFSET ThisPortList =
    QuotedValueList(GetPorts.Name,";")>
    <CFSET QuerySetCell(Results.Itinerary,
    "PortList","#ThisPortList#", CurrentRow)>
    <cfset a = replace(PortList,"'","","all")>
    <CFSET QuerySetCell(Results.Itinerary, "PortList","#a#",
    CurrentRow)>
    </CFLOOP>
    The next part I did was the "PortList IN ('#PortList#'). "
    SELECT *
    From Search.Results.Itinerary
    Where ShipID = #ShipID#
    AND NumberOfNights = #NumberOfNights#
    AND PortList IN ('#PortList#')
    ORDER BY DepartureDate ASC

  • Visual Query Builder problem

    I have the trail version of Flex Builder 2 IDE. I can run the
    RDS, and do manual SQL queries. But when I click on the Visual
    Query Builder button, nothing happens - not even an error message.
    When I try to use the ColdFusion/Flex application Wizard, I can get
    to the Page Layout and Design screen. Then when I click on the Edit
    Master Page or Edit Detail Page button, again, nothing happens. I
    think this also uses the Visual Query Builder, so maybe that's why
    it isn't working.
    Is there something extra I didn't download or setup?
    Thanks for your help.
    Scott

    Hi,
    I have the exact same problem and it is getting really
    annoying. I'm running Vista, maybe thats why?
    Regards
    //Morgan

  • Coldfusion, Oracle translate problem

    We are using Coldfusion Server to connect to a oracle database.
    When the translate function is used ie:
    SELECT ejname
    FROM Ej
    WHERE
    (Lower(translate(ejname,'h,H,I,i','e,e,e,e')) like '%#LCase(form.query)#%')
    I find that using the translate function in this fashion it will mistake an 'i' for the letter e. So if form.query = 'i' it will return everything that starts with an 'e'. Anybody else have this problem?

    First of all - this is an appliaction developed by someone
    else, I'm just trying to get it to work again :( The strange thing
    is that it worked fine until the oracle server was reinstalled.
    I've triple checked, and there are no changes in the CF
    application, the PL/SQL package or the database structure.
    I'm not sure why threshold is declared differently in CF and
    Oracle, but I've already tried changing it to
    cf_sql_varchar, and it does not seem to make any difference.
    Regarding
    typ_vtx_result, this is declared in the package as shown
    below.
    AS
    TYPE typ_vtx_result IS REF CURSOR RETURN dual%ROWTYPE;
    PROCEDURE proc_vtx_search(
    url IN VARCHAR2,
    filename IN VARCHAR2,
    shape IN VARCHAR2,
    color IN VARCHAR2,
    texture IN VARCHAR2,
    spatial IN VARCHAR2,
    threshold IN VARCHAR2,
    images OUT typ_vtx_result);
    END vtx;

Maybe you are looking for

  • EREC: From MSS Requisition request is not coming in Recruter UWL.

    hello everyone, we are creating Requisition request in MSS. But Request is not reaching Recruter UWL. We tried to find so many ways to solve this problem. We got to know that there is problem in workflow. we are getting follwoing error. Object CL_HRA

  • BW 7.0: several ORA-01408 during import

    Hi, I'm copying my BW system with export/import procedure from prd to dev. During import, and I think only on fact-tables, there are several ORA-01408 such as: DbSl Trace: Error 1408 in exec_immediate() from oci_execute_stmt(), orpc=0 DbSl Trace: ORA

  • Delete statements very slow

    hi, We have a performance issue the delete statements on the database are running very slow they are taking about 12 hours. the delete statements are like DELETE table_name WHERE column1 = 'temp' AND col2 LIKE 'A%' AND col3 = 0; that table has an com

  • Who can tell me the mean of "tm" in J2EE(tm)???

    who can tell me the mean of "tm" in J2EE(tm)???

  • Creative Cloud application loses touch. Lightroom disappearing.

    I have Photoshop + Lightroom plan on CC. I usually sleep my Mac (10.9.3) on nights. Sometimes after waking computer, the CC application doesn't show Lightroom anymore, not as installed and not installable. Lightroom is installed and working. Quitting