Error translating the query

5 posts, 0 answers
  1. nuritk
    nuritk avatar
    7 posts
    Member since:
    Jan 2012

    Posted 08 May 2012 Link to this post

    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

  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 08 May 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. nuritk
    nuritk avatar
    7 posts
    Member since:
    Jan 2012

    Posted 08 May 2012 Link to this post

    Great, thanks for the quick response. 
    It would be super to have it as soon as possible because we are very close to release...
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 09 May 2012 Link to this post

    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 >>

  6. nuritk
    nuritk avatar
    7 posts
    Member since:
    Jan 2012

    Posted 09 May 2012 Link to this post

    Thats great news, Thanks
Back to Top
UI for WPF is Visual Studio 2017 Ready