Skip to Content
0
Former Member
Dec 09, 2011 at 08:15 AM

openDocument fails because of unknown field name error

35 Views

Hi,

I am trying to execute reports on the server. The reports contain records filters and formulas which are necessary and cannot be removed. When I attempt to open a report with the openDocument function the application throws an error, that the field name is not known.

Both reports work fine when I execute them directly via the BO Central Management Console.

I hope, anybody can help me?

Thanks in advance.

IReportAppFactory reportAppFactory = (IReportAppFactory) eSession
					.getService("RASReportFactory");
			reportClientDocument = reportAppFactory.openDocument(infoObject, 0,
					java.util.Locale.getDefault());

Cannot open report document. --- This field name is not known.
Details: errorKind
Error in File {...}.rpt:
Error in formula  Record Selection: 
'my filter
'
This field name is not known.
Details: errorKind

The exception originally thrown was com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: This field name is not known.
Error in File {...}.rpt:
Error in formula ' my formula '
This field name is not known.
Details: errorKind---- Error code:-2147217383 Error code name:formulaParseError
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.openDocument(Unknown Source)

...