Database migration query not executing in database

We moved over our SQL database to another server. We have a few .cfm template files that have queries to get 'content' from our database. These queries in the .cfm template files work fine and execute properly. However, for some reason, since we moved over our database, the queries in the actual database don't execute/run anymore. In the old server we didn't have this problem. Our queries in the database would run properly then. The data would display correctly on the webpages.
Is there some kind of properties setup that was overlooked when migrating over our database?
The output we now see when viewing our pages is the actual query code.
Example:
SELECT lname
FROM table
This is actually displayed on the website and therefore the query is not executing/running. Our code was never changed. So why is it not outputting the same?
Thanks for any help provided.

Sorry for the confusion.
The coldfusion templates and database queries both worked fine on the previous old server.
Now since the migration onto the new server, only the coldfusion templates work fine, but not the queries in the database.
So for example, a query in the coldfusion template will run fine, and execute the intial pull of data. But once the content is pulled from the database, the queries inside the database (including stored procedures) don't execute.
We do get the expected results when we run our stored procedure in Management Studio and if we put the stored procedure on a standalone web page we do see the records. 
We only see the sql code when we have the stored procedure inside of our w_content table of our database, and its being called by the first query in the template.  For some odd reason the stored procedure does not execute if it is inside the database.  
Hopefully that clarifies our problem.
Thank you for helping!

