Set Datasource location in Crystal XI not working

I have what seems to be a common problem with the setting of a datasource in Crystal XI designer.
I am converting my Crystal 8.5 reports to crystal XI.
The connection I am using is an OLE DB(ADO) connection to SQL Server 2005.
When I try to change the Datasource from a test database to a production database, absolutely nothing happens.
The data displayed on the report is the data from the database from which the report was designed.
I have scoured the internet and have found numerous complaints about this issue.
The only semi-acceptable solution I have found is that you have to go into the properties of each table on the report (including subreports) and change the Overridden Qualified Table Name by typing in the name of the table.
Is this the only solution?
I have over 300 reports. Many with subreports.
How archaic is this?
Is there at least some sort of conversion program available that would help me with my existing reports.
I have no problems during runtime. It is only the designer with which I am having an issue.
Any help is appreciated.
Leonard
Edited by: Leonard Mann on Oct 13, 2009 4:25 PM
Edited by: Leonard Mann on Oct 13, 2009 5:23 PM

Hi Teri,
Thanks for the input. I thought I would try this out in the simplest way possible.
The results are a little bizaar but I think they may be helpful in finding a solution.
I simply cannot understand how any one has been able to get this to work as I have tested this on various PCs using different crystal version and service pack combinations. Both crystal 10 and X1. XP and Windows 7. Nothing has worked.
This is what I did.
Create 3 databases, each with 1 table (COMPANY) and 1 Column (COMPANY_NAME).
First database (LIVE_DB) on 'Server 1' with COMPANY_NAME = 'LIVE COMPANY S1'
Second database (TEST_DB) on 'Server 1' with COMPANY_NAME = 'TEST COMPANY S1'
Third database (TEST_DB) on 'Server 2' with COMPANY_NAME = 'TEST COMPANY S2'
TEST #1 - USING ODBC (RDO) *********
Setup 3 Datasources using 'Data Sources (ODBC)' in Administrative Tools.
LIVE_DB_S1 - Points to Database LIVE_DB on Server 1
TEST_DB_S1 - Points to Database TEST_DB on Server 1
TEST_DB_S2 - Points to Database TEST_DB on Server 2
Create report with 'Company Name' using DataSource LIVE_DB_S1
Report name correctly shows 'LIVE COMPANY S1'
Change data source to TEST_DB_S2
Error occurs: Database Connection Error: '42S02:[Microsoft][ODBC SQL Driver][SQL Server] Invalid object name 'LIVE_DB.dbo.COMPANY'.[Database Vendor Code: 208]
Crystal appears to be looking for the Database 'LIVE_DB' on server 2 and it does not exist.
Changed the datasource at the table level
Reran report - Report name correctly shows 'TEST COMPANY S2'
Changed Datasource back to LIVE_DB_S1
Reran report - Report name incorrectly  shows 'TEST COMPANY S1'
Crystal appears to look for the Database TEST_DB on Server 1 and finds it and therefore displays the wrong Company Name.
Scrap this report close crystal and start from scratch.
Create report with 'Company Name' using DataSource TEST_DB_S1
Report name correctly shows 'TEST COMPANY S1'
Change data source to TEST_DB_S2
Report name correctly shows 'TEST COMPANY S2'
Change data source to LIVE_DB_S1
Report name incorrectly shows 'TEST COMPANY S1'
Crystal seems to have changed the server but not the database.
TEST #2 - USING OLE DB (ADO) *********
Setup 3 Datasources usong OLE DB after opening Crystal.
Since the name of an OLE DB connection is the SERVER, for the purposes of this example let's pretend that each connection has a name the same as above.
LIVE_DB_S1 - Points to Database LIVE_DB on Server 1
TEST_DB_S1 - Points to Database TEST_DB on Server 1
TEST_DB_S2 - Points to Database TEST_DB on Server 2
Create report with 'Company Name' using DataSource LIVE_DB_S1
Report name correctly shows 'LIVE COMPANY S1'
Change data source to TEST_DB_S2
Report name correctly shows 'TEST COMPANY S2'
Crystal correcly switched the Server and the Database.
Changed Datasource back to LIVE_DB_S1
Reran report - Report name incorrectly  shows 'TEST COMPANY S1'
Crystal appears to look for the Database TEST_DB on Server 1 and finds it and therefore displays the wrong Company Name.
Scrapped this report and headed to the bar for a shot of SANITY.
Leonard

