The expression contains object 'CalDate' that is not defined in the current context.' error.
Here is the weird bit - I tried this with two subreports that, by chance, have the same field name (completely different source tables though). And the report with the error showed the field value from the other report. In other words one report is looking at the other's datasource. The datasources have different names, though they have the same connection string.
This is all just working in the report designer. Using Q3 2010 in VS2010. Does anyone have any ideas?
Thanks
Clive
12 Answers, 1 is accepted
This is due to a problem that slipped into the Q3 release and has been immediately fixed in an internal build available for download from your account. Please download the internal build, upgrade and let us know if further help is needed.
Sorry for the temporary inconvenience.
All the best,
Steve
the Telerik team
I have a two telerik reports that each have sub reports that are called 2 or 3 seperate times with different parameters from the same datasource. Several of the columns are reporting the below errors:
An error has occurred while processing TextBox 'TextBox1': The expression contains object 'Name' that is not defined in the current context.
An error has occurred while processing TextBox 'TextBox9': The expression contains object 'QTY' that is not defined in the current context.
An error has occurred while processing TextBox 'TextBox14': Aggregate node 'Count(Fields(Const(Name)))' not found.
An error has occurred while processing TextBox 'txtCostRxValues': The expression contains object 'Cost-Rx' that is not defined in the current context.
An error has occurred while processing TextBox 'txtCostQtyValues': The expression contains object 'Cost-QTY' that is not defined in the current context.
An error has occurred while processing TextBox 'TextBox16': Aggregate node 'Sum(Fields(Const(QTY)))' not found.
An error has occurred while processing TextBox 'txtCostRxTotal': Aggregate node 'Sum(Fields(Const(Cost-Rx)))' not found.
An error has occurred while processing TextBox 'txtCostQtyTotal': Aggregate node 'Sum(Fields(Const(Cost-QTY)))' not found.
I did not see an internal build for download.
Please advise!
According to your description, the problem I've mentioned in the previous reply is the same in your case. The internal build is available for download in your account (see attached screenshot).
Best wishes,
Steve
the Telerik team
I am using Telerik Reporting version 4.2.10.1110. I am experiencing this issue with a report containing two subreports. One of the subreports works, and the other gives me the same errors as the other users. I check and the report appears to be using the correct objectdatasource, however, it obviously is not.
Should this issue still exist in the version of Telerik Reporting that I am using?
I went to Latest Internal Builds and this is the only option available for download: Telerik_Reporting_4_2_11_204_DEV.msi.
Thanks,
Casey
Version 4.2.10.1110 is the official Q3 release where the issue exists. Version 4.2.11.204 is the latest internal build which contains the fix and you can go ahead and upgrade to it.
All the best,
Steve
the Telerik team
Thanks!
Casey
An error has occurred while processing TextBox 'xxxxx':
The expression contains object 'XXXXXX' that is not defined in the current context.
Any help in resolving this issue is greatly appreciated. Is there an internal build that I can download for 5.1.11.713 that will resolve this issue?
Thanks.
Tony
In our local tests we are unable to reproduce "The expression contains object 'XXXXXX' that is not defined in the current context." error with the provided information with the latest Telerik Reporting Q2 2011 release. Thus we will appreciate if you open a support thread and send us a sample project that exhibits the issue to debug locally.
Kind regards,Peter
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Thanks for the reply. To resolve the issue I uninstalled the Q2 2011 release and kept installing a previous release until the problem went away. I found that version 4.1.10.921 resolved my issue. I will continue to use version 4.1.10.921 and given the time, I will create a sample project with the latest 2011 release and see if I can reproduce the problem.
Thanks,
Tony
My report works great until i add this to a textbox value:
= System.Globalization.DateTimeFormatInfo.CurrentInfo.GetAbbreviatedMonthName(Fields.Mois)
You are correct generic methods are not supported in expressions. Thus our suggestion is to wrap the method in an user function as shown in the following code snippet:
public
static
string
GetAbbreviatedMonthName(
int
month)
{
return
System.Globalization.DateTimeFormatInfo.CurrentInfo.GetAbbreviatedMonthName(month);
}
Peter
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>