Help running a query in CF
Hello - I'm able to run the following query in MS Access:
SELECT *
FROM p_retreat
WHERE ((Not (p_retreat.sessions)=" "));
When I try to run it from a ColdFusion page I get the error
below. I would appreciate any suggestions for running this query in
CF.:
Error Diagnostic Information
ODBC Error Code = 07001 (Wrong number of parameters)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters.
Expected 1.
Hint: The cause of this error is usually that your query
contains a reference to a field which does not exist. You should
verify that the fields included in your query exist and that you
have specified their names correctly.
SQL = "select code, lastname, firstname, sessions from
p_retreat WHERE ((Not (p_retreat.sessions)=" ")) order by lastname"
Data Source = "TRAINING_CALENDAR"
The error occurred while processing an element with a general
identifier of (CFQUERY), occupying document position (19:1) to
(19:54).
Date/Time: 09/08/06 15:27:31
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
.NET CLR 1.1.4322)
Remote Address: 10.1.5.55
HTTP Referrer:
http://intra/cfapps/register/retreat_report.cfm
use single quotes ' ' not double.
In addition the ; will probably cause an error too.
HTH
Tim Carley
www.recfusion.com
[email protected]
Similar Messages
-
'Structure Changed' Error when running a query
Hi,
I created a query with 2 structures. One structure for the time periods and one with Key figures (Calc and Restricted).
The query ran fine and subsequently I put this into a workbook which had other queries and made a workbook type report.
I modified the structure with the key figures recently and when I run the query now a popup box appears saying "warning; structure changed" and lists down the query elements that I changed, and subsequently the query does not run (no data is displayed).
But if I open the same query in design mode and do nothing and run the query again (with the same input parameters), it runs ok.
Please advise on how I can sort this out.
Any help would be greatly appreciated.
Thanks,
DominicHi,
If you want, you can remove the query with 'Remove Query' option in the BEx toolbar and then re-insert the query and then save the changes to the workbook. The next time, you refresh the workbook you won't get any such messages.
Thanks -
Problem while running a query on multiprovider
Dear all,
I have created a query to generate the balance sheet in FIGL using standard virtual cube 0FILGL_V01 and a custom transactional cube which gets plan data through BPS. The custom plan cube is an exact copy of the 0FIGL_V01 (plan value is populated in 0val_flow KF). These two cubes are conncected using a multiprovider. In the identification tab in the mutliprovider definition I have selected both the data targets for all characteristics.
Now when I create a query for balance sheet using GL account no and plan and actual value of cumulative balance KF I get the following error.
Error 'Field symbol has not yet been assigned.' in RSDRC_CUBE_DATA_GET_RFC could not be caught.
When i run the query in the RSRT transaction it shows 'Some Key figure have exception aggregation.'
I'll be very grateful if somebody could explain how to about removing this error. Thanks a lot.
Regards,
SumitHi Sumit,
Try this OSS note:905083
Import Support Package 16 for 3.5 (BW 3. 50 Patch 16 or SAPKW35016) into your BW system. The Support Package is available once Note 0872275 "SAPBWNews BW Support Package 16 NetWeaver'04 Stack 16", which describes this Support Package in more detail, has been released for customers.
Before you implement the correction, you must carry out the following actions:
1. Use Transaction SE37 to create the RSDRC_RAISE_EXCEPTION function module in the RSDRC function group (Short text = Terminator 2). This function does not have any parameters.
2. In the RSDRC_CUBE_DATA_GET_RFC function module, under 'Tables', add the new entry E_T_MESG of the TSMESG type and this new entry is optional.
3. The T100 messages DBMAN 003,004 and 005 complete the correction:
a) 003: Unknown error in part cube RSDRC_CUBE_DATA_GET_RFC = &1
b) 004: Non-catchable error '&1' in RSDRC_CUBE_DATA_GET_RFC.
c) 005: The following error occurred in RSDRC_CUBE_DATA_GET_RFC for part cube = &1.
In urgent cases you can implement the correction instructions.
To make information available in advance, the notes mentioned may already be available before the Support Packages are released. However, in this case the short text still contains the words "preliminary version".
Hope this helps.
Assign points if useful
Venkat -
Problem while running a query on a multiprovider
Dear all,
I have created a query to generate the balance sheet in FIGL using standard virtual cube 0FILGL_V01 and a custom transactional cube which gets plan data through BPS. The custom plan cube is an exact copy of the 0FIGL_V01 (plan value is populated in 0val_flow KF). These two cubes are conncected using a multiprovider. In the identification tab in the mutliprovider definition I have selected both the data targets for all characteristics.
Now when I create a query for balance sheet using GL account no and plan and actual value of cumulative balance KF I get the following error.
Error 'Field symbol has not yet been assigned.' in RSDRC_CUBE_DATA_GET_RFC could not be caught.
When i run the query in the RSRT transaction it shows 'Some Key figure have exception aggregation.'
I'll be very grateful if somebody could explain how to about removing this error. Thanks a lot.
Regards,
SumitHi Sumit,
Try this OSS note:905083
Import Support Package 16 for 3.5 (BW 3. 50 Patch 16 or SAPKW35016) into your BW system. The Support Package is available once Note 0872275 "SAPBWNews BW Support Package 16 NetWeaver'04 Stack 16", which describes this Support Package in more detail, has been released for customers.
Before you implement the correction, you must carry out the following actions:
1. Use Transaction SE37 to create the RSDRC_RAISE_EXCEPTION function module in the RSDRC function group (Short text = Terminator 2). This function does not have any parameters.
2. In the RSDRC_CUBE_DATA_GET_RFC function module, under 'Tables', add the new entry E_T_MESG of the TSMESG type and this new entry is optional.
3. The T100 messages DBMAN 003,004 and 005 complete the correction:
a) 003: Unknown error in part cube RSDRC_CUBE_DATA_GET_RFC = &1
b) 004: Non-catchable error '&1' in RSDRC_CUBE_DATA_GET_RFC.
c) 005: The following error occurred in RSDRC_CUBE_DATA_GET_RFC for part cube = &1.
In urgent cases you can implement the correction instructions.
To make information available in advance, the notes mentioned may already be available before the Support Packages are released. However, in this case the short text still contains the words "preliminary version".
Hope this helps.
Assign points if useful
Venkat -
Error while running a Query on webi
Hi Folks
I just installed a BOBJ edge standard 3.1 and trying to configure and test it the very first time, I have following issues if you can advise the solution., I would really appreciate.
1. when i try to create a test query on Webi Rich Client and and run query, I get the follow messge:
A databse error occured. The database error text is : [Microsoft] [ODBC Microsoft access driver] could not use (unknown);
file already in use (WIS 10901)
2. The other issue I have is that when i create a test query on the webi (infoview side) and try to run the query I dont see any result like column, rown or fields, all I see is a solid yellow block which I believe is because of kmissing Java connector. can you guys pls let me know if this is the reason I dont see the report or Is there any other reason for that.
I would appreciate your help on this.
RegardsHello,
What type of database did you build your universe on? Access? SQL Server? or other? You would need to go into the universe you are trying to use for the report go into File, Parameters, and see what your connection is, and while you're there, click "test" to be sure it is working. If not, that is your problem. If it is, but the report still is not working, either way, you will need to go into Control Panel, Administrative Tools, Data Sources (ODBC) and set up a system DSN that links to the correct database. Again test it to be sure it works. Then make sure the universe has a connection that uses this same DSN. The report should run.
Hope that helps. -
Error in Running a query on ABAP web portal
Hi Guys,
We are working in a environment where BIW is installed with only WEB AS ABAP. We do not have enterprise portal in our landscape. so we need to run our reports on
url http:
host:8000\sap\bw\Bex? Query=........
But when we run a query fro Query designer it is taking the following path in internet explorer.
/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0FIAP_M30_Q0002&VARIABLE_SCREEN=X&DUMMY=1
So can someone help me to set the properties so that the query can run on path http:
host:8000\sap\bw\Bex?.....
regards,
saurabhHi Saurabh,
In SMICM transaction code we have to maintain the parameters in order to run the web report in the specified format.
i am listing some parameters in the below, Please have a look and see whether it can help u out .....
Services
icm/server_port_0 = PROT=HTTP,PORT=8000
icm/server_port_1 = PROT=SMTP,PORT=0
HTTP settings
icm/HTTP/max_request_size_KB = 102400
icm/HTTP/j2ee_0 = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50000
icm/HTTP/server_cache_0 = PREFIX=/, CACHEDIR=/usr/sap/BSD/DVEBMGS00/dat
a/cache
Misc
icm/host_name_full = cauvery.com
icm/cancel_strategy = cancel requests without session (stateless)
rdisp/plugin_auto_logout = 1800
is/HTTP/virt_host_0 = :;
is/SMTP/virt_host_0 = :;
Once after maintain the parameters go and check in the SICF transaction code SAPBW---BEx + right click + test service. And check whether it is opening in the required URL path.
Regards,
Vara Prasad. -
Can we run a query with variable screen at start up in Bex Analyzer
Hello all,
I have a query which asks for fiscal year and posting period at the start of query run. But when I run the query in analyzer, it gives me this error all the time.
"Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
System error in Program CL_RSR_REQUEST and form TEXT_ELEMENTS_GET: VARIABLE"
Can someone help,
Thanks in advance.Hello,
Please check if OSS note 858458 is applicable in your case.
Regards,
Praveen -
Database Error while running the query.
Hi,
While running the query in webi rich client i am having a "database error IES 10901 and WIS 10901" , it is showing that the data source name not found and default driver is not specified.
I am trying to generate report from efashion universe which is in .unx format, same client version and universe is running fine on another machine (webi rich client).
PS: The above mentioned universe is running fine on my BI launch pad, the problem is with webi rich client only.
Please help!!Hi,
Which Database your are using .
As explained by Yuvraj You need to install driver for specific database .
Ask for client or (your Database ) driver from administrator .
After installation you can see your database Driver in following path
Control Panel\System and Security\Administrative Tools\Data Sources (ODBC)
See in Drivers Tab .
If you are using oracle & client is install on your system then Check TNS Names File in NETWORK folder . -
Index does not exist error while running the query
Hi Everone,
I am facing some problem when i try to tun the query in BEx. When i run the query, it is giving the error "Index does not exist". Please help me out.
With Regards
Pavan
Edited by: PavanRaj_S on Mar 3, 2010 4:50 AMHi,
If you facing index problem go to mange create the index and you want to know what are all the infocubes not maintained index go db02 you can find out.
Regards
sivaraju -
Problem while running BEx Query
Hi All,
I had reqiurement of calculating the difference of the two dates.I calculated Date Difference but I am getting problem when I run the Query.
The problem is " I am finding the difference between Schedule Line Date and Posting Date. There are some blank spaces in the cube over Schedule Line Date and also over Posting Date. While running the Query Blank Space is taken as # symbol and while calculating the differences it is giving the differences in Lakhs."
Can anybody help me to solve the problem " To remove the # symbol and calculate the differences properly".
Thanks in advance.
With Regards
MahiHi,
Use the Boolean concept like below:
I hope you are using formula varibles to get Dates into the formula.
Lets assume fv1 is formulavarible on Schedule line date and FV2 is Formula varible on Posting date.
(FV1 == '' OR FV2 == '') * 0 + (FV1 <> '' AND FV2 <> '') * (FV1-FV2).
With rgds,
Anil Kumar Sharma .P -
Cannot kill a session that is running a query on a linked server in SQL Server 2008 R2
Hi,
Cannot kill a session that is running a query on a linked server in SQL Server 2008 R2.
When I try to kill, it status shown as "KILLED/ROLLBACK"
I have facing the issue from long back. I searched many and none of them worked for me
Any help is greatly appreciated
Thanks
Jaison
CarverI guess its stuck, can you see some blocking or any other process blocking the rollback.
can you check rollback status using below command. Or you can use sp_who2 and check status column
select percent_complete,estimated_completion_time from sys.dm_exec_requests
where spid=xxx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
Getting Error while running this query
Hi,
SELECT SUM(BATCHWISE_COUNT) TOTALBATCHCOUNT,
TO_CHAR(SUM(BATCHWISEAMOUNT),'9,99,99,99,99,99,99,99,990.99') TOTALAMOUNT ,
SUM(SLIP_RECORDS) TOTALSLIPCOUNT,
SUM(CHEQUEONLY_RECORD) TOTALCHEQUECOUNT
from (SELECT COUNT(TI.FLDITEMINITIALID) BATCHWISE_COUNT from TBLITEMINITIAL TI),
(select SUM(IT.FLDAMOUNT)/100 BATCHWISEAMOUNT from TBLITEMINFOTRANS IT ),
(SELECT COUNT(FLDITEMINITIALID) FROM TBLITEMINITIAL TI WHERE FLDBATCHNUMBER NOT IN (select FLDBATCHNUMBER from TBLITEMINITIAL_DEL where TI.FLDCAPTURINGDATE=FLDCAPTURINGDATE) AND TI.FLDITEMTYPE = 'P' AND TI.FLDCAPTURINGMODE = 'CP') SLIP_RECORDS,
(SELECT COUNT(FLDITEMINITIALID) FROM TBLITEMINITIAL TI WHERE FLDBATCHNUMBER NOT IN (select FLDBATCHNUMBER from TBLITEMINITIAL_DEL where TI.FLDCAPTURINGDATE=FLDCAPTURINGDATE) AND FLDITEMTYPE = 'C' AND FLDCAPTURINGMODE = 'CO') CHEQUEONLY_RECORD
from TBLITEMINITIAL TI,
TBLITEMINFO II,
TBLITEMINFOTRANS IT
WHERE II.FLDITEMINITIALID = TI.FLDITEMINITIALID
AND II.FLDITEMID = IT.FLDITEMID
GROUP BY TRUNC(TI.FLDCAPTURINGDATE),TI.FLDBATCHNUMBER,TI.FLDCAPTURINGBRANCH,TI.FLDSCANNERID)
Im geeting error
ORA-00933: SQL command not properly ended
when running this query
I don't know what mistake i have done in this query , Kindly help for solving this issue
Thanks
Bala,
Edited by: 965937 on Feb 11, 2013 9:25 PMDear Friend
Try with the query below,
<<
SELECT SUM(BATCHWISE_COUNT) TOTALBATCHCOUNT,
TO_CHAR(SUM(BATCHWISEAMOUNT),'9,99,99,99,99,99,99,99,990.99') TOTALAMOUNT ,
SUM(SLIP_RECORDS) TOTALSLIPCOUNT,
SUM(CHEQUEONLY_RECORD) TOTALCHEQUECOUNT
from (SELECT COUNT(TI.FLDITEMINITIALID) BATCHWISE_COUNT from TBLITEMINITIAL TI),
(select SUM(IT.FLDAMOUNT)/100 BATCHWISEAMOUNT from TBLITEMINFOTRANS IT ),
(SELECT COUNT(FLDITEMINITIALID) FROM TBLITEMINITIAL TI WHERE FLDBATCHNUMBER NOT IN (select FLDBATCHNUMBER from TBLITEMINITIAL_DEL where TI.FLDCAPTURINGDATE=FLDCAPTURINGDATE) AND TI.FLDITEMTYPE = 'P' AND TI.FLDCAPTURINGMODE = 'CP') SLIP_RECORDS,
(SELECT COUNT(FLDITEMINITIALID) FROM TBLITEMINITIAL TI WHERE FLDBATCHNUMBER NOT IN (select FLDBATCHNUMBER from TBLITEMINITIAL_DEL where TI.FLDCAPTURINGDATE=FLDCAPTURINGDATE) AND FLDITEMTYPE = 'C' AND FLDCAPTURINGMODE = 'CO') CHEQUEONLY_RECORD
from TBLITEMINITIAL TI,
TBLITEMINFO II,
TBLITEMINFOTRANS IT
WHERE II.FLDITEMINITIALID = TI.FLDITEMINITIALID
AND II.FLDITEMID = IT.FLDITEMID
GROUP BY TRUNC(TI.FLDCAPTURINGDATE),TI.FLDBATCHNUMBER,TI.FLDCAPTURINGBRANCH,TI.FLDSCANNERID;
Regards
Ahamed Rafeeque Cherkala
Edited by: Ahamed Rafeeque on Feb 12, 2013 3:20 AM -
No Data Shown because an error occurred while running the query
Discoverer 10gR2 using Plus on Firefox:
I have one workbook. The first sheet summarizes by Vendor. Parameters are Type, Category, Vendor (all optional) and mandatory date range.
The second sheet summarized by Vendor and Model. Parameters are Type, Category, Vendor, Model (all optional) and mandatory date range.
All parameters except the extra "Model" are shared between the sheets.
When I run the Vendor sheet, parameters pop up, I put in dates and leave the rest blank. Results display. Yeah!
When I then run the Model sheet, parameters pop up again (because it has one more parameter). Dates carry forward, leave the rest blank. I get the error No Data Shown because an error occurred while running the query. Refreshing does not help.
If I click back to the Vendor sheet, then come back to the Model sheet, no parameter screen and the query runs.
Booooo.
Have tried multiple DBs, multiple EULs, multiple underlying data sources, replacing the offending parameter with a whole new one, no difference.
Has any body run into this behavior? Is there an answer?
-- Ron Olcott, Business Intelligence Product ManagerWhat about trying this. On the parameter definition, you have a section on the bottom left of the Parameters window, called "Do you want to allow different parameter values for each worksheet?". When you say in your posting that all but the Model parameter is shared, I assume you mean that you have set this section value to "Allow only one set of paratmeter values for all worksheets". Try setting this to "Allow different parameter values for each worksheet". See if that might make a difference for you. If that works, you may have to leave the option at this, as the lesser of your evils. From my limited experience, the "Allow only one set of parameter mvalues for all worksheets" is a bit flaky in how it works. So I pretty much have gone to always saying to allow different parameter values for each worksheet. Hope this helps a bit. If worse comes to worse, if you have not done so already, log a service request with support and see what they say. Good luck.
John DIckey -
Error while running BW Query.
When I am running BW query I am using IE6.0 in the address bar it is showing
http://<b>luxbwd</b>.100.100.8:<b>8100</b>/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&INFOCUBE=0QM_C11&QUERY=QUALITYLOT&VARIABLE_SCREEN=X&DUMMY=6
insted of http://<b>10</b>.100.100.8:<b>8100</b>/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&INFOCUBE=0QM_C11&QUERY=QUALITYLOT&VARIABLE_SCREEN=X&DUMMY=6
How can I Change on the backend.Every time I am putting 10 in the place of luxbwd.
I have checked in Rz10 profile management.
icm/host_name_full 10.100.100.8
abap/fieldexit yes
login/system_client 201
login/fails_to_user_lock 3
SAPSYSTEMNAME BWD
INSTANCE_NAME DVEBMGS00
SAPSYSTEM 00
rdisp/wp_no_dia 6
rdisp/wp_no_btc 2
rdisp/wp_no_vb 1
rdisp/wp_no_vb2 1
rdisp/wp_no_enq 1
rdisp/wp_no_spo 1
SAPGLOBALHOST luxbwd
PHYS_MEMSIZE 2450
DIR_TRANS E:\usr\sap\trans
icm/server_port_0 PROT=HTTP,PORT=8080
DIR_CT_RUN E:\usr\sap\BWD\SYS\exe\nuc\NtIa64
DIR_ORAHOME E:\oracle\BWD\920_64
And I checked in SE37 also
on the Function module RSBB_URL_PREFIX_GET
The parameters are like following.
Import parameters Value
I_HANDLERCLASS CL_RSR_WWW_HTTP
I_PROTOCOL
I_MESSAGESERVER
Export parameters Value
E_URL_PREFIX http://10.100.100.8:8080
E_URL_PATH /sap/bw/BEx
E_URL_PROTOCOL http
E_URL_SERVER 10.100.100.8
E_URL_PORT 8080
E_SUBRC 0
Please help me. Points will be assigned.
Regards
LalDear Mr. Rucit.
I gone through the Notes which you given. Thanks for that.
but the problem is different.
on by server I can see on TC SE37 the program RSBB_URL_PREFIX_GET
the default is comming
E_URL_PREFIX http://luxbwd.100.100.8:8100
E_URL_PATH /sap/bw/BEx
E_URL_PROTOCOL http
E_URL_SERVER luxbwd.100.100.8
E_URL_PORT 8100
E_SUBRC 0
and if I am removing 'X' from I_MESSAGESERVER option
the parameter - values are comming correcit. that is,
E_URL_PREFIX http://10.100.100.8:8080
E_URL_PATH /sap/bw/BEx
E_URL_PROTOCOL http
E_URL_SERVER 10.100.100.8
E_URL_PORT 8080
E_SUBRC 0
This is correct.
How can I change the default to this settings.
Please help
regards
Kariyath. -
"SYSTEM_FAILURE" error message when running BEX query
Hello,
I often encounter this error when I run BEX queries (take note that I encounter this error after I have already entered the query values). But when I run the same query in a later time, the query becomes successful, which makes the problem intermittent. I only encounter this when running BEX but I don't encounter such error when I'm running the query in RSRT and displaying it in SAP instead of in Excel. I hope you have any idea about this. Thank you.Hi Lee,
Check transaction ST22 or SM21 after you get that message.
Hope this helps.
regards,
Diego
Maybe you are looking for
-
Form appears blank when submitted
I recently ran into an issue with a form newly created in Adobe Livecycle where the data from each of the form fields is erased when the user submits the form via email (as a pdf). The form itself is quite simple with 7 text fields, 2 date fields, an
-
TS3989 photostream exe has stopped working
I received an error message each time I startup iTunes stating that photostream.exe has stopped working. Photos are no longer transfered to the cloud. Has anyone experienced this problem and if so, is there a fix for this problem?
-
Doubt about abap dynamic with performs.
Good Morning Gurus. 1-I have the tables of price in internal table ( t_a530 , T_a951 ... etc ). 2- I need filter data by field datbi and datab. 3-Can I create a perform to pass a table and after pass other table with other format to taht same perfor
-
User query that will populate item description from items checked in prop.
Hi everyone I have a question about a user query that needs to be created. In the item master data form under the properties tab I need what ever is checked in that table to be populated in the Description field. I dont know if this is possible or no
-
Can't receive messages but I can send them to people without iphones i uses to get their messages and then i just stopped receiving them i cant even receive a message to check my data