The field name is not known error

Hi,
I have a report that is pointing to database(db1).
Can i change the database name to database(db2) in my c# application?when i am changing to new database name in my application i am getting error as "field name is not known".
Please give some suggestions.
Thanks in advance

I'm having the same problem.
I've upgraded from Crystal 8.5 to Crystal XI.
I've converted all my reports from Crystal 8.5 to Crystal XI.
When I try to run the report I get the error:
The Field Name is not known and nothing else.
I did upgrade the report and verified the database.
Does anyone have any ideas ?
If I delete the formula, and after I create it (by handle) the report will good.
But I have about 1000 reports !

Similar Messages

  • Crystal Report Windows Forms Viewer error: "The field name is not known"

    Hi,
    My report runs fine in the Crystal Reports viewer.  When we try to view the crystal report through a piece of 3rd party software, I start to get errors in a few of my formulas indicating that "the field name is not known".  I can clearly see that the field is in my crystal report.  Has anyone else had this problem?  Any ideas on what might be happening?
    Thank you.

    Just to provide some further clarification on my problem:
    The "field name is not known" error seems to be occurring only in a few formulas where I have a statement like this:
    if ISNULL({somefieldfromdatabase}) Then
    I've used this for many other formulas and not had an issue with them.  I've verified that the database and the stored procedure contain this field.

  • Field name is not known Error in formula field...

    Hi,
    I have a report in CR11.5 r2 that I call from VB6.
    The report works fine, until a I create this formula, Trim ({RSE.PatName}).
    When I put this formula field in a section in the report, I have this error, "Field name is not known Error".
    Any idea?

    Make sure you have SP 6:
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Does the formula work in the designer?
    Are you changing datasource at runtime? If so, can you change to that datasource in the designer and run the report there?
    If you do not use the Trim function, does it work?
    If you do not use the field in a formula abd place it in say, the detail section as a test, does the report work?
    But remember that what ever the report is doing at runtime, must work in the designer 1st.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • This field name is not known error

    We are repeatedly getting the following error for some of our users .We are unable to trace it.Your inputs would be highly appreciable. We are using dot net 2.0 & visual studio 2005 for development & Crystal Reports 10.2.
    error message appearing  -u201CThis field name is not known. Error in File C:\WINDOWS\TEMP\DNIReport {61006661-3C45-4100-88AD-09C3D7839CF5}.rpt: Error in formula . 'if({DNIBE.ParentStoreId}= "" or {DNIBE.ChildStoreId} = "") then ' This field name is not known.u201D
    Thanks in advance

    Hello, Janmejaya;
    This error occurs when the application is not correctly logged on to the database.
    Because we are a two pass reporting system and the first pass looks at the formulas, you get a formula error when data is missing instead of the expected Database logon error.
    Confirm that your data is visible to your reports at runtime.
    Elaine

  • "This field name is not known" error when upgrading from VS 2003 to VS 2005

    When we upgraded our web servers from VS 2003 to 2005, our crystal reports web viewer began having a problem with reports that contained sub-reports.  We now are getting the following error on the web page.  The reports were developed in Crystal 10, but I upgraded them to Crystal 11 but still recieved the same error.
    Any help would be greatly appreciated.
    thank you
    This field name is not known. Error in File C:\DOCUME1\DMDEVB1\ASPNET\LOCALS~1\Temp\CategorybyStateProductDist {B0FCB37B-A7DB-4786-AD69-55568EC94923}.rpt: Error in formula . '{usp_wd_RptCategoryByStateProductDist;1.State} = {?@State} ' This field name is not known.

    HI Karl,
    Also Try to update the database connection for the report.
    You can do that by opening report in designer, then
    Go To Database Menu -> Setdatasource Location
    Connect to the datasource you want and update the datasource.
    Save the report.
    Hope this Helps !!!
    Prasad

  • "This field name is not known" error, for one user only, in test environment only.

    Crystal Report 11 being called from BOXIR2 Infoview.
    The field name is included in two formulae in the report - no errors in Dev or Production, just in test.
    Any ideas why this is occurring?
    Thanks!

    Hi Helen,
    The best way to test this will be to open the report in question in Crystal Reports designer on the test BOE server. 
    In Crystal Reports,  verify the report is using the desired connection then do a Database|Verify database.  If the report errors then we know there is a difference in the table/fields it's reporting off of.
    Regards,
    Wallie

  • This field name is not known. on the server

    I have an issue using RPT file to generate a report using my .NET web app on the server, locally the report is generated fine, but on the server it's giving me the error "The field name is not known":
    [COMException (0x80041019): This field name is not known.
    Details: errorKind
    Error in File FormListAddons {74708A80-A1B6-494F-A141-C83C61F45047}.rpt:
    Error in formula Object_Visibility:
    '{visa_clients.addon1} = ""'
    This field name is not known.
    Details: errorKind]
      CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
      CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +362
    [FormulaException: This field name is not known.
    Details: errorKind
    Error in File FormListAddons {74708A80-A1B6-494F-A141-C83C61F45047}.rpt:
    Error in formula Object_Visibility:
    '{visa_clients.addon1} = ""'
    This field name is not known.
    The line mentioned above causing the error, is a script on crystal report to suppress the field if this condition is met:
    {visa_clients.addon1} = ""
    My PC is running Crystal Report version 11, however the Crystal Report runtime on the server running the version 10.5.1.0
    Both locally and on the server, i'm using the same datasource. Even locally i'm connecting the database on the Server.
    I would appreciate your help.

    It seems i'm posting in the wrong forum, please guide where can I post this question, to find someone who could have experience with Visual Studio and Crystal Report.
    I have 3 RPT files on my project, 2 generated successfully, only one is failing, because i'm using a script on the RPT file to suppress a field if the value is null or empty.
    So the statement of Crystal Report version 11.x not working with SQL Server 2012 is totally out of the subject.
    here is my code, for someone who knows how to read it:
    CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    System.IO.DirectoryInfo TemplatesPath = new System.IO.DirectoryInfo(System.Web.Hosting.HostingEnvironment.MapPath("~/rptTemplates"));
    string templateFile = TemplatesPath + "/" + "FormListAddons.rpt";
    rpt.Load(templateFile);
    var table = dbmgr.listClients(in_group_id);
    rpt.SetDataSource(table);
    System.IO.DirectoryInfo FilePath = new System.IO.DirectoryInfo(System.Web.Hosting.HostingEnvironment.MapPath("~/UserGeneratedReports"));
    string FileName = "FormList_" + in_group_id.ToString() + ".pdf";
    if (System.IO.File.Exists(FilePath + "/" + FileName))
    System.IO.File.Delete(FilePath + "/" + FileName);
    rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, FilePath + "/" + FileName);
    rpt.Dispose();
    rpt.Close();

  • Field name is not know error when trying to add a filter

    Hello all!
    I need to add a filter dinamically to display a report. I'm using Crystal Reports 10 w/ RAS server.
    There is an sql statement in Database Fields > Command. It uses a join and a correlation name for table name: TT.START_TIME.
    I am getting a "Field name is not known" error:
    "This field name is not known. Details: errorKind Error in File C:\WINDOWS\TEMP\{D375AB61-F7AE-4BCC-AF5E-6702C0EFDE10}.rpt: Error in formula . '{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)' This field name is not known. Details: errorKind"
    I tried to specify the field the following ways:
    Command.START_TIME
    TT.START_TIME
    START_TIME
    TIME_TRACKER.START_TIME (time_tracker being the table name)
    MAIN.TIME_TRACKER.START_TIME (main being the schema)
    All of the above is giving the same field name not known error.
    I am adding the filter the following way:
            String whereClause = "{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)";
            IFilter filter = rptClientDoc.getDataDefinition().getRecordFilter();
            filter.setFreeEditingText(whereClause);
            rptClientDoc.getDataDefController().getRecordFilterController().modify(filter);
    I also tried the following where clause:
    String whereClause = "{Command.TT.START_TIME} > DateTime (2006, 08, 01, 09, 00, 00) AND {Command.TT.START_TIME} < DateTime (2007, 08, 24, 04, 45, 00)";
    still doing the same thing.
    If anyone could please help me w/ this I'd really appreciate it!
    Thank you!
    Anastasia

    The first formula was created using the selection formula expert. I only added the TT part after it didn't work giving the same message. The name the expert gives it after I click on the field is {Command.START_TIME}. Still gives the invalid field name error. -_- Could the rest of the forumula be causing the problem?
    In regards to parameterizing the SQL Command, I spoke w/ the gentleman who creates these reports in Crystal, he says it's not possible, because sometimes we don't want a where clause and sometimes we do.
    Is there a way to directly edit the SQL string itself which is in the Command through java?
    Thank you very much for taking time to respond.
    Anastasia

  • Crystal 8.5 - now 9 - report in VB6 gives "This field name is not known"

    Hi,
    I've got to do some maintenance on an old VB 6.0 project that had some Crystal 8.5 reports in it (DSR files).
    I only had Crystal 9.0 (developer edition) available, so am using that.
    Running one report I now get the error "This field name is not known".
    Q1. How can I find out what field - and where in the report it is?
    Q2. Is there anything special I should have done to "upgrade" the DSR/DCA and DSX files?
    Thanks,
    Details:
    The reports are not "visual", they are created within a DLL that saves them as PDF's and/or prints them directly.
    The reports are bound at run-time to recordsets; at design time they use field definition files (TTX). I believe I've made sure the field definitions match the recordsets that they represent.

    Hi,
    Thanks for your replies.
    Falk:
    Nothing in particular was done to upgrade the files, other than to upgrade the VB project to reference the Crystal 9 dll's and such instead of Crystal 8.5.
    The Crystal reports designer does not seem to want to open a DSR file. I did find some RPT files in the project; but while the Crystal reports designer will load them it does not seem to want to save as DSR files.
    The "Field name is not known" message is returned in the error raised when VB tries to run the report, and it stops the report from being built.
    Ludek:
    That's a good kbase article. I had actually guessed that was an issue and had fixed two of the three reports in this project, by dumping (to text files) the recordsets being bound to them and comparing real field names with the TTX files. (I also updated some of the custom formulas in the reports to match the proper names).
    ...but in the third report, I just couldn't find the mis-match; checking the recordsets, TTX files and any customisable formulas I could locate.
    As for the patch - after installing it the report designer no longer works at all in VB6 - not for the reports that I had got working, nor even for a new report!
    (added: actually I can't get any designer up, even the VB forms designer won't load, in a project with no Crystal in it...)
    At this point I "give up".
    VB Express 2008 was used to "upgrade" the VB project to .Net and then convert the DSR's to new format RPT's. They were then loaded into a fresh VS 2008 (C#) project.
    I'm now at the point of trying to figure out how to put in the report events that were in the old DSR files in the original VB project (there is code in them to assign the recordsets as sources, at run time, and calculate and make available information from the report).
    Thanks again,
    Edited by: pzkpfw on Aug 14, 2008 12:19 AM clarify
    Edited by: pzkpfw on Aug 14, 2008 12:21 AM
    Edited by: pzkpfw on Aug 14, 2008 5:16 AM

  • This Field Name is not Known

    Hi,
    I have created 4 individual crystal report connecting 4 individual excel sheets.
    I tried to build a single crystal report embedding all the 4 individual CR.
    I am getting error as "The field name is not known"
    I searched forum , however i didnt got appropriate solution.
    Appreciate your feedback to fix the issue

    I have made connection to 4 excel sheets and linked the common fields.
    However still i am getting same error.
    When i connect it was asking to prevent server side grouping. I m confused how to rectify the error
    Appreciate your inputs

  • This field name is not known errorKindError

    Hi!
    I am developing a user interface from ASP.NET/C# (.NET framework version 2.0) to allow users to view the crystal report as a PDF document. I am using ORACLE 10g parameterized Stored Procedure to retrieve the data from the database.
    The report previews perfectly alright in the Crystal Report designer but fails to behave the same in ASP.NET 2.0 run time environment.
    I am using Crystal Report XI Release 2 with incremental service pack 4. The Crystal DLL version in my .net solution is 11.5.3700
    Also, my report has another embedded Sub Report which uses another Stored Procedure but the same parameter as in main report.
    The error that I face (i.e. the field name is not known) is on the sub report and not on the main report. If I remove the sub-report from the main report design, then I have no errors.
    Am I missing any hot fix for this problem or CR XI Release 2 with SP4 does not support sub report functions?
    Please guide me as I am struggling with this problem from last two weeks and I am very close the production release.
    Thanks for your support in advance.
    - G
    My current code:
    myReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    conInfo = GetReportConnectionInfo();
    myReportDocument.Load(@"C:\VS2005Projects\Article776\CrystalTest\PrintLettersNew.rpt");
    foreach (CrystalDecisions.CrystalReports.Engine.Table rptTable in myReportDocument.Database.Tables)
                rptTblLogOn = new CrystalDecisions.Shared.TableLogOnInfo();
                rptTblLogOn.TableName = rptTable.Name;
                rptTblLogOn.ConnectionInfo = conInfo;
                rptTable.ApplyLogOnInfo(rptTblLogOn);
                //     db.Log_Result(rptTable.Name + " is able to Connect ? = ","",rptTable.TestConnectivity().ToString() );
    myReportDocument.SetParameterValue("P_STRING_PARAM", "PARM_VALUE");
    myReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, @"C:\VS2005Projects\LetterNew.pdf");
    private static CrystalDecisions.Shared.ConnectionInfo GetReportConnectionInfo()
            CrystalDecisions.Shared.ConnectionInfo retVal = null;
            retVal = new CrystalDecisions.Shared.ConnectionInfo();
            retVal.DatabaseName = "TSTDB";
            retVal.ServerName = "TSTDB";
            retVal.UserID = "TST_USER";
            retVal.Password = "TST_USER_PWD";
            return retVal;

    Hi;
    I don't see in your code where you are passing the stored procedure parameter to the subreport. This could be what is missing. Have a look at the samples here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
    I believe one of these demonstrates passing parameters for a subreport.
    Regards,
    Jonathan

  • "This field name is not known" issue

    Hi SAP TechSupport Team!
    I have unresolved issue related to "This field name is not known" error while running my report via ReportDocument's function Export(). Before that I correctly gave all required parameters. This report work fine if I am using it with ReportViewer. I could not understand reason of that error. Please help to resolve this.
    CrystalReports is being used is the 10.5 version, in VS 2008. That report was created in CrystalReport 8.5 old version
    Thanks in advance
    Vasil Avagyan

    Hi Vasil,
    CR 8.5 uses old DB drivers. In CR 9 we completely re-wrote the DB drivers so likely what is happening is you either may have CR 8.5 on the same PC and VS is finding the drivers located in \windows\crystal folder or you simply need to update those CR 8.5 reports to CR 9 or above.
    FYI's:
    CR 8.5 still supported a CR Native SQL server driver, that driver is no longer shipped or supported, need to convert to ODBC or OLE DB.
    Parameter API's completely changed also, may be issue with Parameters too.
    CR 8.5 is not side by side compatible with any other version, remove CR 8.5 or put VS 2008 on a different PC that has never had CR installed on it.
    Don

  • Crystal Viewer error "This field name is not known"

    I have MAS500 with crystal 10 that runs a report from a view in a SQL data base and it ran fine when only MAS500 and ABRA were installed on the terminal server. Then we installed a new product CribMaster that also uses Crystal 10.  After CribMaster was installed we got the error "This field name is not known" from Crystal viewer.  The report has a selection parametar .  I feel that there is a dll file that got over written, but do not know which one.  I can run the report from Crystal OK, but not from within the application.

    Since you can run the report from Crystal OK, but not from within the application, I'd recommend trying to figure out the dlls loading, or not in the app. Use a utility such as [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] to determine the differences. Modules will compare the log results for you (Module menu, choose "Differences").
    You may also want to consider contacting the app creators to see if they can help...
    Ludek

  • Error This Field Name is not Known Line...

    hi,
    on the one PC CRXI Deverloper Edition and Crystal Reports XI Runtime Files.msi are installed. The VBS-Scipt works perfect.
    On an other PC only Crystal Reports XI Runtime Files.msi is installed.
    Following error is displey:
    "Error This Field Name is not Known Line 32"
    http://www.bilderhoster.net/safeforbilder/251h16ca.jpg

    Moved to Legacy SDK forum.
    VBS is no longer supported. Use ProcessMonitor to help you find the missing dependencies or registry permissions.

  • Error: this field name is not known

    CR XI (11.5.11.1470)
    I have a report with a sql stored procedure as database.
    One of the parameters is used in a formula field as
    CStr({?@b}, "MMMM yyyy")
    The report is called by a .net Frontend using
    crreport.SetParameterValue("@b", DateTimePicker_Month.Value)
    Everything works fine on nearly all computers running the frontend using this report. Today I've got the error message from a user working on Windows 2000 Terminal Server 'error in formula this field name is not known'.
    What the ... is this?

    Hi,
    Need more info-
    CR Version?
    VS Version?
    Windows or web app?
    If the issue is from .NET SDKs then post your question in [Crystal Reports .NET SDK forum|SAP Crystal Reports, version for Visual Studio;.
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all .NET SDK queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Sincerely,
    Amit

Maybe you are looking for

  • Forms 9i to JDeveloper

    HI Gentlemen, I studied carefully the whitepaper on migrating forms to Java. However, I do not clearly see, what happens with my server model in Designer 9i? Should I further build ER diagrams, transform them and generate them out to real DB tables?

  • Forgot weblogic admin server password and not able to run to reset it.

    Hi Folks, I forgot my Weblogic 11g server admin account details and now I'm unable to reset the password as well. I tried following the steps mentioned in ORACLE-BASE - Reset the AdminServer Password in WebLogic 11g and 12c but I couldn't execute the

  • DNG metadata changes not showing up

    I've made development changes in Lightroom to photos on my laptop. However, they aren't showing up when I import them to my desktop (I'm not applying any import settings upon import). Any suggestions here would be greatly appriciated!

  • Site to Site Data Replication

    Hello, We are currently working to design a DR site with site to site data replication via Oracle products. CWDM and DWDM seems interesting but I would like to know how does the commucation over these solutions happen. Is it over IP network with IP s

  • Details on Adapters for Enterprise Applications

    Hi I am new to OBIEE. Going through the whitepaper, it is mentioned that adapders are available to connect to heterogenous data sources like RDBMS, OLAP Sources, XML sources and Enterprise Applications among others. I am particularly interested in th