Error Query for Crystal Report
Hi Everyone
I have an error with my Crystat Reports
state = "TOR"
If rdo_WSO.Checked = True Then
With Frm_Print
.strReport = "Filter"
.strWhere = "{TblTORGrad.TORWithoutSO} = '' and {TblTORGrad.Course}='" & ComboBox2.SelectedValue & "' and {TblTORGrad.DateApplied} like '" & ComboBox1.SelectedValue & "*'"
End With
Else
With Frm_Print
.strReport = "Filter"
.strWhere = "{TblTORGrad.TORWithSO} = '' and {TblTORGrad.Course}='" & ComboBox2.SelectedValue & "' and {TblTORGrad.DateApplied} like '" & ComboBox1.SelectedValue & "*'"
End With
Error Says "A string is requiredd here details error kind error in file CrystalReport1 {D6562CE5-995A-4371-88F0-A199B7C28}.rpt Error Formula Record_Selection: {TblTORGrad.DateApplied}like '*" A string is required here. Details: errorKind
Try it in the Report Designer first, whatever Date field type you are using needs to be converted to a string for comparison, exactly what the error indicates.
Don
Similar Messages
-
How to get select query for crystal report in c# code
In C#, (Visual Studio 2008 ) I need to use the native Crystal Reports objects to get the complete SQL statement as it appears when you view it in Crystal Reports.
In Crystal Reports 12.0, Go to "Database > Show SQL Query..." ... That is what I need to get via C# code. I can get bits and pieces of parameter info etc but I just want the whole SQL statement.
How to get this?Hi Ganesh,
It's simple to use RAS, include the assemblies and use this to open your report document:
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.ReportAppServer.DataSetConversion;
using CrystalDecisions.ReportAppServer.DataDefModel;
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
ISCDReportClientDocument rptClientDoc;
To open the report use:
object rptName = openFileDialog.FileName;
rpt.Load(rptName.ToString());
rptClientDoc = rpt.ReportClientDocument;
Then to get the SQL set the log on info:
rptClientDoc.DatabaseController.LogonEx("10.50.212.77,1433", "xtreme", "sa", "password");
GroupPath gp = new GroupPath();
string tmp = String.Empty;
rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
Thank you
Don -
Error when opening a BW query with Crystal Reports
Hi all,
I am having problems when opening a BW query with Crystal Reports, the strange thing is that it only happens with
the bo user I have created. If I use a user that already exists and that has SAP_ALL authorization it works.
I don't know if this could be an authorizations issue, but I have created a role with all the authorizations stated in the manual.
The error I am getting is the following:
"An error occurred while generating a new report template. Error in UNKNOWN.RPT file"
Does anyone know what this could be?
ThanksWell,
I cannot access the system now. But I think it is not an issue of authorization, because I assigned all the good user's role to the bo user,
and even with that, it still don't work.
Thanks -
Best practise BW Query design for Crystal Reports integration
Hi all,
I am looking for a guide on best practices when designing a BW Query to be used as data foundation for a Crystal Report.
The scenario is that I am responsible for developing the Crystal Reports part, but not the BW Query part, therefore I would like to provide a list of best practises to the person who is responsible for the Query, this way make sure that the integration will work as good as possible. The setup is of course using BO Integration Kit for SAP.
An example is how to use authorization variables in the query to provide data security. This is just one example, there are problably a number of other things to be aware of. A document containing suggestions for best practices is what I am looking for, or if the document does not exist, input to what should be on such a list.
Thank you in advance.
Regards,
RasmusHi Rasmus,
in regards to the Best Practices for Crystal Reports you can leverage all the knowledge you have on the Query Design today already. if you not the person for designing the query I think it is important to make sure people designing the queries do understand how Crystal Reports is leveraging the elements from the BI Query.
/people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
You should try to put as much as possible into the BI query from the logic point of view.
and you can also build common BI queries - there is no need to build a BI query for each report.
ingo -
DB2 support for Crystal Reports for Enterprise And Unx errors
Hi,
I have a requirement to create a report in CrystalReports for Enterprise 4 sourcing data from Oracle 11 and IBM DB2 V9 databases. My first approach is to create relational connections for both the databases in the BO Repository (using Universe designer) and use them directley in the CR for Enterprise. Here I was able to create the two connections but unable to use the DB2 connnection in the report. I get the below error:
"The Database DB2V9 is not supported".
Is DB2 is a supported database for Crystal reports for Enterprise ??
My second approach is to create a multisource universe using IDT. Here when I try to create the Datafoundation layer, I get to see the tables from the DB2 databasae but When I expand the Oracle connection, I get this error: "conversion from UTF8 to charset failed: encoding not loaded".
Im unable to create a multisource universe at all no matter what connections I use.
Here is some additional info:
SAP BI4.1 SP1
Windows 2008 R2 servers
Oracle 11g
IBM DB2 V9.7
Any suggestions please!
Thanks,
RavinderHi,
First of all I would strongly advice you to only use IDT for your universe development. The old Universe Designer is a legacy tool and should not be used unless you are using products that doesn't support IDT universes.
The issue you are facing for your Oracle connection is likely caused by a missing path variable.
Add "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64" to the PATH environment variables on the SAP Business Objects Enterprise server.
Restart the SIA
NOTE: Modify the path in case the SAP BusinessObjects Enterprise is installed in different folder.
Hope this helps.
Cheers,
Josh -
Select Query in Crystal Report
Dear all,
I have a report to be developed in which i have to fire more than 2 select quires. I am adding this quires in "Add Command" window, it doesn't give any error but gives output of first query only.
I have tried to use multiple commands in report but the query fields are not having any common field in it so i am not able to link it.
Is there any other way to use more than one query in crystal report?
Thanks in advance.
Ashish TambeDear Charles,
I am willing to develop a report in which i need to select diff data from diff table such as OOPR,ORDR,OINV and many more.based on diff conditions and it may happen that a query can give more than 2-3 records then i need to make summation for that. On the basis of this summation and some more formulas in CR i need to make some conclusions.
This cannot be done in single query. so i need to fire more than one select query.
Regards,
Ashish Tambe -
Invalid Key code Error while installing crystal report server 11
While installing crystal report server 11,i am facing an erro which says Invalid Key code Error.I had raised this issue to SAP customer support and attaching the conversation that we had.PLEASE HELP me to resolve the issue.
MAILS--Dear Mohit,
Thanks for the patience.
We have received the below update from the Licensing Team.
You received your permanent key in respect of these licenses - the key is for Crystal Reports Server XI.
You did not purchase these licenses for Crystal Reports Server, but purchased it for Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer. The software included was version XIR2, but you elected to use version XI instead and received key .
You would need to enroll the licenses in maintenance if you want to upgrade them.
In case of any queries please create a ticket via the Service Market Place.
Regards,
Jessy
Customer Interaction Center
SAP Active Global Support
Hello Jessy,
The customer received their permanent key in respect of these licenses - the key is for Crystal Reports Server XI.
They did not purchase these licenses for Crystal Reports Server, they purchased Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer. The software included was version XIR2, but they elected to use version XI instead and they received key .
They cannot decide to upgrade now - they must enrol these licenses in maintenance if they want to upgrade them.
Kind regards,
Rosemary
From: BOSAPASIA
Sent: 29 September 2009 05:49
To: Savage, Rosemary
Subject: FW: Crystal Reports Server Installation Issue
Importance: High
HI Rose ,
Need your assistance on the below issue.
Customer purchased Crystal Report Server XI R2 in 2005. When he is trying to install it now, he is getting an Invalid Key code Error.
He has provided us the Scanned copies of the Key code and the registration number.Can you please help and check if he can be provided with a Keycode.
Regards,
Jessy
CIC Team Lead
Customer Interaction Center
Global Support Centre India
SAP Labs India Pvt Ltd
Hi,
Providing you with the required details to proceed further
Registration Number-
Registration Email Address-taxmantra.support
And also please find attached the scanned copy of the Registration key we got for the Crystal report server.
Dear Mohitk,
Thank you for your information.
I checked with the concerned colleague and received the below update:
Please check from where you got this key code. If from a paper, please scan it to us. Please let them track to the original paper or email.
If you have registered the key code, please provide us the registration number or registration email address so that we will try to check for you.
If you did not register before, as the promotion is over so the key code could not be replaced.
I request you to kindly check the same at your end and revert with the details.
Moreover, there are two ways for Crystal Report customer to get support.
One is customer with bundled product such like BOE and under maintenance. These customers will have an S-user ID and password to log a case in service market place via http://service.sap.com/message
A learning map was provided, listed on left column.
The other is customer with only Crystal report product, the support is via SDN.
http://service.sap.com =>Crystal Reports and Xcelsius Support=>Crystal Reports and Xcelsius Forums
Customers can first check whether other customer has got the same issue and find the reply from our engineers.
You may also post your own thread for support.
Anything else I could help, please do not hesitate to contact again.
Hi,
I am providing you with the details required to resolve the issue related to Crystal report installation,for reference of the issue please refer the mail below.
Please find attached the Scanned Document containing the details as per the details required by you.
Hope to see a quick resolution for the issue.
Dear Mohit,
Thank you for your e-mail.
As discussed, I understand that youu2019ve procured Crystal Reports Server 11 in 2006. However youu2019re facing issues with key codes while reinstalling the same. We request you to kindly provide us with below details for further assistance.
Your customer number:
Your customer name and address:
Purchase order number:
Any other products purchased along with Crystal Reports Server 11
Any S-User Id:
Any old case ID:
Please feel free to contact us if any further queries.
Hi,
I am raising this concern on behalf on Taxmantra project (Tata Consultancy Services noida).
We have bought licensed Crystal Reports Server 11 near by 2006.We are trying to install the crystal server but while installing ,we have encountered with an error message that:-
"The product key code you have entered is incorrect"
We are facing the same issue in 2006,I am attaching with this email the conversations that was held in 2006 to get the correct key code.
Please help us to resolve the issue as early as possible.
My contact number:
If you need any further information do let me knowAjit,
By design, the product is not able to be installed under the superuser account.
1. Create a new user and specify a home directory for the user without a quota set.
2. Copy or move the installation files to a directory that the new user can read. I suggest you move the installation files directly into the new user's home directory.
3. Logon as the new user (or su - newuser)
4. run the installation shell script using that new user's account.
NOTE: Ensure the system meets the requirements from the supported platforms documents.
.Tony -
Error While running crystal report
Dear All,
i have some crystal reports in SAP.while opening any crystal report its through some error like "Error While running crystal report ".
Kindly suggested me how to do this .
Thanks&Regards,
P.PratapHi All,
Thanks for your reply,
already i close this Issue.
they have one addon for crysatl report .so it show error like Error while Running crystal report
thanks&Reagrds,
P.Pratap -
Hyperlink error : on Exporting crystal report to Editable RTF format
Hi , In my crystal report I have hyperlink which works normally. Now when I export this report to Editable RTF format; the hyperlink gives error "Error! Hyperlink reference not valid. "
It works for other formats.
Please helpThis issue was patched for Crystal Reports XI R1
Hot Fix Name: commonXIwin_chf.zip
Adapt Number-ADAPT00408450
Description:
When exporting a report with email hyperlink to editable RTF format,
the links do not work.
New Behavior:
This is now resolved.
Here is a link to the hotfix:
ftp://ftp1.businessobjects.com/outgoing/CHF/commonXIwin_chf.zip
If you are using XI R2 and are still encountering this, then please check that you have installed the latest service pack (SP3) - and if the issue still occurs, then this may need to be tracked as a bug again. However my understanding is that this was fixed for R2
a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite -
Getting Error while integrating Crystal reports with Java
Hi All,
I am getting below error while integrating crystal report with java
[java] os.arch = x86
[java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
(Ljava/awt/Image;I)V
[java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
[java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
[java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
[java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
Source)
[java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
Source)
[java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
[java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
[java] at JRCViewReport$1.run(JRCViewReport.java:50)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
178)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:190)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:144)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:138)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:130)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Any help can be appreciated
KalyanHi All,
For got to mention i am using crystal reports XI release 2 with JDK1.4.
Kalyan -
How to install SharePoint MOSS 2007 PIK for Crystal Report Server XI R2?
My configuration is :
Moss 2007 without any Crystal Report or BO component. on one box with Windows 2003 server
Cyrstal Report Server XI R2 on another box
I have downloaded the kit installation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/webcontent/uuid/503988db-58c5-2b10-f79d-cb96700417f9 [original link is broken]
I used this one as they said:
BusinessObjects XI Release 2 SharePoint 2007 Portal Integration Kit
Download BusinessObjects XI Release 2 SharePoint 2007 Portal Integration Kit - ZIP 5MB
I do not have BO Enterprise.
Thanks,Answered my own question. Managed to upgrade to 5.0 following this process, but follow these instructions with care...
1. Stop all CMS services in Config Manager.
2. Go to Add/Remove programs and click "change" for Crystal Reports Server XI. Click on "Modify" then change the entry for MySQL4.1.13a to "Entire Feature will be unavailable" (from Enterprise -> Server Components -> Servers - > Central Management Server). This will remove the existing mySQL version and any data/license key information/customisation, so be wary.
3. Install the desired version of mySQL.
4. Use the MySql command line to create a new database - "create DATABASE BOE115;"
5. In the Central Config Manager, select the CMS and display its properties. Select the Dependencies tab and remove the old version of mySQL and add the new version. Click on the Config tab, then Select Datasource. Select mySQL driver, then complete the details for the newly created database. Once complete it will still produce an error, at which point you need to select the options to Re-create the Current Datasource.
6. Once the datasource is sucessfully recreated, restart the Crystal service in the Config Manager.
7. Open the Config tool, and add your license key. Then Re-Enable all the servers within the Servers page.
8. Any other customisation or preferences would need to be re-applied.
This worked for me, but obviously take care as your existing mySQL database will be completely removed during the process. -
Stored Procedure for Crystal Reports
Hi All,
I developed this test stored procedure to see wheather we could a stored procedure for crystal reports. It compiled without any problem, but when I run it, it gives me error message. Here is the stored Procedure..
CREATE OR REPLACE PROCEDURE WOLD1SIM.TEST_PROCEDURE(
TEST_CURSOR IN OUT TEST_PACKAGE.TEST_TYPE,
TEST_PARAMETER IN TEST_TABLE.ID%TYPE)
AS
BEGIN
OPEN TEST_CURSOR FOR
SELECT *
FROM TEST_TABLE
WHERE TEST_TABLE.ID = TEST_PARAMETER;
END TEST_PROCEDURE;
And
This is the error message..
ERROR at line 2:
ORA-06550: line 2, column 1:
PLS-00201: identifier 'TEST_PROC' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
I have created the package sucessfully.
I was wondering If any one of you can advice me where I am making the mistake.
Thank youCREATE OR REPLACE PROCEDURE WOLD1SIM.TEST_PROCEDURE(TEST_CURSOR IN OUT TEST_PACKAGE.TEST_TYPE,
TEST_PARAMETER IN TEST_TABLE.ID%TYPE)
...you have 2 parameters in your procedure WOLD1SIM.TEST_PROCEDURE(). you should also use two parameters when you execute the procedure. -
Dependent Files for Crystal Report missing while making Setup
Hi Support Team
I am trying to make a MSI Setup of my windows application by using Install Shield 2010
Development Environment that is used to develop the application is
VS 2008 having .Net Framework 3.5 SP1
Crystal Reports 2008 with Service pack 2
When I am trying to build the setup for my application using Install Shield 2010 I am getting errors related to crystal reports.
I am using CrystalDecisions.Windows.Forms.CrystalReportViewer control to display the reports at runtime.
Dlls that I included with the setup related to this viewer are
CrystalDecision.CrystalReports.Engine
CrystalDecision.CrystalReports.Framework
CrystalDecision.CrystalReports.InfoStore
CrystalDecision.CrystalReports.ReportSource
CrystalDecision.CrystalReports.Shared
CrystalDecision.Windows.Forms
The Errors that I am getting upon building the setup are listed below
Could not find dependent file BussinessObjects.Enterprise.Sdk, or One of its dependencies of component CrystalDecisions.CrystalReports.Engine.dll Error Code 6248
Could not find dependent file crpe32.dll, or one of its dependencies of component CrystalDecisions.CrystalReports.Engine.dll
u2dmapi.dll-------
u2dpost.dll----
And the same errors for
CrystalDecision.Enterprise.Framework.dll
CrystalDecision.Enterprise.InfoStore.dll
CrystalDecision.windows.forms.dll
And File not found. An error occurred merging module DMO.9b0u2026u2026u2026 Error Code 4075
And File not found. An error occurred merging module DMO1033.6496u2026u2026u2026 Error Code 4075
I tried your several suggestions from your forums like
I installed
Crystal Reports 2008 Runtime
Crystal Reports Basic Runtime for Visual Studio 2008
Crystal Reports Basic for Visual Studio 2008 Service pack1
And
CRBasicVS2008_redistu2026.
CRRedist2008_x86.msi
And by putting the files like Product.xml in the C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages
And I installed vcredist_x86.exe to install Microsoft Visual C++ 2005 Redistributable on my machine
But no luck still I am getting the same errors.
Please let me know which files I need to install on my development machine to get my setup working.
Waiting eagerly for the response
With Regards
Arshad
u2003Looks to me like you're adding just about any runtime to the project to make it work. Look at [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki and find out what runtime you actually need. Also, look at the CR assemblies referenced in your project. Then make sure that the you are using the correct msm file(s) for the correct version of the assemblies referenced. Do not add any other versions of CR msm files.
I would also recommend having a look at the developer help file here;
http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
(search for runtime).
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
Modify SQL query in Crystal Reports 2013
Bonjour,
Je voulais savoir s'il était possible de modifier la requête SQL dans Crystal Reports 2013, car les bases de données de notre application pour bibliothèque utilise un format de date particulier qu'il nous faut corriger directement dans la requête SQL.
Merci pour vos informations.
Cordialement
Claude Marcilly
Cannes - France
Hello,
I wanted to know if it was possible to modify the SQL query in Crystal Reports 2013. Databases of our application library indeed use a particular date format that we need to fix directly into the SQL query.
Thank you for your information.
Best regards
Claude Marcilly
Cannes - FranceHi Claude,
If you are creating reports using tables then go in Database menu and click on show SQL query, this will show the SQL generated by crystal reports. Now go in database expert and expend your connection and double click on Add Command and past the query which was generated by Crystal and try to modify the date format and click OK.
Now you need to redesign your reports based on Add command.
or
If your reports datasource is Add command you can directly go in add command and change it.
-Sastry -
Query regarding Crystal Reports Server
Hi,
I am new to Crystal Reports.
I have created a couple of .rpt files using CR2008 and I am loading these report files in my aspx pages using CrystalReportViewer control.
I am planning to host my webApp on IIS in production environment. Maximum simultaneous/concurrent connections to my reports would be 1 or 2.
My question is:
1. Do I need Crystal Reports Server in this scenario?
2. In future if the number of concurrent users to report increases then do I need to go for Crystal Reports Server? Will just buying and installing the Crystal reports server on production server work? or will I have to do some configuration or some other changes in the existing deployed reports? OR Will I have to deploy my existing reports on Crystal Report Server again?
Any help will be highly appreciated.
Thanks in advance,
ManishManish, please do not cross post:
Query regarding Crystal Reports Server
See the [Rules of Engagement|http://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] for more details.
Marking this thread as answered and locking...
- Ludek
Maybe you are looking for
-
Hello, Is there a way to run a fixed asset addition report in SAP and then export it into excel? I have run S_ALR_87012058, however, there is no way to export this into excel. Can anyone help please? Thank you, Lesley-Anne
-
Okay. here's the deal. First, I received the original Ipad for a birthday present. Now, I have the ipad 2 and my dad has my original ipad. We were able to delete all of the apps and reset most of the other items. However, I originally had the kindle
-
Hi guys I have created all the infomation relating to inter company Stock Transffer but i couldnt get able to invoice two times i.e one to customer and another to suppling plant please give me the information relating to it
-
Nautilus Can't Be Used Now Due To An Unexpected Error
I discovered that I am getting this message almost every time that I restart X using the command Ctrl + Alt + Backspace. I have been trying to figure out my proper resolution and have been doing many of these restarts recently. The error message in f
-
Outlook 2007 hangs when Calendar tab is clicked
I am using Windows Vista on a Sony Notebook with Outlook 2007 SP1 connected to exchange server 2003. I had a problem that my outlook worked fine except for one thing: it hanged whenever I clicked on the calendar tab. I then had to restart my outloo