Changing datasources

Hi Team,
I have a wierd issue. I have reports with multiple groups. In all the reports, one of the groups is a formula for dynamic sorting based on the user input.
So far, everything works fine. Now, the issue is as below.
1. I've ran the report from Crystal Reports 2008 against DataSource1
2. I publish this report to BO server and configure Database credentials to point to DataSource2
3. When the report in scheduled from Infoview, the report fails with the error Invalid Group condition
4. If I remove the group for dynamic sorting, the report runs fine even when I switch from DataSource to other
5. One more observation is if I remove all other groups and have only the group for dynamic sorting, even then the report runs fine
The report fails only with the combination of dynamic sorting formula combined with groups in DB fields.
Please do give your valuable thoughts to get this fixed.
Thanks
Naresh

Hi, 
What version of Crysal 2008 are you running and what version of BO Server are you running? 
I ran into a similar problem where it runs fine in the designer but from InfoView it fails. 
I found out the problem was fixed in Crystal 2008 but the same fix has not been done in BO Server.  To get around the problem, I installed Crystal 2008 with the same service pack onto the same machine as BO Server and that fixed the problem. 
Good luck,
Brian

Similar Messages

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • Change datasource of Crystal Report via code

    Hi all!
    I'm developing partner solution for SAP B1 8.8 in C# and prepared some nice crystal reports. But they are bound to my default database for now. I want to include them to my installation file and change saved datasource location (Server, Company Name, User name, User password) in my installation script as soon as I get this values, entered by user. But I don't know the way how to change datasource in rpt file. I've tried the following:
    using CrystalDecisions.CrystalReports.Engine;
    ReportDocument rDoc = new ReportDocument();
    rDoc.Load(@"C:\Temp\Report2.rpt");
    rDoc.DataSourceConnections[0].SetConnection("Server", "SBOTest", "manager", "manager");
    rDoc.SaveAs(@"C:\Temp\Report3.rpt");
    rDoc.Close();
    but it save no changes to rpt file.
    I think, this thread belongs mostly to Development/SDK thread, because here most of the people make programs and potentially met this problem in the past.

    public void SetCrystalLogin(string sUser, string sPassword, string sServer, string sCompanyDB, CrystalDecisions.CrystalReports.Engine.ReportDocument oRpt)
                CrystalDecisions.Shared.ConnectionInfo oConnectInfo = new CrystalDecisions.Shared.ConnectionInfo();
                oConnectInfo.DatabaseName = sCompanyDB;
                oConnectInfo.ServerName = sServer;
                oConnectInfo.UserID = sUser;
                oConnectInfo.Password = sPassword;
                // Set the logon credentials for all tables
                SetCrystalTablesLogin(oConnectInfo, oRpt.Database.Tables);
                // Check for subreports
                foreach (CrystalDecisions.CrystalReports.Engine.Section oSection in oRpt.ReportDefinition.Sections)
                    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject oRptObj in oSection.ReportObjects)
                        if (oRptObj.Kind == CrystalDecisions.Shared.ReportObjectKind.SubreportObject)
                            // This is a subreport so set the logon credentials for this report's tables
                            CrystalDecisions.CrystalReports.Engine.SubreportObject oSubRptObj = oRptObj as CrystalDecisions.CrystalReports.Engine.SubreportObject;
                            // Open the subreport
                            CrystalDecisions.CrystalReports.Engine.ReportDocument oSubRpt = oSubRptObj.OpenSubreport(oSubRptObj.SubreportName);
                            SetCrystalTablesLogin(oConnectInfo, oSubRpt.Database.Tables);
                oRpt.Refresh();
                oRpt.SetDatabaseLogon(sUser, sPassword, sServer, sCompanyDB, false);
                oRpt.VerifyDatabase();
                oRpt.Refresh();
            private void SetCrystalTablesLogin(CrystalDecisions.Shared.ConnectionInfo oConnectInfo, Tables oTables)
                foreach (CrystalDecisions.CrystalReports.Engine.Table oTable in oTables)
                    CrystalDecisions.Shared.TableLogOnInfo oLogonInfo = oTable.LogOnInfo;
                    oLogonInfo.ConnectionInfo = oConnectInfo;
                    oTable.ApplyLogOnInfo(oLogonInfo);
    Edited by: Konstantin Rakhuba on May 6, 2010 11:44 AM
    Edited by: Konstantin Rakhuba on May 6, 2010 11:45 AM

  • Changing DataSource Configuration using ConfigTool - Help Needed.

    Hello Everyones,
    I have an EP 7 which I have installed on a WAS ABAP + JAVA. The Data Soruce configuraion is in dataSourceConfiguration_abap.xml because of this I cannot create any new users in the Portal, can someone tell me how I can change this Config file using the ConfigTool and what procedure is to be used.
    Thanks for your help,
    John.
    Message was edited by: John Bray

    See Changing DataSource Configuration using ConfigTool - Help Needed.

  • Changed DataSource in R/3-- New PSA Table in BI ?????

    Hello Experts,
    I have one question. When someone change a DataSource in R/3 System, what happens it for the DataSource
    in BI at this time.
    An Error ? (TimeStamp)
    Or new PSA Table ???
    Thank you for your Answer..

    Dear Baris,
    Until and unless you replicate the Data Source in BW System there will no effect.
    Once you replicate the meta data and reactivate the D.S the a new PSA Table is generated.
    Hope this Helps....
    Dev

  • Mapping fields in crystal 2013 while changing datasource.

    Does any one have any idea while migrating crystal reports from 2008 to 2013 based on BEx 3.5 "Is there any way we can edit the mapping of fields through database change source ,if we have opened the crystal 2008 report in crystal 2013 and have mapped once?"

    Hi Ravi,
    Thanx for replying. We have a different scenario here-
    We have crystal 2008  which we are migrating to crystal 2013 [Note: these are based on BW 3.5].The Steps we are folllowing here:-
    Step1: Opening the Crystal2008 Report in Crystal 2013.
    Step2: Changing the datasource to new BEX query pointing to the same BWT environment.
    Step3: Mapping all the fields to the new data field from Source tables to Target tables.
    Step4: Refreshing the Crystal 2008 & Crystal 2013 Report using same parameter inputs.
    Now the problem we are facing here is --
    1) Output of both reports are different,which is the main issue for all the reports.Only the layout is similar in both.Data is found to be more in 2013.[which should not as we using same BW database]
    2) For some reports 2013 throws some datatype errors for date field or string which is not same in crystal 2008.
    3)The query generated in both 2008 & 2013 are differnt.In 2013 it automatically gives crossjoins with some other table.Below is the query from both:-
    2008
    SELECT * FROM [ZDFILLRT/ZSD_Q_UNADJ_ADJ_FILL_RATE] SAP VARIABLES [ZSOLDTOS] INCLUDING "0001006112", [ZDATEFRO] INCLUDING "01/2013", [ZDATETO] INCLUDING "12/2013"
    2011
    SELECT {[Measures].[ZDFILLRT_DED_QTY], [Measures].[ZDFILLRT_NUMB_DAYS], [Measures].[ZDFILLRT_INIT_DLV_QTY], NON EMPTY CROSSJOIN([0SOLD_TO                 
    ZREPGRP].MEMBERS, CROSSJOIN([ZSO_DATE].[LEVEL01].MEMBERS, CROSSJOIN([0PO_NUMBER].[LEVEL01].MEMBERS, CROSSJOIN([0DOC_NUMBER].[LEVEL01].MEMBERS, CROSSJOIN([0S_ORD_ITEM].[LEVEL01].MEMBERS, CROSSJOIN([0MATERIAL].[LEVEL01].MEMBERS, )))) DIMENSION PROPERTIES [0MATERIAL].[50MATERIAL], [0SOLD_TO                 
    ZREPGRP].[50SOLD_TO] ON ROWS FROM [ZDFILLRT/ZSD_Q_UNADJ_ADJ_FILL_RATE] SAP VARIABLES [ZSOLDTOS] INCLUDING "0001006112", [ZDATEFRO] INCLUDING "01/2013", [ZDATETO] INCLUDING "12/2013"
    Would appreciate ,if you can help on this.
    Regards.
    Vidhi

  • How to change datasource in CR XI Server

    Hi,
    How can I change the database and server in CR XI server?
    For example, my reports is designed against the 'pub1' database and the 'server1' server. How can I change the database to 'pub2' and the server to 'server2' in CR XI server?
    I understand within the CR XI Server, there is a place for me to change the datasource.
    Under the Database tab in Process Tab, I selected "Use custom database logon information specified here" radio button, and database driver as "ODBC". I entered the server IP, the login and password.
    I am using SQL 2000 Server.
    I run the report and get Error Message: "Failed to open the connection. C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\crystalreport.reportjobserver\~tmp142c5653066e200.rpt".
    I do not understand why failed to open the connection.
    Please advise.

    You will need to create an ODBC DSN on Windows first and then use the ODBC DSN's name instead of the IP Address under CMC >> Objects >> YourReport >> Process >> Database page.

  • Changing datasource of reports in a loop only works for first report.

    Hi,
    I have code that loops through a list of reports to change the datasource and save the change in the report. The idea is that this can be done at build time so time taken at runtime is only for opening the report and running it.
    The problem is that the first iteration of the loop works, and any further ones don't. Apart from closing the client document is there anything else that should be explicitly closed? I don't retrieve any ReportSource from the Client Document so I shouldn't need to dispose of that...I don't think. In particular is there something that should be done to the databaseController retrieved from the clientDoc after each loop?
    The code goes like the below:
    for(File report : reports){
         System.out.println("Preparing report: " + report.getAbsolutePath());
         ReportClientDocument clientDoc = CRJavaHelper.getReportClientDocument(
                   report.getAbsolutePath());
         CRJavaHelper.replaceDBConnection(clientDoc, props);
         clientDoc.close();
         System.out.println("Report " + report.getAbsolutePath() + " prepared.");
    getReportClientDocument does this:
    ReportClientDocument clientDoc = new ReportClientDocument();
    clientDoc.setReportAppServer("inproc:jrc");
    clientDoc.open(fullPath,
              OpenReportOptions.openAsReadOnly.value());
    return clientDoc;
    replaceDBConnection does the following:
    DatabaseController dc = clientDoc.getDatabaseController();
    logonDataSource(dc, username, password);
    prepareReport(dc, schema);
    ConnectionInfos cis = dc.getConnectionInfos(null);
    for (IConnectionInfo oldci : cis) {
         IConnectionInfo newci = new ConnectionInfo();
         newci.setKind(ConnectionInfoKind.SQL);
         newci.setAttributes(propBag);
         newci.setUserName(username);
         newci.setPassword(password);
         dc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                   + DBOptions._doNotVerifyDB);
    SubreportController src = clientDoc.getSubreportController();
    IStrings strs = src.getSubreportNames();
    Iterator<?> it = strs.iterator();
    while (it.hasNext()) {
            String name = (String) it.next();
         ISubreportClientDocument subreport = src.getSubreport(name);
         DatabaseController sdc = subreport.getDatabaseController();
         cis = sdc.getConnectionInfos(null);
         for (IConnectionInfo oldci : cis) {
              IConnectionInfo newci = new ConnectionInfo();
              newci.setAttributes(new PropertyBag(propBag));
              newci.setUserName(username);
              newci.setPassword(password);
              sdc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                        + DBOptions._doNotVerifyDB);
    clientDoc.save();

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • How to change datasource type 3.x or new after replication?

    Hello,
    after the replication of a datasource i got a popup, if i want an old 3.X datasource or a new datasource. I clicked new, but i need an old 3.x datasource. Now i don't have a chance the change this.Where can i do it?
    I deleted the datasource in sourcesystem, but after new replication i don't get the popup to choose the datasource type.
    The problem is, i can't change the technical name of the datasource in sourcesystem because of the naming convention.
    Thanks in advance.
    Regards.

    Hi Bill,
    it's a generic datasource i created.The problem is that i create a 3.x Infosource too and i want use my generic datasource. But after replication i choose the false type (new datasource and not 3.x datasource) and now i can't assign my datasource to my 3.x infosource.I see the datasource in the sourcesystem-tree but not in the infosource-datasource-assigning-Popup.
    How can i change the type of datasource from new datasource to 3.x datasource in BI 7.0???

  • How to change datasource of a group in portal

    Hello Evryone,
    I am using EP7.0
    When I am creating a new group under User Administration->Identity Management ->Create new Group,
    a new group gets created, but the data source of this group is "UME Datasource".
    I want to change the data source of this group. The available data sources when I search the groups are "R3_ROLE_DS", "UME Datasource", "Built-in Groups Adapter".
    But there is no way that I can create a group with , say R3_ROLE_DS data source. On creation of a new group it just asks for a group name and group description. It always creates a group with a default data source "UME Datasource".
    Can anyone help me on this.
    Thanks
    Vikram

    Thanks Bala,
    I do not have much knowledge about UME so kindly bear with me.
    The problem that I am facing is : when I search for groups in portal, then I am able to view/search groups that are of type R3_ROLE_DS( ie these groups have been created in backend) as well as groups with type :"UME DATABASE".
    I just want to know, that if I want to create a group in portal with type R3_ROLE_DS, then is it possible or not?
    Basically, the issue is that groups created in backend are vsible/can be used in portal, but can I create groups through portal that can be visible/used in backend?
    Vikram

  • How to change datasource viewobject main query in .jsp

    Hi i have datasource DataSource viewobject="test"
    now in .jsp page i need to change it main query and after some things again back to default how i can doo it ?
    Thanks for tips!
    ID.
    Jdeveloper Studio Edition Version 11.1.1.6.0
    ADF Business Components
    11.1.1.61.92

    if you want to change where clause or modify the whole query look here
    Changing the WHERE clause or VO Query at runtime in Oracle ADF | Techartifact

  • How to change datasource location in CR V10

    How to change the datasource location in CR10, I need to use same table in different database. I tried in "Set Datasource Location" but it is not updating to the new one which i have selected. please help me on this.
    Thanks,
    S Aravind.

    Hi Try like this,
    Go to the Database option on the top > Select Set data source option.
    The top portion of the Set Data source Location window shows the current connection and part at the bottom is where you would make a connection to the new database
    Once the connection has been made, select 'one' table from the current connection and then select a matching table in the new connection and click on the 'Update' button. Do this for all the tables one by one.

  • Change DataSource of fields via code

    Hey there,
    is it possible to change the properties Name and FormulaName of the FieldObject programmatically (c#)? Both properties are readonly. We need to replace the fieldnames of many reports which contain a big count of fields. We don't want to do it in the designer, because this would be very time expensive.
    Is there a possibility to change the DataSource of the FieldObject programmatically? Or is it possible to remove fields and add new fields to the report (programmatically)?
    Thank you in advance.
    Kind regards from Germany
    Markus

    Hi Markus,
    No and maybe.... You can't change the reference of a specific field at runtime, the Auto-field Mapping function kicks in and it simply deletes the fields it can't find in the data source info.
    You can however clone the object, delete it and then make changes to the cloned object and then .Add to put the field back in place...
    See this page for starting points using RAS:
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Don

  • Crystal Reports 2008 - ERROR when changing datasource

    Hi, I have a report that is connected to a test database that needs to have the datasource changed to the production database.
    The Crystal Report has 2 "on-demand" subreports that the datasource has been changed for as well.
    SQL 2000 Databases on 2 different servers (W2003) used the "Set Datasource Location" and followed steps listed previously in the forum.
    Databases have different names but all tables are same in both.
    Database Expert is showing all tables coming from new datasource BUT when report is run parameter prompt comes up, click ok
    Error message - "Failed to retrieve data from the database" - click OK
    Error message - "Invalid Argument provided"
    Does anyone have an ideas on how to track down the issues.
    Please let me know if you need any other information

    Ok answers below:-
    1. Crystal Reports 2008 Cersion 12.1.0.892
    2. Connecting via OLEDB
    3. Yes able to refresh newly created report without sub reports enclosed
    4. Didn't know that this could be done - this report was done for us by a consultant who doesn't know how to fix this issue and reckons there is a bug in Crystal
    5. Sub reports are accessed after main report is run (I think that means that they are linked)
    6. Not sure how to do this as am newbie to Crystal Reports and we are relying on the person that we contracted to write the reports to know what he is doing.
    Any help appreciated I will try to go into the sub report and unlink - think I have found out how to do this.
    Thanks for the help so far!!

  • Need to change datasource for the existing Planning application.

    Can I change the datasource to point to different relational database and recreate the same application. Please help me..I am on 11.1.1.3.
    Thanks,
    Vince

    Hi,
    Pointing to an existing application to a new database means you are going to lose your forms, security, task lists etc. Instead, I suggest 2 options:
    1. first make a duplicate of your app, use LCM to export everything, deploy duplicated app and import exported LCM profile back into this app. It's very straight forward.
    2. Simply migrate & deploy the existing application to a new one. (right click on app in app library, select migrate). Although this is even simpler, this only applies to epma apps.
    Cheers,
    Alp

  • Changing datasource from 3.5 to 7 Version

    Hi Bw Experts,
       I am trying to Change 2LIS_02_SCN datasource from 3.5 version to 7 Version using the Tcode RSDS. After executing that i am getting the Popup screen asking for <b>"Transfer rules and transfer structures are deleted as a result of Migration of 3.x Datasource 2LIS_02_SCN.How is Migration to be performed ?"</b>. Under that there are four button asking <b>W/O Export,With Export Options</b>. I dont know which option i need to select.
    Can u please help on this.
    Thanks,
    Ram.

    Dear Ram,
    Please refer to the following link, which will help you in understanding the migration of data sources.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/682cacb88f297ee10000000a422035/content.htm
    If you perform migration using "With Export" option, you will be able to restore the 3.x functionality previous to the migration.
    Hope it will help, assign points if useful.
    Best Regards,
    Ankit Agrawal

Maybe you are looking for

  • LinkedList implementation

    HGI Can any Body please answer this query:its urgent please do reply as soon as possible.... Create an interface to define Linked List classes. It should be called LinkedListInt and should define all the methods necessary to create a linked list of O

  • Why do i have this block A font?

    So I realize this is probably Itunes not reading the font file correctly but how do I fix it. Tried a reinstall, no good. This happened when I downloaded the new itunes. I flushed the font Cache through terminal hoping it would fix the problem as wel

  • Free software for .pps files

    I've been using Microsoft Office PowerPoint but lately half of files freeze. Is there a free software for .pps files? Thank you

  • Authorization check after upgrade

    HI! Do you know if after an upgrade from 46C to 4.7 (Was 6.20) I must execute, for example, a report standard to regenerate all the profile and the authorization? Or the transaction PFCG work fine after the upgrade without manually activities? Thanks

  • Unit cpupower.service entered failed state

    I've installed linux-rt (3.10.18-rt14-1-rt) with the intention of setting it up for pro-audio work. My cpu is a Core2 Quad. I'm trying to set the cpu frequency to performance on start up, but it fails. I installed cpupower and edited /etc/default/cpu