I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application. In VS2003, I have had no problems with the reports as they are written. In VS2010, I get an unusual error on some reports with subreports.
In one report I have multiple subreports. In those subreports, I have formula fields. If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
This field name is not known.
Details: errorKind
Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
Error in formula optionStrike:
'{Command.OPTIONSTRIKETIME}'
This field name is not known.
Details: errorKind
If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
In the case above, OPTIONSTRIKETIME is a string field. This rules out any conversion errors from a date/number/etc to string for the text box.
Has anyone else encountered this error? If so, what can be done to avoid it?