Similar Messages

  • Selecting Datasource Location in Crystal XI causes software to lockup

    Anytime I click on Set Datasource Location in Crystal Reports XI Release 2, the software locks up.  I have to do a CTRL ALT DEL and End Task.
    Can someone help me?
    Thanks!
    Glynn

    Don,
    The only question that I can answer from the ones that you posed is my operating system:  XP.
    One of our computer techs installed the software on my computer for me from our school district's network.
    BTW, my wife works for a guy by the name of Don Williams down here in Southwest Louisiana. 
    Glynn

  • Crystal 10 set datasource location issue

    I am getting hung up when trying to set a datasource location in Crystal 10.  I have tried uninstalling and reinstalling the software.  Any ideas?

    Hi,
    Try with this:
    1. Reduce the 'Hardware acceleration' setting in Microsoft Windows.
    2. To access the 'Hardware acceleration' setting in Microsoft Windows:
    Click Start > Settings > Control Panel > System > Display > Settings > Advanced > Troubleshooting.
    There are typically six possible settings for 'Hardware acceleration': from 'None' to 'Full'.
    If you are using Dual monitor run the CR application on primary monitor cause Dual monitor is not tested with Crystal Reports.
    Regards,
    Shweta

  • Set Datasource Location - Crystal XI to Access 2007 DB

    Hi all,
    Is it possible to Set Datasource location for a Crystal XI report to an Access 2007 DB?  I have reviewed the postings and can not find an answer.
    Edited by: Karen Arena on Jun 23, 2009 3:24 PM - I have resolved this on my own, it is possible, see library documentation.

    Resolved through documentation in Library.

  • VS2010 Crystal Report Crashes System when using 'Set DataSource Location..'

    Runtime ASP.NET 3.5
    VS 2010
    Under Database Fields (rt click) try Set DataSource Location... causes VS2010 to crash.
    This is on an imported report from VS2008.  VS2008 has no problem with the report.
    Since this is a ASP.NET 3.5 program the internal property field
    <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture>
    has been set in the project in order to allow the code to compile w/out errors.
    What is solution for Crystal Report Set DataSource Location?

    Hi Ken,
    Here's one link on the issue: CRVS2010 RTM: Database Expert / External Component has thrown an exception
    The reason is Old OS's used c:\temp as the default, now you are require to use %user%\temp as your temp folder as well as using the AppData folder for your app. If CR finds c:\temp it uses it and depending on what is in there it can cause Cr to crash, XML files have been know to do this.
    Following MS's new rules on users temp folder should make your app Windows Compliant.
    Thanks again
    Don

  • Set Datasource Location does nothing???

    I dont get it...
    I have reports that are fed by SQL Server stored procedures.  Every now and then the developers will change some minor thing in one of the procedures (maybe a Group by or Order by change) and then rename the stored procedure.  So for example....
    USP_RPT_MYREPORT gets a minor update and gets renamed to USP_RPT_MYNEWREPORT...
    (I am over-simplifying, but you get the idea...)
    I go into Crystal Reports in Visual Studio and select the "Set Datasource Location" choice off the menu.  There, right on the darn screen that comes up it says "highlight the new datasource and click the Update button"...  I do that, and absolutely NOTHING happens, NOTHING changes, NOTHING gets updated.  I've done this about 20 times and now and every time, same thing - NOTHING happens.
    But if I go into the Database Expert, highlight my existing stored proc, and then hit "F2" to rename the alias, and set it to the new stored proc name - BING!!!  Everything works just fine.
    I looked in the Crystal documentation but of course, nothing there to illuminate whats going on with this seemingly useless "Set Datasource" selection...  So...
    What is this for?  What is it all about?  ...and why doesnt it work?
    Any help would be appreciated and sorry in advance for being frustrated - I work in Crystal...

    Thanks for the response and the attemp to help, but this cannot be quite correct - at least it does not seem so.  How do I know this?....
    Well, I have 2 stored procedures that are almost exactly alike - the only difference is the ORDER BY clause in the SQL itself (so this should have NO effect on Crystal)...
    I use the Set Datasource selection and yes, you are right, it DOES NOT change the name from my old Stored Procedure to the new one.  But if you are suggesting that it DID actually change where its pointing I dont believe you are correct because of this...
    The report itself has 3 Groups - these group headers are "tied" to the first stored procedure and even though I change the datasource (supposedly), these groups DO NOT change and thus when I run the report I get an error stating that the "Groupings do not exist"...
    In other words lets say the first stored procedure is called "SP1" and I am changing to a virtually identical stored procedure called "SP2".  Sure enough, when I use Set Datasource, the name DOES NOT change - it still says SP1...  But when I run the report the Grouping dies because nothing changed it to "SP2".  In fact, the Groups now say "???"
    What is particularly odd and frustrating about this (and also the sign of a very poorly QA'd product) is that if I go into the Database Expert and simply press "F2" and change the alias from SP1 to SP2, that seems to do the very thing that Set Datasource seems entirely unable, undesigned and unwilling to do.
    Bear in mind here that I have worked with Crystal for 3 very painful years and when any fields (columns) change in the backend SQL, I understand that it takes hours to rework the entire report - its stupid, it shouldnt take that long, but I have just accepted it with this klunky product - but when NO fields change it seems to me that should be very easy to manage and yet the only way I have found to do it is to try Set Datasource, watch it fail again and again and then use the Database Expert (and the F2 key in there) to rename the alias.
    In all the Crystal documentation I have (downloaded, and came with product) there is not one line I can find that talks about what Set Datasource is supposed to do, and should be doing.
    Anything that would make my life easier with this sometimes beastly product would be most appreciated.

  • HT5594 I upgraded to iOS 7 and my location service button does not work.  How can I turn it back on?

    I upgraded to iOS 7 and my location service button does not work.  How can I turn it back on?

    Settings>General>Restrictions>Privacy>Location Services. Have you restricted it?

  • After i install Visual-Studio 2013 crystal-report not working

    hi
    after i install Visual-Studio 2013 crystal-report not working on my Visual-Studio 2010 projects
    when i try to open crystal-report i see this:

    Hi E_gold,
    Crystal Reports forum may be a better place for you.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Promemoria geolocalizzati non funzionano con iOs 7 location-based reminders do not work with iOs7

    promemoria geolocalizzati non funzionano con iOs 7
    location-based reminders do not work with iOs7

    Hi konekotron,
    See this manual about using the Apple Wireless Keyboard with your iPad -
    iPad User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf
    See page 25 and the section on using International Keyboards on page 125.
    A similar guide for the iPhone -
    iPhone User Guide
    manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    See page 28.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Crystal reports not working when integrated security is set to true

    Hello Everybody,
    I have developed 20 crystal reports. When i deploy in my development environment(asp.net) these reports are working fine.My UAT environment is using application pool connection instead of database connection.
    My .net developer has written a code and he set integrated security to true for reports. My problem is reports which are having parameters not working correctly. Reports which are not having any parameters, it is working fine. If i enter parameters in asp .net page, the report is running for all the values. It is not considering the parameter values.
    Thanks
    Ram

    Hi Ram,
    Need more info, what version of CR assemblies, which OS is hosting the app and what patches, CR and OS are installed?
    Have you discussed this issue with your developer? Possibly all of the runtime is not on the app server?
    Thank you
    Don

  • Crystal crashes when trying to "Set Datasource Location"

    Hi,
    My client's Crystal app (version 9) crashes when she attempts to remap a report using the "Set datsource Location". Basically, as soon as she selects it, she gets a msg ..something like "CRw32.exe error" and the app bombs.
    Any ideas on what may cause this folks ??
    thx a lot,
    Steve

    Open the report up and Click on Database, Set Location, find ODBC in the list and connect using your DSN. Now select your DB and tables, varies so you may have just click on the OLE DB connection and the n DSN and click Update button or you may have to do this for each table also.

  • Error in setting datasource location from oracle to sql server

    Post Author: jonathanaramburo
    CA Forum: Data Integration
    Hello,
    I have an application that uses a table named "events" which conflicts the sys.events view in master database in sql server. The error i was encountering is that, whenever i tried to set the datasource location of my crystal report from its previous connection oracle to sql server, i get an error saying that some of the fields has not been updated because theres no matching fields to the current connection. It seems that crystal is pointing on sys.events view on master db and not on the events table in myDb database. How can I tell crystal reports to not pick up sys.events and get only myDB.events table.
    Thank you in advance,
    Thanks,
    Jonathan

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Setting RecordSelectionFormula to multiple subreports is not working.

    Hello,
    I have an application vb.net Vs2005 winform an Crystal Report for .NET.
    I have a report whith 3 subreports : i want to specify RecordSelectionFormula for the 3 subreport but it work only for one (the last have set) :
    Part of my code :
      Dim dob_Report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    dob_Report.SetDatabaseLogon("SYSTEM", "pass@123", "CP", "DB_LIVE")
                    Dim Tables As CrystalDecisions.CrystalReports.Engine.Tables = dob_Report.Database.Tables
                    Dim table As CrystalDecisions.CrystalReports.Engine.Table
                    For Each table In Tables
                        table.LogOnInfo.ConnectionInfo.ServerName = "CP"
                        table.LogOnInfo.ConnectionInfo.DatabaseName = "DB_LIVE"
                        table.LogOnInfo.ConnectionInfo.UserID = "SYSTEM"
                        table.LogOnInfo.ConnectionInfo.Password = "pass@123"
                        table.ApplyLogOnInfo(table.LogOnInfo)
                        table.LogOnInfo.ConnectionInfo.AllowCustomConnection = True
                           table.Location = "DB_LIVE." & Mid(table.Location, InStrRev(table.Location, ".", Len(table.Location)) + 1)
                    Next
                    Dim osubrpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                    For i As Integer = 0 To dob_Report.Subreports.Count - 1
                        osubrpt = dob_Report.Subreports.Item(i)
                        Dim subrpt_Tables As CrystalDecisions.CrystalReports.Engine.Tables = osubrpt.Database.Tables
                        For Each table In subrpt_Tables
                            table.LogOnInfo.ConnectionInfo.ServerName = "CP"
                            table.LogOnInfo.ConnectionInfo.UserID = "SYSTEM"
                            table.LogOnInfo.ConnectionInfo.Password = "pass@123"
                            table.LogOnInfo.ConnectionInfo.DatabaseName = "DB_LIVE"
                            table.ApplyLogOnInfo(table.LogOnInfo)
                            table.LogOnInfo.ConnectionInfo.AllowCustomConnection = True
                                                table.Location = "DB_LIVE." & Mid(table.Location, InStrRev(table.Location, ".", Len(table.Location)) + 1)
                            'table.ApplyLogOnInfo(table.LogOnInfo)
                        Next
                        osubrpt.VerifyDatabase()
                    Next
                    dob_Report.VerifyDatabase()
    '... I passed the code that set log info on the table of report and subreport
                            dob_Report.OpenSubreport("Summary").RecordSelectionFormula = "{a.DOCDATE} >= date(" & strFromDate & ") " & " AND " & "{a.DOCDATE} <= date(" & strToDate & ")" & " AND " & "{a.LOCATIONCODE} = '" & strLocation & "'" & " and " & "{a.DOCTYPE} = '" & "I" & "'" & stroption
                            dob_Report.RecordSelectionFormula = "{s.DOCDATE} >= date(" & strFromDate & ") " & " AND " & "{s.DOCDATE} <= date(" & strToDate & ")" & " AND " & "{s.LOCATIONCODE} = '" & strLocation & "'" & " and " & "{s.DOCTYPE} = '" & "I" & "'" & " and " & "{s.ex} <> '" & "exp" & "'" & stroption
    'Now i want to set RecordSelectionFormula  for subreport
      form1.crystalreportviewer1.ReportSource = dob_Report
                form1.Text = strFormTitle
                form1.ShowDialog()
    when i do that
    first and second subreport don't apply the RecordSelectionFormula and show all data
    third subreport is displaying proper.
    I've tried dob_Report.OpenSubreport(0) this method also but results are same.
    Environment:
    Visual Studio 2005, Crystal Report 10, SAP HANA Studio, SAP 9.0

    Hi Ashish
    Couple of things. You mention you are using CR 10, but I am not sure if this is the version of CR that bundled with VS 2005 (CR 10.2), or a stand-alone version of CR. So. Assuming that this is CR 10.2, make sure you apply SP 1:
    Crystal Reports for VS 2005 and  VS 2008 Updates & Runtime Downloads
    Then see KBA 1204895 - Selection formula is ignored when using Crystal Reports 2008 and VS .NET 2005
    Finally, you may want to consider using the code below:
    //I loop through all the sections looking for subreports and set the log on info, same as the main report:
    foreach (CrystalDecisions.CrystalReports.Engine.Section crSection in crSections)
        crReportObjects = crSection.ReportObjects;
        //loop through all the report objects to find all the subreports
        foreach (CrystalDecisions.CrystalReports.Engine.ReportObject crReportObject in crReportObjects)
            if (crReportObject.Kind == ReportObjectKind.SubreportObject)
                //you will need to typecast the reportobject to a subreport object once you find it
                crSubreportObject = (CrystalDecisions.CrystalReports.Engine.SubreportObject)crReportObject;
                string mysubname = crSubreportObject.SubreportName.ToString();
                //open the subreport object
                crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);
                //set the database and tables objects to work with the subreport
                crDatabase = crSubreportDocument.Database;
                crTables = crDatabase.Tables;
                tableIndex = 0;
                bool SecureDB;
                //loop through all the tables in the subreport and set up the connection info and apply it to the tables
                foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
                        crConnectioninfo.UserID = "sa";
                        crConnectioninfo.Password = "PW";
                        crConnectioninfo.DatabaseName = "QTYLTD";
                        crTableLogOnInfo = crTable.LogOnInfo;
                        crTableLogOnInfo.ConnectionInfo = crConnectioninfo;
                        crTable.ApplyLogOnInfo(crTableLogOnInfo);
    crSubreportDocument.RecordSelectionFormula = <selection formula>
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Set datasource location command at runtime

    Post Author: Jamal
    CA Forum: Semantic Layer and Data Connectivity
    Dear Folks,
    I have crystal report 10 and MS access, I need to change my datasource location at runtime without having to type code other than crystal report like VB or C++, Do crystal report have this possibility to change datasource location at runtime without needing to code other than crystal report ???
    Basicly I have multiple MS access database files and need one Crystal report to read from all of them at the same time, how can I do that without coding in a language other than crystal report.
    Best Regards
    Jamal

    Post Author: matthewh
    CA Forum: Semantic Layer and Data Connectivity
    Get a copy of BO Server and use a Business View.   Don't know of any way in Crystal Reports  itself.  BO Server is good but it ain't cheap.  Depends on how many users you have and what sort of budget you have.  I'm using it here and it has a lot of benefits. Alternatively build a data warehouse just for reporting using a proper DB engine and get a single report off that.  Use something like MySQL - fast, and above all - free!   If you don't need bang-up-to-the-second reports then run a scheduled data extraction and upload over night, load the data into the new warehouse and then run your reports against it.  I'm in the process of doing just that.  Read Ralph Kimball's books "The Data Warehouse Toolkit" and "The Data Warehouse ETL Toolkit" to get the idea.  The MySQL forum has a good Data Warehouse section.  A warehouse also gives you many advantages in that your production databases are not too heavily loaded, all your data conforms to set standards (eg data formats are all the same) and you have a historical record that can build over the years to many GB of data - I think Access will struggle with that ;0) - to name but a few.  Hope this helps.  BTW - thought of this last night - MySQL also has the Federated engine - so you could hook all your databases into it and query it with Crystal as though they were a single database.  Not sure if it'll connect to Access though.

  • Set datasource location and remapping fields in code instead of designer

    Dear all,
    We are currently migrating a VS6 reporting project to VS2010. The old project has like 133 Crystal Reports XI release 2 reports.
    All of these .rpt files need to have their datasource location changed and fields remapped because of a change in naming convention.
    The datasource location is currently set to a stored procedure in an Oracle database and this will remain; only the name of the
    stored procedure and the name of the fields returned are changed (due to new naming conventions).
    Is there a way, and I really hope so, to programmatically change the datasource location and remap the fields (mind that these fields are also used in formulas, grouping, total, ...).
    Doing this manually in the designer for like 133 times would be very time consuming.
    After some research I stumbled upon the CrystalDecisions.ReportAppServer.Controllers.DatabaseController but I'm looking for some example usage, if this is the correct way.
    The end result should be that all these 133 .rpt files have their datasource location changed and fields remapped.
    Any assistance or pointers in the right direction would be kindly appreciated.
    Thanks.

    Not aware of how you can do this in code.
    However, there are third party products which you can use to mass update reports with datasource and table mapping.
    RptInspector is a product I know of that can do what you want.
    Ian

Maybe you are looking for