This is a migrated thread and some comments may be shown as answers.

Error translating the query

4 Answers 36 Views
DataServiceDataSource
This is a migrated thread and some comments may be shown as answers.
nuritk
Top achievements
Rank 1
nuritk asked on 08 May 2012, 01:56 PM
Hi 
In our application which is based on wcf data services and Entity Framework, we are using the dataservicedatasource in the mvvm pattern(with the QueryableDataServiceCollectionView object) togeher with the RadDataFilter.
the filter works great in all scenarios but when trying to retrieve data based on the "equal filter" of the property which is the primary key of the table we get this exception:
 "Error translating Linq expression to URI: Cannot specify query options (orderby, where, take, skip) on single resource" (which is also the query on the loadingeventargs of the LoadingData event of the QueryableDataServiceCollectionView).
i.e. only when fetching a single data.
the Query.expression which is generated is:
Convert([10000].Where(item => (item.Company_No == 54)).Take(14)).IncludeTotalCount()

Thanks

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 08 May 2012, 03:51 PM
Hi,

We have reproduced this and we are currently fixing it. I will let you know once we fix the issue. Thanks for reporting it.

Kind regards,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
nuritk
Top achievements
Rank 1
answered on 08 May 2012, 04:36 PM
Great, thanks for the quick response. 
It would be super to have it as soon as possible because we are very close to release...
0
Rossen Hristov
Telerik team
answered on 09 May 2012, 09:19 AM
Hello,

This has been fixed and checked in source control.

It will be "unofficially" released with our next "Latest Internal Build" coming out next Monday, May 14th.

It will be "officially" released with our Q2 release which is scheduled for June 6th.

I hope this helps.

All the best,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
nuritk
Top achievements
Rank 1
answered on 09 May 2012, 10:05 AM
Thats great news, Thanks
Tags
DataServiceDataSource
Asked by
nuritk
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
nuritk
Top achievements
Rank 1
Share this question
or