Similar Messages

  • Job not executing through database link

    hello all,
    we have a database server with oracle 10g enterprise edition on RHEL 5.3 64-bit , we have created a procedure which pulls data from a remote server using a procedure. that procedure collect data in cursor ..both server are connected using RF connectivity..
    but after every 2 or 3 days i saw that data is not pulled and job is marked as broken .... and when i mark that job as unbroken and try to rexecute that procedure it hangs for long.....
    i don't understand whats going on....i have also seen large number of sessions in my database..is possible that huge number of session are consuming resources and that's why oracle is unable to execute the job??? i have check network also but it is fine...i can access that remote server using VNC or team viewer..so network is definitely not an issue...
    i also set SQLNET.EXPIRE_TIME=10 in sqlnet.ora file and also created a profile for idle_time to get rid of excess inactive sessions....what might be issue??? any suggestion is appreciable...
    thanks and regards
    VD

    hello sir,
    actually it is not about the job, i am sure that procedure is causing problem..... because when i try to execute that procedure , it also hangs, i check all requirements need to be checked..... i think lots of inactive sessions causing this issue, but even after adding sqlnet and profile i is not removing those sesions and hence i think that procedure is not executing....
    coz the database i am connecting is having already connections and doing lots of transactions...so i it possible that it might be an issue.??
    sometime i also got timeout error while connection to that remote server but it is not issue because at the same time i am connected to it from another machine..
    thanks and regards
    VD

  • Trigger query not executed and havenot any exception

    Hello all,
    I am using oracle 10g lite database, and i m firing a create trigger query, but it is not executed on console, when i try at console at this trigger query after that no one query will fire,
    Plzzzzzzzzzzzzzzzzzzz help me
    my used table is
    1. create table t1 ( c1 int, c2 int);
    2. create table t2 (c1 int, c2 int);
    3. Create trigger System.check after insert on system.t1 For each Row begin Insert Into system.t2 ( c1,c2 ) Values (1,1) ;end ;
    Thankx in advance
    Pankaj

    Triggers are supported on the client side in newer versions:
    11.2.1 Creating Java Stored Procedures
    To create a stored procedure, perform the following:
    1.
    Create the class that you want to store in Oracle Database Lite. You can use any Java IDE to write the procedure, or you can simply reuse an existing procedure that meets your needs.
    When creating the class, consider the following restrictions on calling Java stored procedures from SQL DML statements:
    When called from an INSERT, UPDATE, or DELETE statement, the method cannot query or modify any database tables modified by that statement.
    When called from a SELECT, INSERT, UPDATE, or DELETE statement, the method cannot execute SQL transaction control statements, such as COMMIT or ROLLBACK.
    Note:
    Any SQL statement in a stored procedure that violates a restriction produces an error at run time.
    2.
    Provide your class with a unique name for its deployment environment, since only one Java Virtual Machine is loaded for each Oracle Database Lite application. If the application executes methods from multiple databases, then the Java classes from these databases are loaded into the same Java Virtual Machine. We recommend that you prefix the Java class name with the database name to ensure that the Java class names are unique across multiple databases.
    3.
    If you are executing any DML statements in your Java stored procedure, then—in order for these statements to exist within the same transaction—you must pass an argument of type java.sql.Connection as the first argument in the method. You must have the Connection object in order to prepare and execute any statements. Oracle Database Lite supplies the appropriate argument value of the Oracle Lite database Connection object for you; the application executing the method does not need to provide a value for this parameter.

  • QBE style(Find-Execute) Query not executing when VO has bind parameter

    I have an Entity Based ViewObject that is composed of 3 Entities so the entities are related through an Assoc. Then the ViewObject also has a bind paremeter defined and used in the WHERE clause.
    In my page everything is fine until when I use/click on the Find operation on the JSF page. When the Find operation is executed the page/form goes blank so I can enter by QBE query. Now when I Execute my search by executing the ExecuteWith params operation. Nothing is happening to the screen, it seems that query was not executed. Although there was no errors or exceptions displayed.
    However if I remove the bind parameter, and execute the Execute operation instead after going to Find mode, the query is executed properly and I get expected results.
    My problem is a bit general, but are there anyone who had a similar problem like this? Im still in the process of creating a test case.
    regards,
    Anton

    Hi Frank,
    But the "ExecuteWithParams" operation provides the bind variable right? (i had the value hardcoded on the pagedef). So it must have supplied a value. I also noticed that this is happening only when if the VIewObject contains two or more Entities. If the Viewobject has only 1 entity, the ViewObject queries properly.
    Anyway Frank, I had found a fix for this. I set an InvokeAction on the pagedef that binds to the ExecuteWithParams that is invoked during page load only(!postback condition). and then I just use the Find-Execute operations instead of the Find-ExecuteWithParams operations that I used previously.
    I will try to replicate the issue again to investigate what's really going on. I just want to know if its a bug or just an expected behavior or i just made a mistake.
    regards,
    Anton

  • Query not executing for one particular value

    Hi
    I have query on multi provider. and this multi provider is combination of Info objects only but not any ODS or cubes. I have one key figure in this multi provider.while executing the query i need to give input for variabl which has 7 different values. Query is executing fine for 6 values but not for one particular value.
    query executed in listcube transaction and it is executed fine here for the same selection. then what might be the reason?
    Please advise as soon as possible.
    Thanks

    Hi Kiran,
    are you maintaining any filters in the query? or is there any logic in the exit for this variable.
    regards.

  • Sql query not executed using recordset

    Hi All,
    I am trying to first format and then execute SQL query statement using recordset object with DI API. the issue is with vb.net's string formatting. I want to use 'USE [DB_Name]' statement in SQL and then 'Alter Procedure ..' statement. as this has to be the first statement in sql , I am using 'GO' in between and seperating each sentence with following syntax.
      Dim AltProc  as string
      AltProc = " USE [DB_name]" & Environment.NewLine
      AltProc = AltProc & " GO " &  Environment.NewLine
      AltProc = AltProc & " ALTER proc [proc_name] " &  Environment.NewLine
    '---------------------and so on
    Orec.DoQuery(AltProc)
    this formatting does not recognize new line and gives 'incorrect syntax near 'Go'' error.  strange thing is, if I take this query in SQL, it runs perfectly and I can see it getting formatted with each new line created. I tried even VbcrLf but it didnt work.
    any one has any idea?
    thanks in advance,
    Binita

    HI Binita
    The reason:
    GO is the "command" delimiter of MS Query Editor.
    It is not working with RecordSet Object.
    In MS SQL 2008 version you can define the schema before the procedure name but in SQL server 2000/2005 it is not possible.
    IN SQL 2008 use the Fully Qualified name instead of GO:
    Dim AltProc  as string
      AltProc = " ALTER proc [DB_name].[dbo].[proc_name] "  + vbcrlf
    '---------------------and so on
    Orec.DoQuery(AltProc)
    it is not working on MS SQL 2008 i have tried.
    'CREATE/ALTER PROCEDURE' does not allow specifying the database name as a prefix to the object name.'
    Regards,
    J.
    Edited by: Janos  Nagy on Jun 22, 2009 2:55 PM

  • Query not executing the results

    Hi,
    I have created a Custom Virtual Cube with a custom function module. This Cube displays data when i check it through the transaction code - LISTCUBE.
    I have a query which has to be executed on this Virtual Cube. When i execute this Query , it does not display any data at all. It always displays "No applicable data found".
    I have tried with the combination of inputs for which the data is available in the cube. but still it gives "No applicable data found".
    Can someone suggest me what i have to do to correct this problem.
    Thanks
    Maddy

    Hi Maddy,
    I also encountered similar problem in BI 7.0, which doesn't happen in BW 3.5, though I was using Basic Cube, not Virtual Cube. I could finally work it out. Here are the steps I used:
    - Right click on the InfoCube > choose "Manage".
    - In the "Requests" tab, click the traffic light button in the "Request Status" column, set it to "Status OK".
    - The "Request for Reporting Available" column will show the "Request is available for reporting" icon automatically.
    - Try to execute your query again.
    Hope this might be relevant to your situation as well.
    Regards,
    arie

  • My Databases Panel will not display my Databases?

    The issue "This server behavior requires a Cold Fusion Data
    Source" happens to me periodically when DW crashes after a week or
    two of non-stop use and all of my Databases "disappear" under the
    Database Panel? DW thinks that I have no Databases setup under
    Administrator? This is driving me crazy.
    I can open another Site and it's database's appear in the DW
    panel fine, but the Site I was under when DW crashed will not
    display in the Database Panel even though all of the webpages that
    access those databases work fine so I know it's not a CF server
    issue?
    I have tried the Site/Advanced/Remove Connection Scripts but
    that does not work.
    Sometimes if I rebuild the Site under Manage Sites, they will
    show back up? Other times I have reinstalled but that is not an
    option this time.
    This issue seems to be related to a DW & CF connection
    only? Any ideas or solutions?
    ps: Ben Forta, I remember your comment in the CFWACK chapter
    about DW's refusal to display the Databases unless a proper page is
    open in DW. While all of my pages are definitely .CFM with Datasets
    & querys, this looks like it's related to DW.
    Thanks,
    jlig

    Once again, I opened up DW, created & saved a new .CFM
    page, clicked on Insert/Data Objects/Recordset and DW pops up a box
    saying:
    Before inserting this object, please do the following:
    1. Create a site for this file. (checked)
    2) Choose a document type. (checked)
    3) Ste up the site's testing server. (checked)
    4) Specify the RDS login info on CF server. (checked)
    5) Create a CF data source.
    6) Create a Recordset.
    Obviously, I have already set up a CF data source, and can
    verify them in the CF Admin page.
    What causes DW to "lose access" to my Data sources?
    I would appreciate any suggestions and help.
    Thanks,
    cw

  • Query not executing all columns

    Hi Experts
    My client is running a query. they have been using it for a little while now with no issues. I have attached the query as a formatted search on the item master data form. when one of their users runs the queriy through the formatted search, it doesnt show the last column. but when running it through the query manager, it works fine.
    its only giving this problem for the one user (doesnt matter if we log in as that user on his PC or any other PC) therefore it is user related.
    why could this be happening?

    OK below is the query:
    declare @CurUser as nvarchar(10)
    set @CurUser = $[user]
    if(@CurUser in (1,5,8,9,22,44
    begin
    with req as
    select [item number] as 'item',[required qty] as 'required', [forecast current month] as 'forecast', [sq] as 'SQ', [on hand]
    FROM VPP_2006SBO_GARSINLIVE.DBO.VLGX_GetPlannedItemDetails()
    Invoices AS  --Get invoices per item
    *(SELECT T0.[ItemCode], T0.[FrgnName], SUM(I1.[Quantity]) AS Qty,*
            *DATEDIFF(month, T0.CreateDate,getdate()) AS ItemMonths*            
       *FROM OITM T0  full outer join inv1 i1 on T0.ItemCode = I1.ItemCode*
                     *left join OINV I0 ON I0.DocEntry = I1.DocEntry*
      *WHERE I0.[DocDate] >= '2006-06-01'*
        *AND I0.DocType <> 'S'*
      *GROUP BY T0.[ItemCode], T0.[FrgnName], T0.CreateDate*
    *Credit AS               -- Get credit notes per item*
    (      SELECT C1.[ItemCode],
    *                C1.[Dscription],*
    *                SUM(C1.[Quantity]) AS Qty*
    *          FROM ORIN C0  INNER JOIN RIN1 C1 ON C0.DocEntry = C1.DocEntry*
           WHERE C0.[DocDate] >= '2006-06-01'
                 AND C0.DocType <> 'S'
          GROUP BY C1.[ItemCode], C1.[Dscription]
    ItemInfo As
    (SELECT T0.ItemCode[SearchCode], t0.ItemName,T0.FRGNName[Description], cast (cast ((T0.OnHand- T0.IsCommited) as decimal (5,0)) as nvarchar (10))[Available], cast (cast (T0.OnOrder as decimal (5,0)) as nvarchar (10))[Expected],
    (case when (T0.U_IMP is null or T0.U_IMP = '')  then '0' else T0.U_IMP end )as 'InputTube',
    *(T0.U_Wieghtm * T0.BLength1)[KgLength], T0.ValidComm[-], T2.Price[PriceL],  T0.SWW[Spec],T0.U_ManStd, T0.U_MaterialSpec,T0.U_WIEGHTM[KgMetre],* 
    (T2.Price/(CASE WHEN T0.BLength1 = 0 THEN 0.0001 ELSE T0.BLength1 END))[PriceM]
    FROM OITM T0  INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode,
    OCRD T3
    WHERE T3.CardName = '[%1]'
    and LEFT(T0.ITEMCODE,1)<>'L'
    and t0.itmsgrpcod <> '105'
    and t0.itmsgrpcod <> '101'
    and t0.itmsgrpcod <> '112'
    and t0.itmsgrpcod <> '113'
    and t0.itmsgrpcod <> '111'
    and t0.itmsgrpcod<>'114'
    and T2.[PriceList] = T3.[ListNum]
    and T3.CardType = 'C'        
    --order by T0.ITEMNAME
    SELECT
    ITEMINFO.SearchCode,
    --iteminfo.itemname,
    ITEMINFO.Description,
    ITEMINFO.Available,
    (case when ITEMINFO.Expected is null then '0' else ITEMINFO.Expected end ) as 'Expected',
    (case when req.forecast is null then 0 when req.forecast = 0 then 0 when req.forecast > 0 then (iteminfo.available + (case when ITEMINFO.Expected is null then 0 else ITEMINFO.Expected end)) / (case when req.FORECAST is null then 0 else req.FORECAST end)end) as 'Months Left of Stock',
    --(case when Inv.[Qty] is null then Inv.[Qty]  else Inv.[Qty] end) as 'i qty',
    --(case when Crn.[Qty] is null then Crn.[Qty]  else Crn.[Qty] end) as 'c qty',
    --(case when Inv.ItemMonths is null then Inv.ItemMonths else Inv.ItemMonths end) as 'Invoice ItemMonths',
    (case when  (Inv.[Qty] is null or Crn.[Qty] is null) and Inv.ItemMonths is null then '0' when Inv.[Qty] is null then '0' when Inv.ItemMonths ='0' then Inv.[Qty] when Crn.[Qty] is null and Inv.[Qty] >=0 then (Inv.[Qty] / Inv.ItemMonths) ELSE ((Inv.[Qty] - Crn.[Qty]) / Inv.ItemMonths) END) AS 'Garsin Avg Sales Per Month',
    (case when req.FORECAST is null then '0' else req.FORECAST end) as 'Valogix Avg Sales Per Month',
    (case when ITEMINFO.InputTube is null then '0' else ITEMINFO.InputTube end) as 'Input Tube',
    (case when ITEMINFO.KgLength is null then '0' else ITEMINFO.KgLength end) as 'Kg Length',
    (case when ITEMINFO.PriceL is null then '0' else ITEMINFO.PriceL end) as 'Price L' ,
    (case when ITEMINFO.Spec is null then '0' else ITEMINFO.Spec end) as 'Standard/Non-Standard', Iteminfo.U_MaterialSpec as 'Material Grade',
    (case when iteminfo.U_manstd is null then ' ' else iteminfo.U_manstd end) as 'Manufacturing Standard' ,
    (case when ITEMINFO.KgMetre is null then '0' else ITEMINFO.KgMetre end) as 'Kg Metre',
    (case when Iteminfo.PriceM is null then '0' else Iteminfo.PriceM end) as 'Price M'
    FROM Invoices Inv left outer JOIN Credit Crn ON Inv.[ItemCode] = Crn.[ItemCode]
                      full outer join ItemInfo  ON Inv.[ItemCode] =ItemInfo.[SearchCode]
    *                         left outer join req on req.item =  iteminfo.searchcode collate SQL_Latin1_general_CP850_CI_AS     *
    where Iteminfo.SearchCode is not null
    GROUP BY iteminfo.itemname , ItemInfo.[SearchCode], ItemInfo.[Description],Iteminfo.Available, Inv.Qty, Crn.Qty, Inv.ItemMonths, Iteminfo.Expected, ItemInfo.InputTube, ItemInfo.KgLength, Iteminfo.PriceL, ItemInfo.Spec,iteminfo.U_manstd,Iteminfo.Kgmetre, Iteminfo.U_MaterialSpec,ItemInfo.PriceM,req.FORECAST
    order by iteminfo.itemname
    end
    else
    begin
    WITH Invoices AS  --Get invoices per item
    *(SELECT T0.[ItemCode], T0.[FrgnName], SUM(I1.[Quantity]) AS Qty,*
            *DATEDIFF(month, T0.CreateDate,getdate()) AS ItemMonths*            
       *FROM OITM T0  full outer join inv1 i1 on T0.ItemCode = I1.ItemCode*
                     *left join OINV I0 ON I0.DocEntry = I1.DocEntry*
      *WHERE I0.[DocDate] >= '2006-06-01'*
        *AND I0.DocType <> 'S'*
      *GROUP BY T0.[ItemCode], T0.[FrgnName], T0.CreateDate*
    *Credit AS               -- Get credit notes per item*
    (      SELECT C1.[ItemCode],
    *                C1.[Dscription],*
    *                SUM(C1.[Quantity]) AS Qty*
    *          FROM ORIN C0  INNER JOIN RIN1 C1 ON C0.DocEntry = C1.DocEntry*
           WHERE C0.[DocDate] >= '2006-06-01'
                 AND C0.DocType <> 'S'
          GROUP BY C1.[ItemCode], C1.[Dscription]
    ItemInfo As
    (SELECT T0.ItemCode[SearchCode], t0.ItemName,T0.FRGNName[Description], cast (cast ((T0.OnHand- T0.IsCommited) as decimal (5,0)) as nvarchar (10))[Available], cast (cast (T0.OnOrder as decimal (5,0)) as nvarchar (10))[Expected],
    (case when (T0.U_IMP is null or T0.U_IMP = '')  then '0' else T0.U_IMP end )as 'InputTube',
    *(T0.U_Wieghtm * T0.BLength1)[KgLength], T0.ValidComm[-], T2.Price[PriceL],  T0.SWW[Spec], T0.U_MaterialSpec,T0.U_WIEGHTM[KgMetre],* 
    (T2.Price/(CASE WHEN T0.BLength1 = 0 THEN 0.0001 ELSE T0.BLength1 END))[PriceM]
    FROM OITM T0  INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode,
    OCRD T3
    WHERE T3.CardName = '[%1]'
    and LEFT(T0.ITEMCODE,1)<>'L'
    and t0.itmsgrpcod <> '105'
    and t0.itmsgrpcod <> '101'
    and t0.itmsgrpcod <> '112'
    and t0.itmsgrpcod <> '113'
    and t0.itmsgrpcod <> '111'
    and t0.itmsgrpcod<>'114'
    and T2.[PriceList] = T3.[ListNum]
    and T3.CardType = 'C'        
    --order by T0.ITEMNAME
    SELECT
    ITEMINFO.SearchCode,
    --iteminfo.itemname,
    ITEMINFO.Description,
    ITEMINFO.Available,
    (case when ITEMINFO.Expected is null then '0' else ITEMINFO.Expected end ) as 'Expected',
    (case when ITEMINFO.InputTube is null then '0' else ITEMINFO.InputTube end) as 'Input Tube',
    (case when ITEMINFO.KgLength is null then '0' else ITEMINFO.KgLength end) as 'Kg Length',
    (case when ITEMINFO.PriceL is null then '0' else ITEMINFO.PriceL end) as 'Price L' ,
    (case when ITEMINFO.Spec is null then '0' else ITEMINFO.Spec end) as 'Standard/Non-Standard', Iteminfo.U_MaterialSpec as 'Material Spec',
    (case when ITEMINFO.KgMetre is null then '0' else ITEMINFO.KgMetre end) as 'Kg Metre',
    (case when Iteminfo.PriceM is null then '0' else Iteminfo.PriceM end) as 'Price M'
    FROM Invoices Inv left outer JOIN Credit Crn ON Inv.[ItemCode] = Crn.[ItemCode]
                      full outer join ItemInfo  ON Inv.[ItemCode] =ItemInfo.[SearchCode]
    where Iteminfo.SearchCode is not null
    GROUP BY iteminfo.itemname , ItemInfo.[SearchCode], ItemInfo.[Description],Iteminfo.Available, Inv.Qty, Crn.Qty, Inv.ItemMonths, Iteminfo.Expected, ItemInfo.InputTube, ItemInfo.KgLength, Iteminfo.PriceL, ItemInfo.Spec,Iteminfo.Kgmetre, Iteminfo.U_MaterialSpec,ItemInfo.PriceM
    order by iteminfo.itemname
    end
    >>BASICALLY THERE ARE 2 QUERIES BUILT INTO ONE. IF THE USERCODE IS 1,5,8,9,22, OR 44 THEN IT WILL EXECUTE THE FIRST PART OTHERWISE IT EXECUTES THE OTHER PART. THIS ISNT THE ISSUE WTH MY QUERY AS I HAVE CHECKED THE USERCODE.

  • ABAP query not executing

    Dear all,
    I have created ABAP query on purchasing. But in SQ1, when I executed " TEST", it throws message "List is wider than 255 characters (generation not possible) ". please let me know what changes I need for successful execution of query?
    thanks and regards,
    Prashanth

    Hi Prashanth,
    It seems that the output that you generate is wider than 255 char. try with lesser fields in the output and check.
    Hope it helps.
    Thanks,
    Anju

  • Query not executing any results

    Hi,
    I have created a Custom Virtual Cube with a custom function module. This Cube displays data when i check it through the transaction code - LISTCUBE.
    I have a query which has to be executed on this Virtual Cube. When i execute this Query , it does not display any data at all. It always displays "No applicable data found".
    I have tried with the combination of inputs for which the data is available in the cube. but still it gives "No applicable data found".
    Can someone suggest me what i have to do to correct this problem.
    Thanks
    Maddy

    Hi Maddy,
    I also encountered similar problem in BI 7.0, which doesn't happen in BW 3.5, though I was using Basic Cube, not Virtual Cube. I could finally work it out. Here are the steps I used:
    - Right click on the InfoCube > choose "Manage".
    - In the "Requests" tab, click the traffic light button in the "Request Status" column, set it to "Status OK".
    - The "Request for Reporting Available" column will show the "Request is available for reporting" icon automatically.
    - Try to execute your query again.
    Hope this might be relevant to your situation as well.
    Regards,
    arie

  • BIC7.0.3 Level4 BCT-CO Query not executing

    BI7.0 SP10
    BI Content 7.0.3 Level 4
    Hello All,
    I have installed the Business Content Controlling Analysis scenario.  I have loaded the master and transactional data.  I am now trying to execute business content queries (0CCA_C11_Q00XX).  When trying to execute queries for 0CCA_C11 via Query Designer (BI7.0), I am getting the following error:
    "Variable 0P_FVAEX could not be replaced"
    This error occurs after I have entered fields for the selection screen then attempted to execute the query.
    All help is appreciated!
    Thanks,
    -B

    0P_FVAEX is an SAP Exit variable for the fiscal year variant characteristic

  • 0PC_C01_Q0007 - query not executed

    Hi Gurus,
    I installed a standard query on 0PC_C01.
    The name  of the query is 0PC_C01_Q0007. When i am trying to execute the query in RSRT . I have the following error.
    Variable 0P_FVAEX could not be replaced.
    Please suggest
    Thanks
    Venkatesh

    Hi Venkatesh:
    SAP Note 1228826 - "SAP Best Practices for BW V3.70" has helped me solve issues when executing queries with 0P_FVAEX Variable  .
    >3)
    >Queries cannot bve executed error message
    >'Variable 0P_FVAEX could not be replaced. BRAIN 641'
    >Reason: Master data for conntrolling area ( 0CO_AREA ) or company code
    >(0COMP_CODE) have not been loaded succesfully yet or are not active yet.
    >Solution:
    >Check if master data attributes for both controlling area ( 0CO_AREA ) and
    >company code (0COMP_CODE) have been loaded and are active. If not, proceed
    >as follows:
    >Load the master data attributes for the controlling area or company code
    >into your BW system.
    >Afterwards, activate the attribute changes in your BW system. To do this,
    >use transaction rsa1, path 'Tools > Hierarchy/Attribute changes', functions
    >button 'InfoObject list'. Choose InfoObject 0CO_AREA or 0COMP_CODE from
    >this list, and activate the attribute changes.
    Regards,
    Francisco Milán.

  • Sql query not execute

    Hi Forum
    i made an application which run on JRun server.
    In many of my jsps i used sql query like this:
    " select id, name, rollno from student where add = 'jj';"
    and retrieve the record from resultset like this:
    rs.getString("id");
    rs.getString("name");
    rs.getString("rollno");
    I got no error.
    BUT WHEN I RETRIEVE THE RECORDS LIKE THIS
    rs.getString("name");
    rs.getString("id");
    rs.getString("rollno");
    i got the error:
    java.sql.SQLException: [Oracle][ODBC]Invalid column number <1>.
    I can not understand what is the problem ?
    all the datatypes are correct.
    all coding is correct.
    and everything is correct.
    pls help me & suggest a solution.
    is there any problem of jdbc API OR of JRUN SERVER SETTINGS?
    thanks
    mail me at [email protected]
    Arvind Goel

    I would advise against ever using SELECT * - the order of the columns is undetermined so you're bound to hit this problem sooner or later. Besides, it assumes the column names and you know what happens when you assume things...
    I would recommend retrieving only the columns you need, in the order you want them and to call ResultSet.getXXX for each of the columns, in order.

  • URGENT (sql query not execute)

    Hi Forum
    i made an application which run on JRun server.
    In many of my jsps i used sql query like this:
    " select id, name, rollno from student where add = 'jj';"
    and retrieve the record from resultset like this:
    rs.getString("id");
    rs.getString("name");
    rs.getString("rollno");
    I got no error.
    BUT WHEN I RETRIEVE THE RECORDS LIKE THIS
    rs.getString("name");
    rs.getString("id");
    rs.getString("rollno");
    i got the error:
    java.sql.SQLException: [Oracle][ODBC]Invalid column number <1>.
    I can not understand what is the problem ?
    all the datatypes are correct.
    all coding is correct.
    and everything is correct.
    pls help me & suggest a solution.
    is there any problem of jdbc API OR of JRUN SERVER SETTINGS?
    thanks
    mail me at [email protected]
    Arvind Goel

    " select id, name, rollno from student where add =
    'jj';"
    BUT WHEN I RETRIEVE THE RECORDS LIKE THIS
    rs.getString("name");
    rs.getString("id");
    rs.getString("rollno");
    You are retrieving the fields in a different order than what is specified in the select statement.
    Some drivers don't allow that (I don't believe it matters what version of the driver you have.)

Maybe you are looking for

  • Weblogic 9.1, EJB 2.0, Oracle 9i: Cascade delete Error

    Hi All, I am facing an error with the cascade-delete facility in ejb2.0 with weblogic 9.1 Assume that I have the following relation: <ejb-relation> <ejb-relation-name>TeacherEJB-StudentEJB</ejb-relation-name> <ejb-relationship-role> <ejb-relationship

  • Error Handling in File to Multiple IDOC Scenario?

    Hello Experts, My scenario is file with Multiple records and I want to send it to SAP system.If there will be 10 Records in my file I need to create 10 IDOC in Target system. I can use below of the two options. 1) File to Multiple Idoc (1.N Mapping)

  • Audio Capture problem

    When Capturing from a DV device on to final cut express HD, only audio is "caught". When I checked the scratch bin the audio selection was disabled (like, the check-bow was dimmed and unable to be changed). I'd like to be able to capture audio withou

  • Popup worked in RH9 but doesn't in RH10

    Hello, Is there a reason that a popup that worked in RoboHelp HTML 9 would generate an ehlpdhtm.js error after the project was converted to version 10? Whether there's a reason or not, how can I get it working again? The only difference between this

  • Opening audio attachments

    I tried to listen to my Vonage voicemails through the Vonage website using my iPhone, I clicked on the link to open the file and I get an error from Quicktime saying "Cannot Play Movie. The server is not correctly configured". I also tried saving the